Changeset 639:95a784729cac in freeDiameter for extensions/test_app
- Timestamp:
- Dec 20, 2010, 1:07:06 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/test_app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/ta_cli.c
r406 r639 234 234 int ta_cli_init(void) 235 235 { 236 CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free ) );236 CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free, NULL) ); 237 237 238 238 CHECK_FCT( fd_sig_register(ta_conf->signal, "test_app.cli", ta_cli_test_message ) ); … … 245 245 CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ ); 246 246 247 CHECK_FCT_DO( fd_sess_handler_destroy(&ta_cli_reg ), /* continue */ );247 CHECK_FCT_DO( fd_sess_handler_destroy(&ta_cli_reg, NULL), /* continue */ ); 248 248 249 249 return; -
extensions/test_app/ta_serv.c
r575 r639 42 42 43 43 /* Default callback for the application. */ 44 static int ta_fb_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act)44 static int ta_fb_cb( struct msg ** msg, struct avp * avp, struct session * sess, void * opaque, enum disp_action * act) 45 45 { 46 46 /* This CB should never be called */ … … 53 53 54 54 /* Callback for incoming Test-Request messages */ 55 static int ta_tr_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act)55 static int ta_tr_cb( struct msg ** msg, struct avp * avp, struct session * sess, void * opaque, enum disp_action * act) 56 56 { 57 57 struct msg *ans, *qry; … … 120 120 121 121 /* fallback CB if command != Test-Request received */ 122 CHECK_FCT( fd_disp_register( ta_fb_cb, DISP_HOW_APPID, &data, &ta_hdl_fb ) );122 CHECK_FCT( fd_disp_register( ta_fb_cb, DISP_HOW_APPID, &data, NULL, &ta_hdl_fb ) ); 123 123 124 124 /* Now specific handler for Test-Request */ 125 CHECK_FCT( fd_disp_register( ta_tr_cb, DISP_HOW_CC, &data, &ta_hdl_tr ) );125 CHECK_FCT( fd_disp_register( ta_tr_cb, DISP_HOW_CC, &data, NULL, &ta_hdl_tr ) ); 126 126 127 127 return 0; … … 131 131 { 132 132 if (ta_hdl_fb) { 133 (void) fd_disp_unregister(&ta_hdl_fb );133 (void) fd_disp_unregister(&ta_hdl_fb, NULL); 134 134 } 135 135 if (ta_hdl_tr) { 136 (void) fd_disp_unregister(&ta_hdl_tr );136 (void) fd_disp_unregister(&ta_hdl_tr, NULL); 137 137 } 138 138
Note: See TracChangeset
for help on using the changeset viewer.