proton/condition.h

Go to the documentation of this file.
00001 #ifndef PROTON_CONDITION_H
00002 #define PROTON_CONDITION_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/codec.h>
00027 #include <proton/type_compat.h>
00028 #include <stddef.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00064 typedef struct pn_condition_t pn_condition_t;
00065 
00074 PN_EXTERN bool pn_condition_is_set(pn_condition_t *condition);
00075 
00086 PN_EXTERN void pn_condition_clear(pn_condition_t *condition);
00087 
00095 PN_EXTERN const char *pn_condition_get_name(pn_condition_t *condition);
00096 
00104 PN_EXTERN int pn_condition_set_name(pn_condition_t *condition, const char *name);
00105 
00112 PN_EXTERN const char *pn_condition_get_description(pn_condition_t *condition);
00113 
00121 PN_EXTERN int pn_condition_set_description(pn_condition_t *condition, const char *description);
00122 
00132 PN_EXTERN pn_data_t *pn_condition_info(pn_condition_t *condition);
00133 
00137 PN_EXTERN int pn_condition_vformat(pn_condition_t *, const char *name, const char *fmt, va_list ap);
00138 
00142 PN_EXTERN int pn_condition_format(pn_condition_t *, const char *name, const char *fmt, ...);
00143 
00150 PN_EXTERN bool pn_condition_is_redirect(pn_condition_t *condition);
00151 
00160 PN_EXTERN const char *pn_condition_redirect_host(pn_condition_t *condition);
00161 
00170 PN_EXTERN int pn_condition_redirect_port(pn_condition_t *condition);
00171 
00175 PN_EXTERN int pn_condition_copy(pn_condition_t *dest, pn_condition_t *src);
00176 
00180 PN_EXTERN pn_condition_t *pn_condition(void);
00181 
00185 PN_EXTERN void pn_condition_free(pn_condition_t *);
00186 
00191 #ifdef __cplusplus
00192 }
00193 #endif
00194 
00195 #endif /* condition.h */

Generated on 2 Oct 2020 for Qpid Proton C by  doxygen 1.6.1