Mercurial > hg > freeDiameter
changeset 652:c23632480951
Fix updated API format
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 11 Jan 2011 12:17:50 +0900 |
parents | 083317a4e947 |
children | 34373acfbc6a |
files | extensions/test_acct/test_acct.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/test_acct/test_acct.c Fri Jan 07 18:33:37 2011 +0900 +++ b/extensions/test_acct/test_acct.c Tue Jan 11 12:17:50 2011 +0900 @@ -44,7 +44,7 @@ } tac_dict; /* Callback for incoming Base Accounting application messages */ -static int tac_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act) +static int tac_cb( struct msg ** msg, struct avp * avp, struct session * sess, void * data, enum disp_action * act) { struct msg_hdr *hdr = NULL; @@ -133,7 +133,7 @@ CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Accounting-Record-Type", &tac_dict.Accounting_Record_Type, ENOENT) ); /* Register the dispatch callback */ - CHECK_FCT( fd_disp_register( tac_cb, DISP_HOW_APPID, &data, NULL ) ); + CHECK_FCT( fd_disp_register( tac_cb, DISP_HOW_APPID, &data, NULL, NULL ) ); /* Advertise the support for the Diameter Base Accounting application in the peer */ CHECK_FCT( fd_disp_app_support ( data.app, NULL, 0, 1 ) );