aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-22 21:45:15 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-22 21:45:15 +0000
commitd4eff45834f49e6a095733107ce5db40eee08306 (patch)
tree6de7fa0be6298c4f18ea585b756b49c6a65efb90
parent662e697b68257db31f3596f702cc841ea1ac5527 (diff)
add a new include file for out-of-tree modules that need to know where things are located
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40853 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--include/asterisk.h2
-rw-r--r--include/asterisk/paths.h43
2 files changed, 44 insertions, 1 deletions
diff --git a/include/asterisk.h b/include/asterisk.h
index 1ed3d322d..9b18733b1 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -22,7 +22,7 @@
#include "asterisk/compat.h"
-#include <limits.h>
+#include "asterisk/paths.h"
#define DEFAULT_LANGUAGE "en"
diff --git a/include/asterisk/paths.h b/include/asterisk/paths.h
new file mode 100644
index 000000000..65db7162a
--- /dev/null
+++ b/include/asterisk/paths.h
@@ -0,0 +1,43 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * Paths to configurable Asterisk directories
+ *
+ * Copyright (C) 1999-2006, Digium, Inc.
+ *
+ * Mark Spencer <markster@digium.com>
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+/*! \file
+ * \brief Asterisk main include file. File version handling, generic pbx functions.
+ */
+
+#ifndef _ASTERISK_PATHS_H
+#define _ASTERISK_PATHS_H
+
+#include <limits.h>
+
+extern char ast_config_AST_CONFIG_DIR[PATH_MAX];
+extern char ast_config_AST_CONFIG_FILE[PATH_MAX];
+extern char ast_config_AST_MODULE_DIR[PATH_MAX];
+extern char ast_config_AST_SPOOL_DIR[PATH_MAX];
+extern char ast_config_AST_MONITOR_DIR[PATH_MAX];
+extern char ast_config_AST_VAR_DIR[PATH_MAX];
+extern char ast_config_AST_DATA_DIR[PATH_MAX];
+extern char ast_config_AST_LOG_DIR[PATH_MAX];
+extern char ast_config_AST_AGI_DIR[PATH_MAX];
+extern char ast_config_AST_DB[PATH_MAX];
+extern char ast_config_AST_KEY_DIR[PATH_MAX];
+extern char ast_config_AST_PID[PATH_MAX];
+extern char ast_config_AST_SOCKET[PATH_MAX];
+extern char ast_config_AST_RUN_DIR[PATH_MAX];
+extern char ast_config_AST_CTL_PERMISSIONS[PATH_MAX];
+extern char ast_config_AST_CTL_OWNER[PATH_MAX];
+extern char ast_config_AST_CTL_GROUP[PATH_MAX];
+extern char ast_config_AST_CTL[PATH_MAX];
+extern char ast_config_AST_SYSTEM_NAME[20];
+
+#endif /* _ASTERISK_PATHS_H */