Asterisk - The Open Source Telephony Project GIT-master-7e7a603
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 1987 of file features_config.c.

1988{
1989 int res;
1990
1991 res = load_config();
1995
1996 return res;
1997}
#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 1976 of file features_config.c.

1977{
1978 /* Rearm the parking config options have moved warning. */
1979 parking_warning = 0;
1980
1981 if (aco_process_config(&cfg_info, 1) == ACO_PROCESS_ERROR) {
1982 return -1;
1983 }
1984 return 0;
1985}
@ 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 1967 of file features_config.c.

1968{
1972 aco_info_destroy(&cfg_info);
1974}
#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().