Wed Jan 8 2020 09:49:39

Asterisk developer's documentation


_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 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 void clean_time_zones(void); /*!< Provided by localtime.c */
23 int init_framer(void); /*!< Provided by frame.c */
24 int ast_term_init(void); /*!< Provided by term.c */
25 int astdb_init(void); /*!< Provided by db.c */
26 void ast_channels_init(void); /*!< Provided by channel.c */
27 void ast_builtins_init(void); /*!< Provided by cli.c */
28 int ast_cli_perms_init(int reload); /*!< Provided by cli.c */
29 int dnsmgr_init(void); /*!< Provided by dnsmgr.c */
30 void dnsmgr_start_refresh(void); /*!< Provided by dnsmgr.c */
31 int dnsmgr_reload(void); /*!< Provided by dnsmgr.c */
32 void threadstorage_init(void); /*!< Provided by threadstorage.c */
33 int ast_event_init(void); /*!< Provided by event.c */
34 int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */
35 int astobj2_init(void); /*!< Provided by astobj2.c */
36 int ast_file_init(void); /*!< Provided by file.c */
37 int ast_features_init(void); /*!< Provided by features.c */
38 void ast_autoservice_init(void); /*!< Provided by autoservice.c */
39 int ast_data_init(void); /*!< Provided by data.c */
40 int ast_http_init(void); /*!< Provided by http.c */
41 int ast_http_reload(void); /*!< Provided by http.c */
42 int ast_tps_init(void); /*!< Provided by taskprocessor.c */
43 int ast_timing_init(void); /*!< Provided by timing.c */
44 int ast_indications_init(void); /*!< Provided by indications.c */
45 int ast_indications_reload(void);/*!< Provided by indications.c */
46 void ast_stun_init(void); /*!< Provided by stun.c */
47 int ast_cel_engine_init(void); /*!< Provided by cel.c */
48 int ast_cel_engine_reload(void); /*!< Provided by cel.c */
49 int ast_ssl_init(void); /*!< Provided by ssl.c */
50 int ast_test_init(void); /*!< Provided by test.c */
51 
52 /*!
53  * \brief Reload asterisk modules.
54  * \param name the name of the module to reload
55  *
56  * This function reloads the specified module, or if no modules are specified,
57  * it will reload all loaded modules.
58  *
59  * \note Modules are reloaded using their reload() functions, not unloading
60  * them and loading them again.
61  *
62  * \return 0 if the specified module was not found.
63  * \retval 1 if the module was found but cannot be reloaded.
64  * \retval -1 if a reload operation is already in progress.
65  * \retval 2 if the specfied module was found and reloaded.
66  */
67 int ast_module_reload(const char *name);
68 
69 /*!
70  * \brief Process reload requests received during startup.
71  *
72  * This function requests that the loader execute the pending reload requests
73  * that were queued during server startup.
74  *
75  * \note This function will do nothing if the server has not completely started
76  * up. Once called, the reload queue is emptied, and further invocations
77  * will have no affect.
78  */
80 
81 /*! \brief Load XML documentation. Provided by xmldoc.c
82  * \retval 1 on error.
83  * \retval 0 on success.
84  */
86 
87 /*!
88  * \brief Reload genericplc configuration value from codecs.conf
89  *
90  * Implementation is in main/channel.c
91  */
92 int ast_plc_reload(void);
93 
94 #endif /* _ASTERISK__PRIVATE_H */
int ast_indications_init(void)
Load indications module.
Definition: indications.c:1169
int ast_file_init(void)
Definition: file.c:1503
void ast_autoservice_init(void)
Definition: autoservice.c:335
void ast_builtins_init(void)
initialize the _full_cmd string in * each of the builtins.
Definition: cli.c:1880
int ast_cel_engine_reload(void)
Definition: cel.c:887
int ast_indications_reload(void)
Reload indications module.
Definition: indications.c:1188
int ast_tps_init(void)
int ast_features_init(void)
Definition: features.c:8336
int ast_xmldoc_load_documentation(void)
Load XML documentation. Provided by xmldoc.c.
Definition: xmldoc.c:1963
int ast_test_init(void)
Definition: test.c:941
int ast_http_init(void)
Definition: http.c:1319
int ast_cel_engine_init(void)
Definition: cel.c:860
void close_logger(void)
Definition: logger.c:1160
int ast_http_reload(void)
Definition: http.c:1287
int ast_term_init(void)
Definition: term.c:87
int init_logger(void)
Definition: logger.c:1127
int ast_plc_reload(void)
Reload genericplc configuration value from codecs.conf.
Definition: channel.c:8076
static int reload(void)
Definition: app_amd.c:497
int ast_device_state_engine_init(void)
Initialize the device state engine in separate thread.
Definition: devicestate.c:747
void ast_stun_init(void)
Initialize the STUN system in Asterisk.
Definition: stun.c:508
int astobj2_init(void)
Definition: astobj2.c:1150
int ast_event_init(void)
Definition: event.c:1819
static const char name[]
int ast_module_reload(const char *name)
Reload asterisk modules.
Definition: loader.c:721
int dnsmgr_reload(void)
Definition: dnsmgr.c:432
int ast_ssl_init(void)
Definition: ssl.c:77
void clean_time_zones(void)
Definition: localtime.c:1421
int init_framer(void)
Definition: frame.c:995
void threadstorage_init(void)
Definition: threadstorage.c:35
int load_modules(unsigned int)
Definition: loader.c:1072
int dnsmgr_init(void)
Definition: dnsmgr.c:417
void dnsmgr_start_refresh(void)
Definition: dnsmgr.c:291
int ast_timing_init(void)
Definition: timing.c:310
int ast_data_init(void)
Definition: data.c:3297
void ast_channels_init(void)
Definition: channel.c:8221
int load_pbx(void)
Definition: pbx.c:10996
void ast_process_pending_reloads(void)
Process reload requests received during startup.
Definition: loader.c:656
int astdb_init(void)
Definition: db.c:880
int ast_cli_perms_init(int reload)
Definition: cli.c:1752