Hi!
I look through a C source (pjsip) and I find this sctucture. I don't know how to conceive.
static struct user_agent
{
pjsip_module mod;
pj_pool_t *pool;
pjsip_endpoint *endpt;
pj_mutex_t *mutex;
pj_hash_table_t *dlg_table;
pjsip_ua_init_param param;
struct dlg_set free_dlgset_nodes;
} mod_ua =
{
{
NULL, NULL, /* prev, next. */
{ "mod-ua", 6 }, /* Name. */
-1, /* Id */
PJSIP_MOD_PRIORITY_UA_PROXY_LAYER, /* Priority */
&mod_ua_load, /* load() */
NULL, /* start() */
NULL, /* stop() */
&mod_ua_unload, /* unload() */
&mod_ua_on_rx_request, /* on_rx_request() */
&mod_ua_on_rx_response, /* on_rx_response() */
NULL, /* on_tx_request. */
NULL, /* on_tx_response() */
&mod_ua_on_tsx_state, /* on_tsx_state() */
}
};