Revert "pbx_ael: Global variables are not expanded."
[asterisk/asterisk.git] / include / asterisk / _private.h
1 /*
2  * Prototypes for public functions only of internal interest,
3  * normally not used by modules.
4  * What goes here are typically *_init() routines.
5  */
6
7 /*! \file
8  *
9  * \brief
10  * Prototypes for public functions only of internal interest,
11  *
12  */
13
14
15 #ifndef _ASTERISK__PRIVATE_H
16 #define _ASTERISK__PRIVATE_H
17
18 /* Load settings from asterisk.conf, provided by options.c */
19 void load_asterisk_conf(void);
20 void set_asterisk_conf_path(const char *path);
21 void set_socket_path(const char *path);
22
23 int load_modules(void);         /*!< Provided by loader.c */
24 int modules_shutdown(void);             /*!< Provided by loader.c */
25 int load_pbx(void);                     /*!< Provided by pbx.c */
26 int load_pbx_builtins(void);    /*!< Provided by pbx_builtins.c */
27 int load_pbx_functions_cli(void);       /*!< Provided by pbx_functions.c */
28 int load_pbx_variables(void);   /*!< Provided by pbx_variables.c */
29 int load_pbx_switch(void);              /*!< Provided by pbx_switch.c */
30 int load_pbx_app(void);         /*!< Provided by pbx_app.c */
31 int load_pbx_hangup_handler(void);      /*!< Provided by pbx_hangup_handler.c */
32 int init_logger(void);                  /*!< Provided by logger.c */
33 void close_logger(void);                /*!< Provided by logger.c */
34 void logger_queue_start(void);          /*!< Provided by logger.c */
35 void clean_time_zones(void);                    /*!< Provided by localtime.c */
36 int ast_term_init(void);                /*!< Provided by term.c */
37 int astdb_init(void);                   /*!< Provided by db.c */
38 int ast_channels_init(void);            /*!< Provided by channel.c */
39 void ast_builtins_init(void);           /*!< Provided by cli.c */
40 void ast_cli_channels_init(void);       /*!< Provided by cli.c */
41 int ast_cli_perms_init(int reload);     /*!< Provided by cli.c */
42 void dnsmgr_start_refresh(void);        /*!< Provided by dnsmgr.c */
43 int ast_dns_system_resolver_init(void); /*!< Provided by dns_system_resolver.c */
44 void threadstorage_init(void);          /*!< Provided by threadstorage.c */
45 int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */
46 int astobj2_init(void);                 /*!< Provided by astobj2.c */
47 int ast_named_locks_init(void);         /*!< Provided by named_locks.c */
48 int ast_file_init(void);                /*!< Provided by file.c */
49 void ast_autoservice_init(void);        /*!< Provided by autoservice.c */
50 int ast_tps_init(void);                 /*!< Provided by taskprocessor.c */
51 int ast_timing_init(void);              /*!< Provided by timing.c */
52 void ast_stun_init(void);               /*!< Provided by stun.c */
53 int ast_ssl_init(void);                 /*!< Provided by ssl.c */
54 int ast_pj_init(void);                 /*!< Provided by libasteriskpj.c */
55 int ast_test_init(void);            /*!< Provided by test.c */
56 int ast_msg_init(void);             /*!< Provided by message.c */
57 void ast_msg_shutdown(void);        /*!< Provided by message.c */
58 int aco_init(void);             /*!< Provided by config_options.c */
59 int dns_core_init(void);        /*!< Provided by dns_core.c */
60
61 /*!
62  * \brief Initialize malloc debug phase 1.
63  *
64  * \note Must be called first thing after forking.
65  */
66 void load_astmm_phase_1(void);
67
68 /*!
69  * \brief Initialize malloc debug phase 2.
70  */
71 void load_astmm_phase_2(void);
72
73 /*!
74  * \brief Initialize the bridging system.
75  * \since 12.0.0
76  *
77  * \retval 0 on success.
78  * \retval -1 on error.
79  */
80 int ast_bridging_init(void);
81
82 /*!
83  * \brief Initialize the local proxy channel.
84  * \since 12.0.0
85  *
86  * \retval 0 on success.
87  * \retval -1 on error.
88  */
89 int ast_local_init(void);
90
91 /*!
92  * \brief Process reload requests received during startup.
93  *
94  * This function requests that the loader execute the pending reload requests
95  * that were queued during server startup.
96  *
97  * \note This function will do nothing if the server has not completely started
98  *       up.  Once called, the reload queue is emptied, and further invocations
99  *       will have no affect.
100  */
101 void ast_process_pending_reloads(void);
102
103 /*! \brief Load XML documentation. Provided by xmldoc.c
104  *  \retval 1 on error.
105  *  \retval 0 on success.
106  */
107 int ast_xmldoc_load_documentation(void);
108
109 /*! \brief initializes the rtp engine arrays */
110 int ast_rtp_engine_init(void);
111
112 /*!
113  * \brief initializes the rtp engine arrays
114  * \since 12.0.0
115  */
116 int ast_parking_stasis_init(void);
117
118 /*!
119  * \brief Endpoint support initialization.
120  * \return 0 on success.
121  * \return Non-zero on error.
122  */
123 int ast_endpoint_init(void);
124
125 #endif /* _ASTERISK__PRIVATE_H */