summaryrefslogtreecommitdiff
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>1999-10-27 00:56:38 +0000
committerMark Spencer <markster@digium.com>1999-10-27 00:56:38 +0000
commitea715821004ca5c87711f14c4270d642321f3610 (patch)
tree60333681c40ddcaf6a39c782d713d94143aaa6b7 /include/asterisk/config.h
parent0c71a026a7b3dbe346da9f840dfb50840e1411f4 (diff)
Version 0.1.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/config.h')
-rwxr-xr-xinclude/asterisk/config.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
new file mode 100755
index 000000000..79dd8cc26
--- /dev/null
+++ b/include/asterisk/config.h
@@ -0,0 +1,48 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * Configuration File Parser
+ *
+ * Copyright (C) 1999, Adtran Inc. and Linux Support Services, LLC
+ *
+ * Mark Spencer <markster@linux-support.net>
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+#ifndef _ASTERISK_CONFIG_H
+#define _ASTERISK_CONFIG_H
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+struct ast_config;
+
+struct ast_variable {
+ char *name;
+ char *value;
+ struct ast_variable *next;
+};
+
+/* Create a config structure from a given configuration file */
+struct ast_config *ast_load(char *configfile);
+/* Free memory associated with a given config */
+void ast_destroy(struct ast_config *config);
+/* List categories of config file */
+char *ast_category_browse(struct ast_config *config, char *prev);
+/* List variables of config file */
+struct ast_variable *ast_variable_browse(struct ast_config *config, char *category);
+/* Retrieve a specific variable */
+char *ast_variable_retrieve(struct ast_config *config, char *category, char *value);
+/* Determine affermativeness of a boolean value */
+int ast_true(char *val);
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
+
+
+#endif