aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-10-27 00:56:38 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-10-27 00:56:38 +0000
commita561260fdab6fed8b474e89f797c0e64eefc4684 (patch)
tree60333681c40ddcaf6a39c782d713d94143aaa6b7 /include/asterisk/config.h
parent43ddba956a94b7316dd0b3fdb031b2e1b794941a (diff)
Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10 f38db490-d61c-443f-a65b-d21fe96a405b
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