Changeset 658:f198d16fa7f4 in freeDiameter for extensions/test_app
- Timestamp:
- Jan 14, 2011, 3:15:23 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/test_app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/ta_bench.c
r575 r658 208 208 209 209 /* The function called when the signal is received */ 210 static void ta_bench_start( int sig) {210 static void ta_bench_start() { 211 211 struct timespec end_time, now; 212 212 struct ta_stats start, end; … … 274 274 CHECK_SYS( sem_init( &ta_sem, 0, ta_conf->bench_concur) ); 275 275 276 CHECK_FCT( fd_ sig_register(ta_conf->signal, "test_app.bench", ta_bench_start ) );276 CHECK_FCT( fd_event_trig_regcb(ta_conf->signal, "test_app.bench", ta_bench_start ) ); 277 277 278 278 return 0; … … 281 281 void ta_bench_fini(void) 282 282 { 283 CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ );283 // CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ ); 284 284 285 285 CHECK_SYS_DO( sem_destroy(&ta_sem), ); -
extensions/test_app/ta_cli.c
r639 r658 136 136 137 137 /* Create a test message */ 138 static void ta_cli_test_message( int sig)138 static void ta_cli_test_message() 139 139 { 140 140 struct msg * req = NULL; … … 236 236 CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free, NULL) ); 237 237 238 CHECK_FCT( fd_ sig_register(ta_conf->signal, "test_app.cli", ta_cli_test_message ) );238 CHECK_FCT( fd_event_trig_regcb(ta_conf->signal, "test_app.cli", ta_cli_test_message ) ); 239 239 240 240 return 0; … … 243 243 void ta_cli_fini(void) 244 244 { 245 CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ );245 // CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ ); 246 246 247 247 CHECK_FCT_DO( fd_sess_handler_destroy(&ta_cli_reg, NULL), /* continue */ );
Note: See TracChangeset
for help on using the changeset viewer.