Asterisk - The Open Source Telephony Project GIT-master-0644429
_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 */
19void load_asterisk_conf(void);
20void set_asterisk_conf_path(const char *path);
21void set_socket_path(const char *path);
22
23int load_modules(void); /*!< Provided by loader.c */
24int modules_shutdown(void); /*!< Provided by loader.c */
25int load_pbx(void); /*!< Provided by pbx.c */
26int load_pbx_builtins(void); /*!< Provided by pbx_builtins.c */
27int load_pbx_functions_cli(void); /*!< Provided by pbx_functions.c */
28int load_pbx_variables(void); /*!< Provided by pbx_variables.c */
29int load_pbx_switch(void); /*!< Provided by pbx_switch.c */
30int load_pbx_app(void); /*!< Provided by pbx_app.c */
31int load_pbx_hangup_handler(void); /*!< Provided by pbx_hangup_handler.c */
32int init_logger(void); /*!< Provided by logger.c */
33void close_logger(void); /*!< Provided by logger.c */
34void logger_queue_start(void); /*!< Provided by logger.c */
35void clean_time_zones(void); /*!< Provided by localtime.c */
36int ast_term_init(void); /*!< Provided by term.c */
37int astdb_init(void); /*!< Provided by db.c */
38int ast_channels_init(void); /*!< Provided by channel.c */
39void ast_builtins_init(void); /*!< Provided by cli.c */
40void ast_cli_channels_init(void); /*!< Provided by cli.c */
41int ast_cli_perms_init(int reload); /*!< Provided by cli.c */
42void dnsmgr_start_refresh(void); /*!< Provided by dnsmgr.c */
43int ast_dns_system_resolver_init(void); /*!< Provided by dns_system_resolver.c */
44void threadstorage_init(void); /*!< Provided by threadstorage.c */
45int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */
46int astobj2_init(void); /*!< Provided by astobj2.c */
47int ast_named_locks_init(void); /*!< Provided by named_locks.c */
48int ast_file_init(void); /*!< Provided by file.c */
49void ast_autoservice_init(void); /*!< Provided by autoservice.c */
50int ast_tps_init(void); /*!< Provided by taskprocessor.c */
51int ast_timing_init(void); /*!< Provided by timing.c */
52void ast_stun_init(void); /*!< Provided by stun.c */
53int ast_ssl_init(void); /*!< Provided by ssl.c */
54int ast_pj_init(void); /*!< Provided by libasteriskpj.c */
55int ast_test_init(void); /*!< Provided by test.c */
56int ast_msg_init(void); /*!< Provided by message.c */
57void ast_msg_shutdown(void); /*!< Provided by message.c */
58int aco_init(void); /*!< Provided by config_options.c */
59int dns_core_init(void); /*!< Provided by dns_core.c */
60int 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 */
67void load_astmm_phase_1(void);
68
69/*!
70 * \brief Initialize malloc debug phase 2.
71 */
72void 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 */
81int 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 */
90int 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 */
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 */
111int ast_rtp_engine_init(void);
112
113/*!
114 * \brief initializes the rtp engine arrays
115 * \since 12.0.0
116 */
118
119/*!
120 * \brief Endpoint support initialization.
121 * \return 0 on success.
122 * \return Non-zero on error.
123 */
124int ast_endpoint_init(void);
125
126#endif /* _ASTERISK__PRIVATE_H */
int load_pbx_variables(void)
void threadstorage_init(void)
Definition: threadstorage.c:35
void ast_process_pending_reloads(void)
Process reload requests received during startup.
Definition: loader.c:1566
int modules_shutdown(void)
Definition: loader.c:1172
int ast_bridging_init(void)
Initialize the bridging system.
Definition: bridge.c:5543
void dnsmgr_start_refresh(void)
Definition: dnsmgr.c:302
int ast_timing_init(void)
Definition: timing.c:289
int ast_device_state_engine_init(void)
Initialize the device state engine in separate thread.
Definition: devicestate.c:618
int ast_term_init(void)
Definition: term.c:165
int load_modules(void)
Definition: loader.c:2508
void ast_cli_channels_init(void)
Definition: main/cli.c:2252
void ast_msg_shutdown(void)
void logger_queue_start(void)
Start the ast_queue_log() logger.
Definition: logger.c:2186
int aco_init(void)
void load_asterisk_conf(void)
Definition: options.c:210
int ast_test_init(void)
Definition: test.c:1482
void close_logger(void)
Definition: logger.c:2245
void ast_stun_init(void)
Initialize the STUN system in Asterisk.
Definition: stun.c:576
void set_asterisk_conf_path(const char *path)
Definition: options.c:200
int astdb_init(void)
Definition: main/db.c:1256
int ast_pj_init(void)
Definition: libasteriskpj.c:45
int load_pbx_functions_cli(void)
int ast_tps_init(void)
void load_astmm_phase_2(void)
Initialize malloc debug phase 2.
Definition: astmm.c:1529
int ast_msg_init(void)
int load_pbx_hangup_handler(void)
int ast_local_init(void)
Initialize the local proxy channel.
Definition: core_local.c:1139
int load_pbx_builtins(void)
int load_pbx_switch(void)
Definition: pbx_switch.c:125
int ast_rtp_engine_init(void)
initializes the rtp engine arrays
Definition: rtp_engine.c:3840
int ast_xmldoc_load_documentation(void)
Load XML documentation. Provided by xmldoc.c.
Definition: xmldoc.c:3047
int ast_named_locks_init(void)
Definition: named_locks.c:52
int ast_channels_init(void)
Definition: channel.c:8029
void clean_time_zones(void)
Definition: localtime.c:1590
void load_astmm_phase_1(void)
Initialize malloc debug phase 1.
Definition: astmm.c:1525
void ast_builtins_init(void)
initialize the _full_cmd string in * each of the builtins.
Definition: main/cli.c:2245
void ast_autoservice_init(void)
Definition: autoservice.c:387
int init_logger(void)
Definition: logger.c:2202
int ast_endpoint_init(void)
Endpoint support initialization.
int dns_core_init(void)
Definition: dns_core.c:616
int load_pbx(void)
Definition: pbx.c:8421
int astobj2_init(void)
Definition: astobj2.c:1169
int load_pbx_app(void)
Definition: pbx_app.c:538
int ast_dns_system_resolver_init(void)
Initializes the resolver.
int ast_ssl_init(void)
int ast_cli_perms_init(int reload)
Definition: main/cli.c:2112
void set_socket_path(const char *path)
Definition: options.c:205
int ast_file_init(void)
Definition: file.c:2051
int ast_refer_init(void)
Definition: refer.c:529
int ast_parking_stasis_init(void)
initializes the rtp engine arrays
Definition: parking.c:53
static int reload(void)