Changeset 120:d7acdc46134d in freeDiameter for extensions/test_app/test_app.h
- Timestamp:
- Dec 9, 2009, 5:36:38 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/test_app.h
r97 r120 43 43 #include <freeDiameter/extension.h> 44 44 45 #ifndef APP_TEST_DEFAULT_SIGNAL46 #define APP_TEST_DEFAULT_SIGNAL SIGUSR147 #endif /* APP_TEST_DEFAULT_SIGNAL */45 #ifndef TEST_APP_DEFAULT_SIGNAL 46 #define TEST_APP_DEFAULT_SIGNAL SIGUSR1 47 #endif /* TEST_APP_DEFAULT_SIGNAL */ 48 48 49 49 … … 53 53 54 54 /* The module configuration */ 55 struct atst_conf {55 struct ta_conf { 56 56 uint32_t vendor_id; /* default 999999 */ 57 57 uint32_t appli_id; /* default 123456 */ … … 61 61 char * dest_realm; /* default local realm */ 62 62 char * dest_host; /* default NULL */ 63 int signal; /* default APP_TEST_DEFAULT_SIGNAL */63 int signal; /* default TEST_APP_DEFAULT_SIGNAL */ 64 64 }; 65 extern struct atst_conf * atst_conf;65 extern struct ta_conf * ta_conf; 66 66 67 67 /* Parse the configuration file */ 68 int atst_conf_handle(char * conffile);68 int ta_conf_handle(char * conffile); 69 69 70 70 /* Start or stop the signal handler */ 71 int atst_sig_init(void (*cb)(void));72 void atst_sig_fini(void);71 int ta_sig_init(void (*cb)(void)); 72 void ta_sig_fini(void); 73 73 74 74 /* Handle incoming messages (server) */ 75 int atst_serv_init(void);76 void atst_serv_fini(void);75 int ta_serv_init(void); 76 void ta_serv_fini(void); 77 77 78 78 /* Create outgoing message (client) */ 79 int atst_cli_init(void);80 void atst_cli_fini(void);79 int ta_cli_init(void); 80 void ta_cli_fini(void); 81 81 82 82 /* Initialize dictionary definitions */ 83 int atst_dict_init(void);83 int ta_dict_init(void); 84 84 85 85 86 86 /* Some global variables for dictionary */ 87 extern struct dict_object * atst_vendor;88 extern struct dict_object * atst_appli;89 extern struct dict_object * atst_cmd_r;90 extern struct dict_object * atst_cmd_a;91 extern struct dict_object * atst_avp;87 extern struct dict_object * ta_vendor; 88 extern struct dict_object * ta_appli; 89 extern struct dict_object * ta_cmd_r; 90 extern struct dict_object * ta_cmd_a; 91 extern struct dict_object * ta_avp; 92 92 93 extern struct dict_object * atst_sess_id;94 extern struct dict_object * atst_origin_host;95 extern struct dict_object * atst_origin_realm;96 extern struct dict_object * atst_dest_host;97 extern struct dict_object * atst_dest_realm;98 extern struct dict_object * atst_res_code;93 extern struct dict_object * ta_sess_id; 94 extern struct dict_object * ta_origin_host; 95 extern struct dict_object * ta_origin_realm; 96 extern struct dict_object * ta_dest_host; 97 extern struct dict_object * ta_dest_realm; 98 extern struct dict_object * ta_res_code;
Note: See TracChangeset
for help on using the changeset viewer.