Navigation


Changeset 120:d7acdc46134d in freeDiameter for extensions/test_app/test_app.h


Ignore:
Timestamp:
Dec 9, 2009, 5:36:38 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Renamed several extensions

File:
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/test_app/test_app.h

    r97 r120  
    4343#include <freeDiameter/extension.h>
    4444
    45 #ifndef APP_TEST_DEFAULT_SIGNAL
    46 #define APP_TEST_DEFAULT_SIGNAL SIGUSR1
    47 #endif /* APP_TEST_DEFAULT_SIGNAL */
     45#ifndef TEST_APP_DEFAULT_SIGNAL
     46#define TEST_APP_DEFAULT_SIGNAL SIGUSR1
     47#endif /* TEST_APP_DEFAULT_SIGNAL */
    4848
    4949
     
    5353
    5454/* The module configuration */
    55 struct atst_conf {
     55struct ta_conf {
    5656        uint32_t        vendor_id;      /* default 999999 */
    5757        uint32_t        appli_id;       /* default 123456 */
     
    6161        char    *       dest_realm;     /* default local realm */
    6262        char    *       dest_host;      /* default NULL */
    63         int             signal;         /* default APP_TEST_DEFAULT_SIGNAL */
     63        int             signal;         /* default TEST_APP_DEFAULT_SIGNAL */
    6464};
    65 extern struct atst_conf * atst_conf;
     65extern struct ta_conf * ta_conf;
    6666
    6767/* Parse the configuration file */
    68 int atst_conf_handle(char * conffile);
     68int ta_conf_handle(char * conffile);
    6969
    7070/* Start or stop the signal handler */
    71 int atst_sig_init(void (*cb)(void));
    72 void atst_sig_fini(void);
     71int ta_sig_init(void (*cb)(void));
     72void ta_sig_fini(void);
    7373
    7474/* Handle incoming messages (server) */
    75 int atst_serv_init(void);
    76 void atst_serv_fini(void);
     75int ta_serv_init(void);
     76void ta_serv_fini(void);
    7777
    7878/* Create outgoing message (client) */
    79 int atst_cli_init(void);
    80 void atst_cli_fini(void);
     79int ta_cli_init(void);
     80void ta_cli_fini(void);
    8181
    8282/* Initialize dictionary definitions */
    83 int atst_dict_init(void);
     83int ta_dict_init(void);
    8484
    8585
    8686/* 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;
     87extern struct dict_object * ta_vendor;
     88extern struct dict_object * ta_appli;
     89extern struct dict_object * ta_cmd_r;
     90extern struct dict_object * ta_cmd_a;
     91extern struct dict_object * ta_avp;
    9292
    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;
     93extern struct dict_object * ta_sess_id;
     94extern struct dict_object * ta_origin_host;
     95extern struct dict_object * ta_origin_realm;
     96extern struct dict_object * ta_dest_host;
     97extern struct dict_object * ta_dest_realm;
     98extern struct dict_object * ta_res_code;
Note: See TracChangeset for help on using the changeset viewer.