Commit fe2e0ed0 authored by Lionel Gauthier's avatar Lionel Gauthier

quick trick for freediameter 1.2.0

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5413 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 36af2179
......@@ -52,13 +52,23 @@ static struct session_handler *s6a_reg = NULL;
static struct disp_hdl *handle;
s6a_cnf_t s6a_cnf;
#if !defined(FREEDIAMETER_VERSION_1_2_0)
void s6a_cli_sess_cleanup(void * arg, char * sid, void * opaque);
void s6a_cli_sess_cleanup(void * arg, char * sid, void * opaque)
{
}
#else
void s6a_cli_sess_cleanup(struct sess_state * state, os0_t sid, void * opaque);
void s6a_cli_sess_cleanup(struct sess_state * state, os0_t sid, void * opaque)
{
}
#endif
static int s6a_init_objs(void)
{
vendor_id_t vendor_3gpp = VENDOR_3GPP;
......@@ -302,7 +312,12 @@ int s6a_init(hss_config_t *hss_config_p)
}
/* Create handler for sessions */
#if !defined(FREEDIAMETER_VERSION_1_2_0)
CHECK_FCT(fd_sess_handler_create(&s6a_reg, s6a_cli_sess_cleanup, NULL));
#else
session_state_dump dumper;
CHECK_FCT(fd_sess_handler_create(&s6a_reg, s6a_cli_sess_cleanup, dumper, NULL));
#endif
/* Register the callback */
memset(&when, 0, sizeof(when));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment