aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-25 06:11:11 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-25 06:11:11 +0000
commit7af32f3a63989284fd9b681f86bde282f5e524a2 (patch)
treec7e53eefbba4da4312fc8b72c9fbff4e6096dd42 /include
parent2207b9a515214bf72785eabf75bd587bd7df23e8 (diff)
Add old config files (bug #3406)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4890 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/config_old.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/asterisk/config_old.h b/include/asterisk/config_old.h
new file mode 100755
index 000000000..dcde09932
--- /dev/null
+++ b/include/asterisk/config_old.h
@@ -0,0 +1,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