00001 /* 00002 * Prototypes for public functions only of internal interest, 00003 * normally not used by modules. 00004 * What goes here are typically *_init() routines. 00005 */ 00006 00007 /*! \file 00008 * 00009 * \brief 00010 * Prototypes for public functions only of internal interest, 00011 * 00012 */ 00013 00014 00015 #ifndef _ASTERISK__PRIVATE_H 00016 #define _ASTERISK__PRIVATE_H 00017 00018 int load_modules(unsigned int); /*!< Provided by loader.c */ 00019 int load_pbx(void); /*!< Provided by pbx.c */ 00020 int init_logger(void); /*!< Provided by logger.c */ 00021 void close_logger(void); /*!< Provided by logger.c */ 00022 void clean_time_zones(void); /*!< Provided by localtime.c */ 00023 int init_framer(void); /*!< Provided by frame.c */ 00024 int ast_term_init(void); /*!< Provided by term.c */ 00025 int astdb_init(void); /*!< Provided by db.c */ 00026 void ast_channels_init(void); /*!< Provided by channel.c */ 00027 void ast_builtins_init(void); /*!< Provided by cli.c */ 00028 int ast_cli_perms_init(int reload); /*!< Provided by cli.c */ 00029 int dnsmgr_init(void); /*!< Provided by dnsmgr.c */ 00030 void dnsmgr_start_refresh(void); /*!< Provided by dnsmgr.c */ 00031 int dnsmgr_reload(void); /*!< Provided by dnsmgr.c */ 00032 void threadstorage_init(void); /*!< Provided by threadstorage.c */ 00033 int ast_event_init(void); /*!< Provided by event.c */ 00034 int ast_device_state_engine_init(void); /*!< Provided by devicestate.c */ 00035 int astobj2_init(void); /*!< Provided by astobj2.c */ 00036 int ast_file_init(void); /*!< Provided by file.c */ 00037 int ast_features_init(void); /*!< Provided by features.c */ 00038 void ast_autoservice_init(void); /*!< Provided by autoservice.c */ 00039 int ast_data_init(void); /*!< Provided by data.c */ 00040 int ast_http_init(void); /*!< Provided by http.c */ 00041 int ast_http_reload(void); /*!< Provided by http.c */ 00042 int ast_tps_init(void); /*!< Provided by taskprocessor.c */ 00043 int ast_timing_init(void); /*!< Provided by timing.c */ 00044 int ast_indications_init(void); /*!< Provided by indications.c */ 00045 int ast_indications_reload(void);/*!< Provided by indications.c */ 00046 void ast_stun_init(void); /*!< Provided by stun.c */ 00047 int ast_cel_engine_init(void); /*!< Provided by cel.c */ 00048 int ast_cel_engine_reload(void); /*!< Provided by cel.c */ 00049 int ast_ssl_init(void); /*!< Provided by ssl.c */ 00050 int ast_test_init(void); /*!< Provided by test.c */ 00051 int ast_msg_init(void); /*!< Provided by message.c */ 00052 void ast_msg_shutdown(void); /*!< Provided by message.c */ 00053 00054 /*! 00055 * \brief Reload asterisk modules. 00056 * \param name the name of the module to reload 00057 * 00058 * This function reloads the specified module, or if no modules are specified, 00059 * it will reload all loaded modules. 00060 * 00061 * \note Modules are reloaded using their reload() functions, not unloading 00062 * them and loading them again. 00063 * 00064 * \return 0 if the specified module was not found. 00065 * \retval 1 if the module was found but cannot be reloaded. 00066 * \retval -1 if a reload operation is already in progress. 00067 * \retval 2 if the specfied module was found and reloaded. 00068 */ 00069 int ast_module_reload(const char *name); 00070 00071 /*! 00072 * \brief Process reload requests received during startup. 00073 * 00074 * This function requests that the loader execute the pending reload requests 00075 * that were queued during server startup. 00076 * 00077 * \note This function will do nothing if the server has not completely started 00078 * up. Once called, the reload queue is emptied, and further invocations 00079 * will have no affect. 00080 */ 00081 void ast_process_pending_reloads(void); 00082 00083 /*! \brief Load XML documentation. Provided by xmldoc.c 00084 * \retval 1 on error. 00085 * \retval 0 on success. 00086 */ 00087 int ast_xmldoc_load_documentation(void); 00088 00089 /*! 00090 * \brief Reload genericplc configuration value from codecs.conf 00091 * 00092 * Implementation is in main/channel.c 00093 */ 00094 int ast_plc_reload(void); 00095 00096 /*! 00097 * \brief Init the ast_format attribute interface register container. 00098 */ 00099 int ast_format_attr_init(void); 00100 00101 /*! 00102 * \brief Init the Asterisk global format list after all format attribute modules have been loaded 00103 */ 00104 int ast_format_list_init(void); 00105 00106 /*! \brief initializes the rtp engine arrays */ 00107 int ast_rtp_engine_init(void); 00108 #endif /* _ASTERISK__PRIVATE_H */