| | |
| | | #ifndef BH_API |
| | | #define BH_API |
| | | #ifndef _BH_API_WRAPPER_ |
| | | #define _BH_API_WRAPPER_ |
| | | |
| | | #ifdef __cplusplus |
| | | extern "C" { |
| | | #endif |
| | | |
| | | #define PRO_DE_SERIALIZE 1 |
| | | |
| | | int BHRegister(const void *proc_info, |
| | | const int proc_info_len, |
| | |
| | | int *reply_len, |
| | | const int timeout_ms); |
| | | |
| | | |
| | | int BHRegisterTopics(const void *topics, |
| | | const int topics_len, |
| | | void **reply, |
| | | int *reply_len, |
| | | const int timeout_ms); |
| | | |
| | | int BHQueryTopicAddress(const void *remote, const int remote_len, |
| | | const void *topic, const int topic_len, |
| | | void **reply, int *reply_len, |
| | | int BHQueryTopicAddress(const void *remote, |
| | | const int remote_len, |
| | | const void *topics, |
| | | const int topics_len, |
| | | void **reply, |
| | | int *reply_len, |
| | | const int timeout_ms); |
| | | |
| | | int BHQueryProcs(const void *remote, |
| | |
| | | void **reply, |
| | | int *reply_len, |
| | | const int timeout_ms); |
| | | |
| | | int BHSubscribeNetTopics(const void *topics, |
| | | const int topics_len, |
| | | void **reply, |
| | |
| | | int *reply_len, |
| | | const int timeout_ms); |
| | | |
| | | #if defined(PRO_DE_SERIALIZE) |
| | | int BHPublish(const void *msgpub, |
| | | const int msgpub_len, |
| | | const int timeout_ms); |
| | | #else |
| | | int BHPublish(const char *topic, const char *content, const int timeout_ms); |
| | | #endif |
| | | |
| | | int BHReadSub(void **proc_id, |
| | | int *proc_id_len, |
| | |
| | | |
| | | void BHFree(void *buf, int size); |
| | | |
| | | int BHGetLastError(void **msg, int *msg_len); |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |
| | | #endif |
| | | #endif /* end of include guard: BH_API_WRAPPER_O81WKNXI */ |
| | | |
| | | |
| | | |