proton/disposition.h

Go to the documentation of this file.
00001 #ifndef PROTON_DISPOSITION_H
00002 #define PROTON_DISPOSITION_H 1
00003 
00004 /*
00005  *
00006  * Licensed to the Apache Software Foundation (ASF) under one
00007  * or more contributor license agreements.  See the NOTICE file
00008  * distributed with this work for additional information
00009  * regarding copyright ownership.  The ASF licenses this file
00010  * to you under the Apache License, Version 2.0 (the
00011  * "License"); you may not use this file except in compliance
00012  * with the License.  You may obtain a copy of the License at
00013  *
00014  *   http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing,
00017  * software distributed under the License is distributed on an
00018  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00019  * KIND, either express or implied.  See the License for the
00020  * specific language governing permissions and limitations
00021  * under the License.
00022  *
00023  */
00024 
00025 #include <proton/import_export.h>
00026 #include <proton/type_compat.h>
00027 #include <proton/condition.h>
00028 #include <stddef.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00052 typedef struct pn_disposition_t pn_disposition_t;
00053 
00058 #define PN_RECEIVED (0x0000000000000023)
00059 
00066 #define PN_ACCEPTED (0x0000000000000024)
00067 
00074 #define PN_REJECTED (0x0000000000000025)
00075 
00082 #define PN_RELEASED (0x0000000000000026)
00083 
00091 #define PN_MODIFIED (0x0000000000000027)
00092 
00107 PN_EXTERN uint64_t pn_disposition_type(pn_disposition_t *disposition);
00108 
00112 PN_EXTERN const char *pn_disposition_type_name(uint64_t disposition_type);
00113 
00129 PN_EXTERN pn_condition_t *pn_disposition_condition(pn_disposition_t *disposition);
00130 
00146 PN_EXTERN pn_data_t *pn_disposition_data(pn_disposition_t *disposition);
00147 
00154 PN_EXTERN uint32_t pn_disposition_get_section_number(pn_disposition_t *disposition);
00155 
00162 PN_EXTERN void pn_disposition_set_section_number(pn_disposition_t *disposition, uint32_t section_number);
00163 
00170 PN_EXTERN uint64_t pn_disposition_get_section_offset(pn_disposition_t *disposition);
00171 
00178 PN_EXTERN void pn_disposition_set_section_offset(pn_disposition_t *disposition, uint64_t section_offset);
00179 
00186 PN_EXTERN bool pn_disposition_is_failed(pn_disposition_t *disposition);
00187 
00194 PN_EXTERN void pn_disposition_set_failed(pn_disposition_t *disposition, bool failed);
00195 
00202 PN_EXTERN bool pn_disposition_is_undeliverable(pn_disposition_t *disposition);
00203 
00210 PN_EXTERN void pn_disposition_set_undeliverable(pn_disposition_t *disposition, bool undeliverable);
00211 
00228 PN_EXTERN pn_data_t *pn_disposition_annotations(pn_disposition_t *disposition);
00229 
00234 #ifdef __cplusplus
00235 }
00236 #endif
00237 
00238 #endif /* disposition.h */

Generated on 30 Jul 2020 for Qpid Proton C by  doxygen 1.6.1