2 * Prototypes for public functions only of internal interest,
3 * normally not used by modules.
4 * What goes here are typically *_init() routines.
7 #ifndef _ASTERISK__PRIVATE_H
8 #define _ASTERISK__PRIVATE_H
10 int load_modules(unsigned int); /*!< Provided by loader.c */
11 int load_pbx(void); /*!< Provided by pbx.c */
12 int init_logger(void); /*!< Provided by logger.c */
13 void close_logger(void); /*!< Provided by logger.c */
14 int init_framer(void); /*!< Provided by frame.c */
15 int ast_term_init(void); /*!< Provided by term.c */
16 int astdb_init(void); /*!< Provided by db.c */
17 void ast_channels_init(void); /*!< Provided by channel.c */
18 void ast_builtins_init(void); /*!< Provided by cli.c */
19 int dnsmgr_init(void); /*!< Provided by dnsmgr.c */
20 void dnsmgr_start_refresh(void); /*!< Provided by dnsmgr.c */
21 int dnsmgr_reload(void); /*!< Provided by dnsmgr.c */
22 void threadstorage_init(void); /*!< Provided by threadstorage.c */
23 void ast_event_init(void); /*!< Provided by event.c */
24 int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */
25 int astobj2_init(void); /*!< Provided by astobj2.c */
26 int ast_file_init(void); /*!< Provided by file.c */
29 * \brief Reload asterisk modules.
30 * \param name the name of the module to reload
32 * This function reloads the specified module, or if no modules are specified,
33 * it will reload all loaded modules.
35 * \note Modules are reloaded using their reload() functions, not unloading
36 * them and loading them again.
38 * \return 0 if the specified module was not found.
39 * \retval 1 if the module was found but cannot be reloaded.
40 * \retval -1 if a reload operation is already in progress.
41 * \retval 2 if the specfied module was found and reloaded.
43 int ast_module_reload(const char *name);
45 #endif /* _ASTERISK__PRIVATE_H */