Asterisk - The Open Source Telephony Project  21.4.1
_private.h
Go to the documentation of this file.
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 int ast_refer_init(void); /*!< Provided by refer.c */
61 
62 /*!
63  * \brief Initialize malloc debug phase 1.
64  *
65  * \note Must be called first thing after forking.
66  */
67 void load_astmm_phase_1(void);
68 
69 /*!
70  * \brief Initialize malloc debug phase 2.
71  */
72 void load_astmm_phase_2(void);
73 
74 /*!
75  * \brief Initialize the bridging system.
76  * \since 12.0.0
77  *
78  * \retval 0 on success.
79  * \retval -1 on error.
80  */
81 int ast_bridging_init(void);
82 
83 /*!
84  * \brief Initialize the local proxy channel.
85  * \since 12.0.0
86  *
87  * \retval 0 on success.
88  * \retval -1 on error.
89  */
90 int ast_local_init(void);
91 
92 /*!
93  * \brief Process reload requests received during startup.
94  *
95  * This function requests that the loader execute the pending reload requests
96  * that were queued during server startup.
97  *
98  * \note This function will do nothing if the server has not completely started
99  * up. Once called, the reload queue is emptied, and further invocations
100  * will have no affect.
101  */
102 void ast_process_pending_reloads(void);
103 
104 /*! \brief Load XML documentation. Provided by xmldoc.c
105  * \retval 1 on error.
106  * \retval 0 on success.
107  */
109 
110 /*! \brief initializes the rtp engine arrays */
111 int ast_rtp_engine_init(void);
112 
113 /*!
114  * \brief initializes the rtp engine arrays
115  * \since 12.0.0
116  */
117 int ast_parking_stasis_init(void);
118 
119 /*!
120  * \brief Endpoint support initialization.
121  * \return 0 on success.
122  * \return Non-zero on error.
123  */
124 int ast_endpoint_init(void);
125 
126 #endif /* _ASTERISK__PRIVATE_H */
int load_pbx_variables(void)
int ast_file_init(void)
Definition: file.c:2051
int ast_pj_init(void)
Definition: libasteriskpj.c:45
int ast_named_locks_init(void)
Definition: named_locks.c:52
void ast_autoservice_init(void)
Definition: autoservice.c:380
int aco_init(void)
void ast_builtins_init(void)
initialize the _full_cmd string in * each of the builtins.
Definition: main/cli.c:2238
int ast_endpoint_init(void)
Endpoint support initialization.
void load_astmm_phase_1(void)
Initialize malloc debug phase 1.
Definition: main/astmm.c:1525
int load_pbx_switch(void)
Definition: pbx_switch.c:125
int ast_tps_init(void)
int ast_bridging_init(void)
Initialize the bridging system.
Definition: bridge.c:5543
int ast_xmldoc_load_documentation(void)
Load XML documentation. Provided by xmldoc.c.
Definition: xmldoc.c:3047
int ast_test_init(void)
Definition: test.c:1482
int ast_dns_system_resolver_init(void)
Initializes the resolver.
int modules_shutdown(void)
Definition: loader.c:1172
int load_pbx_hangup_handler(void)
int ast_refer_init(void)
Definition: refer.c:529
void close_logger(void)
Definition: logger.c:2245
int ast_term_init(void)
Definition: term.c:165
int dns_core_init(void)
Definition: dns_core.c:614
int init_logger(void)
Definition: logger.c:2202
int ast_device_state_engine_init(void)
Initialize the device state engine in separate thread.
Definition: devicestate.c:618
void ast_stun_init(void)
Initialize the STUN system in Asterisk.
Definition: stun.c:576
int ast_parking_stasis_init(void)
initializes the rtp engine arrays
Definition: parking.c:53
int ast_local_init(void)
Initialize the local proxy channel.
Definition: core_local.c:1139
int astobj2_init(void)
Definition: astobj2.c:1169
int ast_rtp_engine_init(void)
initializes the rtp engine arrays
Definition: rtp_engine.c:3788
void logger_queue_start(void)
Start the ast_queue_log() logger.
Definition: logger.c:2186
int ast_ssl_init(void)
void load_astmm_phase_2(void)
Initialize malloc debug phase 2.
Definition: main/astmm.c:1529
void clean_time_zones(void)
Definition: localtime.c:1590
int load_pbx_app(void)
Definition: pbx_app.c:538
void threadstorage_init(void)
Definition: threadstorage.c:35
void dnsmgr_start_refresh(void)
Definition: dnsmgr.c:302
void ast_cli_channels_init(void)
Definition: main/cli.c:2245
int load_modules(void)
Definition: loader.c:2508
int ast_timing_init(void)
Definition: timing.c:289
int load_pbx_functions_cli(void)
void ast_msg_shutdown(void)
int ast_channels_init(void)
Definition: channel.c:8007
int load_pbx_builtins(void)
int ast_msg_init(void)
int load_pbx(void)
Definition: pbx.c:8421
void ast_process_pending_reloads(void)
Process reload requests received during startup.
Definition: loader.c:1566
int astdb_init(void)
Definition: main/db.c:1228
int ast_cli_perms_init(int reload)
Definition: main/cli.c:2105