aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/config_old.h
blob: dcde09932c65901d3bf79a7c7052ad5e20360bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Asterisk -- A telephony toolkit for Linux.
 *
 * Configuration File Parser (Deprecated APIs)
 * 
 * Copyright (C) 1999-2005, Mark Spencer
 *
 * Mark Spencer <markster@digium.com>
 *
 * This program is free software, distributed under the terms of
 * the GNU General Public License
 */

#ifndef _ASTERISK_CONFIG_OLD_H
#define _ASTERISK_CONFIG_OLD_H

/*! Load a config file */
/*! 
 * \param configfile path of file to open.  If no preceding '/' character, path is considered relative to AST_CONFIG_DIR
 * Create a config structure from a given configuration file.
 * Returns NULL on error, or an ast_config data structure on success
 */
struct ast_config *ast_load(char *configfile);

/*! Removes a config */
/*!
 * \param config config data structure associated with the config.
 * Free memory associated with a given config
 * Returns nothing
 */
void ast_destroy(struct ast_config *config);

/*! Free variable list */
/*!
 * \param var the linked list of variables to free
 * This function frees a list of variables.
 */
void ast_destroy_realtime(struct ast_variable *var);

struct ast_config *ast_internal_load(const char *configfile, struct ast_config *cfg);

#endif