e60ba0690519234acb88d2f4912a1c269785c0e1
[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 int load_modules(unsigned int);         /*!< Provided by loader.c */
19 int load_pbx(void);                     /*!< Provided by pbx.c */
20 int init_logger(void);                  /*!< Provided by logger.c */
21 void close_logger(void);                /*!< Provided by logger.c */
22 int init_framer(void);                  /*!< Provided by frame.c */
23 int ast_term_init(void);                /*!< Provided by term.c */
24 int astdb_init(void);                   /*!< Provided by db.c */
25 void ast_channels_init(void);           /*!< Provided by channel.c */
26 void ast_builtins_init(void);           /*!< Provided by cli.c */
27 int ast_cli_perms_init(int reload);     /*!< Provided by cli.c */
28 int dnsmgr_init(void);                  /*!< Provided by dnsmgr.c */ 
29 void dnsmgr_start_refresh(void);        /*!< Provided by dnsmgr.c */
30 int dnsmgr_reload(void);                /*!< Provided by dnsmgr.c */
31 void threadstorage_init(void);          /*!< Provided by threadstorage.c */
32 int ast_event_init(void);               /*!< Provided by event.c */
33 int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */
34 int astobj2_init(void);                 /*!< Provided by astobj2.c */
35 int ast_file_init(void);                /*!< Provided by file.c */
36 int ast_features_init(void);            /*!< Provided by features.c */
37 void ast_autoservice_init(void);        /*!< Provided by autoservice.c */
38 int ast_http_init(void);                /*!< Provided by http.c */
39 int ast_http_reload(void);              /*!< Provided by http.c */
40 int ast_tps_init(void);                 /*!< Provided by taskprocessor.c */
41 int ast_timing_init(void);              /*!< Provided by timing.c */
42 int ast_indications_init(void); /*!< Provided by indications.c */
43 int ast_indications_reload(void);/*!< Provided by indications.c */
44 void ast_stun_init(void);               /*!< Provided by stun.c */
45
46 /*!
47  * \brief Reload asterisk modules.
48  * \param name the name of the module to reload
49  *
50  * This function reloads the specified module, or if no modules are specified,
51  * it will reload all loaded modules.
52  *
53  * \note Modules are reloaded using their reload() functions, not unloading
54  * them and loading them again.
55  * 
56  * \return 0 if the specified module was not found.
57  * \retval 1 if the module was found but cannot be reloaded.
58  * \retval -1 if a reload operation is already in progress.
59  * \retval 2 if the specfied module was found and reloaded.
60  */
61 int ast_module_reload(const char *name);
62
63 /*!
64  * \brief Process reload requests received during startup.
65  *
66  * This function requests that the loader execute the pending reload requests
67  * that were queued during server startup.
68  *
69  * \note This function will do nothing if the server has not completely started
70  *       up.  Once called, the reload queue is emptied, and further invocations
71  *       will have no affect.
72  */
73 void ast_process_pending_reloads(void);
74
75 /*! \brief Load XML documentation. Provided by xmldoc.c 
76  *  \retval 1 on error.
77  *  \retval 0 on success. 
78  */
79 int ast_xmldoc_load_documentation(void);
80
81 #endif /* _ASTERISK__PRIVATE_H */