2 * Prototypes for public functions only of internal interest,
3 * normally not used by modules.
4 * What goes here are typically *_init() routines.
10 * Prototypes for public functions only of internal interest,
15 #ifndef _ASTERISK__PRIVATE_H
16 #define _ASTERISK__PRIVATE_H
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);
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 */
62 * \brief Initialize malloc debug phase 1.
64 * \note Must be called first thing after forking.
66 void load_astmm_phase_1(void);
69 * \brief Initialize malloc debug phase 2.
71 void load_astmm_phase_2(void);
74 * \brief Initialize the bridging system.
77 * \retval 0 on success.
78 * \retval -1 on error.
80 int ast_bridging_init(void);
83 * \brief Initialize the local proxy channel.
86 * \retval 0 on success.
87 * \retval -1 on error.
89 int ast_local_init(void);
92 * \brief Process reload requests received during startup.
94 * This function requests that the loader execute the pending reload requests
95 * that were queued during server startup.
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.
101 void ast_process_pending_reloads(void);
103 /*! \brief Load XML documentation. Provided by xmldoc.c
104 * \retval 1 on error.
105 * \retval 0 on success.
107 int ast_xmldoc_load_documentation(void);
109 /*! \brief initializes the rtp engine arrays */
110 int ast_rtp_engine_init(void);
113 * \brief initializes the rtp engine arrays
116 int ast_parking_stasis_init(void);
119 * \brief Endpoint support initialization.
120 * \return 0 on success.
121 * \return Non-zero on error.
123 int ast_endpoint_init(void);
125 #endif /* _ASTERISK__PRIVATE_H */