chenshijun
2020-12-07 e3d8ac1ce502e5a5f9dc762da301b0060b641811
libcbhomebus_func.h
@@ -127,7 +127,7 @@
 *
 * @return 0 成功, 其他值 失败的错误码
*/
typedef int  (*tfn_net_mod_socket_start_bus)(void * _socket);
//typedef int  (*tfn_net_mod_socket_start_bus)(void * _socket);
 /**
@@ -147,10 +147,10 @@
 * @size 主题长度
 * @key 总线端口
 */
typedef int  (*tfn_net_mod_socket_sub)(void * _socket, void *topic, int size, int key);
typedef int  (*tfn_net_mod_socket_sub)(void * _socket, void *topic, int size);
// 超时返回。 @sec 秒 , @nsec 纳秒
typedef int  (*tfn_net_mod_socket_sub_timeout)(void * _socket, void *topic, int size, int key, int sec, int nsec);
typedef int  (*tfn_net_mod_socket_sub_nowait)(void * _socket, void *topic, int size, int key);
typedef int  (*tfn_net_mod_socket_sub_timeout)(void * _socket, void *topic, int size, int sec, int nsec);
typedef int  (*tfn_net_mod_socket_sub_nowait)(void * _socket, void *topic, int size);
/**
@@ -159,10 +159,10 @@
 * @size 主题长度
 * @key 总线端口
 */
typedef int  (*tfn_net_mod_socket_desub)(void * _socket, void *topic, int size, int key);
typedef int  (*tfn_net_mod_socket_desub)(void * _socket, void *topic, int size);
// 超时返回。 @sec 秒 , @nsec 纳秒
typedef int  (*tfn_net_mod_socket_desub_timeout)(void * _socket, void *topic, int size, int key, int sec, int nsec);
typedef int  (*tfn_net_mod_socket_desub_nowait)(void * _socket, void *topic, int size, int key);
typedef int  (*tfn_net_mod_socket_desub_timeout)(void * _socket, void *topic, int size, int sec, int nsec);
typedef int  (*tfn_net_mod_socket_desub_nowait)(void * _socket, void *topic, int size);
/**
@@ -190,6 +190,7 @@
 */
typedef int(*tfn_shm_mod_socket_remove_keys) (int*, int);
/**
 * 创建
 */
@@ -205,6 +206,21 @@
 */
typedef int (*tfn_net_mod_server_socket_start)(void *_sockt);
/**
 * bus创建
 */
typedef void *(*tfn_bus_server_socket_wrapper_open)() ;
/**
 * bus关闭
 */
typedef void (*tfn_bus_server_socket_wrapper_close)(void *_sockt) ;
/**
 * bus启动
 */
typedef int (*tfn_bus_server_socket_wrapper_start_bus)(void *_sockt);
#ifdef __cplusplus
}
#endif