Navigation


Changeset 1088:1d1a20a0779d in freeDiameter for extensions/test_app/ta_cli.c


Ignore:
Timestamp:
May 5, 2013, 4:25:27 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Second part of changeset 1083, now the code compiles again. Still missing some functions implementation, though

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_app/ta_cli.c

    r930 r1088  
    4646static struct session_handler * ta_cli_reg = NULL;
    4747
    48 struct ta_mess_info {
     48struct sess_state {
    4949        int32_t         randval;        /* a random value to store in Test-AVP */
    5050        struct timespec ts;             /* Time of sending the message */
     
    5454static void ta_cb_ans(void * data, struct msg ** msg)
    5555{
    56         struct ta_mess_info * mi = NULL;
     56        struct sess_state * mi = NULL;
    5757        struct timespec ts;
    5858        struct session * sess;
     
    177177        struct avp * avp;
    178178        union avp_value val;
    179         struct ta_mess_info * mi = NULL, *svg;
     179        struct sess_state * mi = NULL, *svg;
    180180        struct session *sess = NULL;
    181181       
     
    191191       
    192192        /* Create the random value to store with the session */
    193         mi = malloc(sizeof(struct ta_mess_info));
     193        mi = malloc(sizeof(struct sess_state));
    194194        if (mi == NULL) {
    195195                fd_log_debug("malloc failed: %s", strerror(errno));
     
    265265int ta_cli_init(void)
    266266{
    267         CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free, NULL) );
     267        CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, (void *)free, NULL, NULL) );
    268268       
    269269        CHECK_FCT( fd_event_trig_regcb(ta_conf->signal, "test_app.cli", ta_cli_test_message ) );
Note: See TracChangeset for help on using the changeset viewer.