Asterisk - The Open Source Telephony Project GIT-master-8f1982c
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
Functions
main/features_config.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int load_features_config (void)
 
int reload_features_config (void)
 
void unload_features_config (void)
 

Function Documentation

◆ load_features_config()

int load_features_config ( void  )

Definition at line 2067 of file features_config.c.

2068{
2069 int res;
2070
2071 res = load_config();
2075
2076 return res;
2077}
#define ast_cli_register_multiple(e, len)
Register multiple commands.
Definition: cli.h:265
static struct ast_custom_function feature_function
static struct ast_cli_entry cli_features_config[]
static struct ast_custom_function featuremap_function
static int load_config(void)
int __ast_custom_function_register(struct ast_custom_function *acf, struct ast_module *mod)
Register a custom function.
#define NULL
Definition: resample.c:96
#define ARRAY_LEN(a)
Definition: utils.h:666

References __ast_custom_function_register(), ARRAY_LEN, ast_cli_register_multiple, cli_features_config, feature_function, featuremap_function, load_config(), and NULL.

Referenced by load_module().

◆ reload_features_config()

int reload_features_config ( void  )

Definition at line 2056 of file features_config.c.

2057{
2058 /* Rearm the parking config options have moved warning. */
2059 parking_warning = 0;
2060
2061 if (aco_process_config(&cfg_info, 1) == ACO_PROCESS_ERROR) {
2062 return -1;
2063 }
2064 return 0;
2065}
@ ACO_PROCESS_ERROR
Their was an error and no changes were applied.
enum aco_process_status aco_process_config(struct aco_info *info, int reload)
Process a config info via the options registered with an aco_info.
static int parking_warning

References aco_process_config(), ACO_PROCESS_ERROR, and parking_warning.

◆ unload_features_config()

void unload_features_config ( void  )

Definition at line 2047 of file features_config.c.

2048{
2052 aco_info_destroy(&cfg_info);
2054}
#define ao2_global_obj_release(holder)
Release the ao2 object held in the global holder.
Definition: astobj2.h:859
static struct console_pvt globals
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
Unregister multiple commands.
Definition: clicompat.c:30
void aco_info_destroy(struct aco_info *info)
Destroy an initialized aco_info struct.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.

References aco_info_destroy(), ao2_global_obj_release, ARRAY_LEN, ast_cli_unregister_multiple(), ast_custom_function_unregister(), cli_features_config, feature_function, featuremap_function, and globals.

Referenced by unload_module().