zhangmeng
2020-08-06 f87b7233a94131a5fd1b3dfb1595226e2779fffa
libcsoftbus.h
@@ -64,12 +64,16 @@
static tfn_dgram_socket_sub     fn_dgram_socket_sub = NULL;
static tfn_dgram_socket_sub_timeout     fn_dgram_socket_sub_timeout = NULL;
static tfn_dgram_socket_sub_nowait     fn_dgram_socket_sub_nowait = NULL;
static tfn_dgram_socket_desub   fn_dgram_socket_desub = NULL;
static tfn_dgram_socket_desub_timeout   fn_dgram_socket_desub_timeout = NULL;
static tfn_dgram_socket_desub_nowait   fn_dgram_socket_desub_nowait = NULL;
static tfn_dgram_socket_pub     fn_dgram_socket_pub = NULL;
static tfn_dgram_socket_pub_timeout     fn_dgram_socket_pub_timeout = NULL;
static tfn_dgram_socket_pub_nowait     fn_dgram_socket_pub_nowait = NULL;
static tfn_dgram_socket_port    fn_dgram_socket_port = NULL;
static tfn_dgram_socket_free    fn_dgram_socket_free = NULL;
static tfn_dgram_remove_key     fn_dgram_remove_key = NULL;
static tfn_dgram_remove_keys     fn_dgram_remove_keys = NULL;
//////////////////////////////////////////////////////////////////////
// labels
@@ -129,12 +133,16 @@
const static char l_dgram_socket_sub[] = "dgram_mod_sub";
const static char l_dgram_socket_sub_timeout[] = "dgram_mod_sub_timeout";
const static char l_dgram_socket_sub_nowait[] = "dgram_mod_sub_nowait";
const static char l_dgram_socket_desub[] = "dgram_mod_desub";
const static char l_dgram_socket_desub_timeout[] = "dgram_mod_desub_timeout";
const static char l_dgram_socket_desub_nowait[] = "dgram_mod_desub_nowait";
const static char l_dgram_socket_pub[] = "dgram_mod_pub";
const static char l_dgram_socket_pub_timeout[] = "dgram_mod_pub_timeout";
const static char l_dgram_socket_pub_nowait[] = "dgram_mod_pub_nowait";
const static char l_dgram_socket_port[] = "dgram_mod_get_port";
const static char l_dgram_socket_free[] = "dgram_mod_free";
const static char l_dgram_remove_key[] = "dgram_mod_remove_key";
const static char l_dgram_remove_keys[] = "dgram_mod_remove_keys";
//////////////////////////////////////////////////////////////////////
// dlopen dynamic library
@@ -200,11 +208,16 @@
int wrap_fn_dgram_socket_sub(hcsoftbus lib, void *s, void *topic, int size, int port);
int wrap_fn_dgram_socket_sub_timeout(hcsoftbus lib, void *s, void *topic, int size, int port, int sec, int usec);
int wrap_fn_dgram_socket_sub_nowait(hcsoftbus lib, void *s, void *topic, int size, int port);
int wrap_fn_dgram_socket_desub(hcsoftbus lib, void *s, void *topic, int size, int port);
int wrap_fn_dgram_socket_desub_timeout(hcsoftbus lib, void *s, void *topic, int size, int port, int sec, int usec);
int wrap_fn_dgram_socket_desub_nowait(hcsoftbus lib, void *s, void *topic, int size, int port);
int wrap_fn_dgram_socket_pub(hcsoftbus lib, void *s, void *topic, int tsize, void *content, int csize, int port);
int wrap_fn_dgram_socket_pub_timeout(hcsoftbus lib, void *s, void *topic, int tsize, void *content, int csize, int port, int sec, int usec);
int wrap_fn_dgram_socket_pub_nowait(hcsoftbus lib, void *s, void *topic, int tsize, void *content, int csize, int port);
int wrap_fn_dgram_socket_port(hcsoftbus lib, void *s);
void wrap_fn_dgram_socket_free(hcsoftbus lib, void *buf);
int wrap_fn_dgram_remove_key(hcsoftbus lib, int key);
int wrap_fn_dgram_remove_keys(hcsoftbus lib, void *keys, int length);
#ifdef __cplusplus
}