Changeset 235:8773740401a5 in freeDiameter for extensions/test_app
- Timestamp:
- Mar 5, 2010, 7:01:48 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/test_app
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/CMakeLists.txt
r120 r235 14 14 ta_conf.tab.c 15 15 ta_conf.tab.h 16 ta_sig.c17 16 ta_dict.c 18 17 ta_cli.c -
extensions/test_app/ta_cli.c
r203 r235 136 136 137 137 /* Create a test message */ 138 static void ta_cli_test_message( void)138 static void ta_cli_test_message(int sig) 139 139 { 140 140 struct msg * req = NULL; … … 236 236 CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free) ); 237 237 238 CHECK_FCT( ta_sig_init(ta_cli_test_message) );238 CHECK_FCT( fd_sig_register(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 ta_sig_fini();246 247 (void) fd_sess_handler_destroy(&ta_cli_reg);245 CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ ); 246 247 CHECK_FCT_DO( fd_sess_handler_destroy(&ta_cli_reg), /* continue */ ); 248 248 249 249 return; -
extensions/test_app/test_app.c
r120 r235 39 39 40 40 #include "test_app.h" 41 #include <signal.h>42 41 43 42 /* Initialize the configuration */ -
extensions/test_app/test_app.h
r127 r235 42 42 43 43 #include <freeDiameter/extension.h> 44 #include <signal.h> 44 45 45 46 #ifndef TEST_APP_DEFAULT_SIGNAL … … 69 70 int ta_conf_handle(char * conffile); 70 71 71 /* Start or stop the signal handler */72 int ta_sig_init(void (*cb)(void));73 void ta_sig_fini(void);74 75 72 /* Handle incoming messages (server) */ 76 73 int ta_serv_init(void);
Note: See TracChangeset
for help on using the changeset viewer.