Mercurial > hg > freeDiameter
diff extensions/test_app/ta_cli.c @ 658:f198d16fa7f4
Initial commit for 1.1.0:
* Restructuring:
* libfreeDiameter:
- renamed folder & binary into libfdproto
- renamed libfD.h into fdproto-internal.h
- removed signals management (replaced by triggers in libfdcore)
* freeDiameter split into:
- libfdcore (most contents)
- renamed fD.h into fdcore-internal.h
- added core.c for framework init/shutdown.
- new triggers mechanism in events.c.
- freeDiameterd (main, command line parsing, signals management)
* tests:
- now in top-level directory tests.
* other changes:
- fd_dict_new now returns 0 on duplicate identical entries.
- fixes in dict_legacy_xml
- fixes in some dictionaries
- moved FD_DEFAULT_CONF_FILENAME definition to freeDiameter-host.h
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 14 Jan 2011 15:15:23 +0900 |
parents | 95a784729cac |
children | 2e94ef0515d7 |
line wrap: on
line diff
--- a/extensions/test_app/ta_cli.c Tue Jan 11 15:48:58 2011 +0900 +++ b/extensions/test_app/ta_cli.c Fri Jan 14 15:15:23 2011 +0900 @@ -135,7 +135,7 @@ } /* Create a test message */ -static void ta_cli_test_message(int sig) +static void ta_cli_test_message() { struct msg * req = NULL; struct avp * avp; @@ -235,14 +235,14 @@ { CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free, NULL) ); - CHECK_FCT( fd_sig_register(ta_conf->signal, "test_app.cli", ta_cli_test_message ) ); + CHECK_FCT( fd_event_trig_regcb(ta_conf->signal, "test_app.cli", ta_cli_test_message ) ); return 0; } void ta_cli_fini(void) { - CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ ); + // CHECK_FCT_DO( fd_sig_unregister(ta_conf->signal), /* continue */ ); CHECK_FCT_DO( fd_sess_handler_destroy(&ta_cli_reg, NULL), /* continue */ );