#include <netinet/in.h>
#include <ctype.h>
+#include "asterisk/paths.h" /* use ast_config_AST_CONFIG_DIR */
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include <ctype.h>
+#include "asterisk/paths.h" /* use ast_config_AST_MONITOR_DIR */
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/audiohook.h"
#include <sys/stat.h>
#include <netinet/in.h>
+#include "asterisk/paths.h" /* use ast_config_AST_DATA_DIR */
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include <sys/stat.h>
+#include "asterisk/paths.h" /* use ast_config_AST_SPOOL_DIR */
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include <ctype.h>
+#include "asterisk/paths.h" /* use ast_config_AST_SPOOL_DIR */
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include <signal.h>
+#include "asterisk/paths.h" /* use ast_config_AST_SPOOL_DIR */
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include <fcntl.h>
#include <sys/time.h>
+#include "asterisk/paths.h" /* use ast_config_AST_CONFIG_DIR */
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include <locale.h>
+#include "asterisk/paths.h" /* use various paths */
#include "asterisk/astobj.h"
#include "asterisk/lock.h"
#include "asterisk/file.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/paths.h" /* use ast_config_AST_MONITOR_DIR */
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/audiohook.h"
#include <ctype.h>
#include <sys/stat.h>
+#include "asterisk/paths.h" /* use ast_config_AST_SPOOL_DIR and LOG_DIR */
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/options.h"
#include <fcntl.h>
#include <sys/stat.h>
+#include "asterisk/paths.h" /* use ast_config_AST_LOG_DIR */
#include "asterisk/channel.h"
#include "asterisk/options.h"
#include "asterisk/module.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/paths.h" /* use ast_config_AST_SPOOL_DIR */
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <time.h>
+#include "asterisk/paths.h" /* use ast_config_AST_LOG_DIR */
#include "asterisk/config.h"
#include "asterisk/channel.h"
#include "asterisk/cdr.h"
#include <time.h>
+#include "asterisk/paths.h" /* use ast_config_AST_LOG_DIR */
#include "asterisk/channel.h"
#include "asterisk/cdr.h"
#include "asterisk/module.h"
#include <time.h>
#include <sqlite3.h>
+#include "asterisk/paths.h" /* use ast_config_AST_LOG_DIR */
#include "asterisk/channel.h"
#include "asterisk/cdr.h"
#include "asterisk/module.h"
#include <regex.h>
#include "asterisk/zapata.h"
+#include "asterisk/paths.h" /* need ast_config_AST_DATA_DIR for firmware */
#include "asterisk/lock.h"
#include "asterisk/frame.h"
#include <regex.h>
#include "asterisk/network.h"
+#include "asterisk/paths.h" /* need ast_config_AST_SYSTEM_NAME */
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include <arpa/inet.h>
#include <ctype.h>
+#include "asterisk/paths.h" /* ast_config_AST_LOG_DIR used in (too ?) many places */
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include "asterisk/config.h"
#include "asterisk/compat.h"
-#include "asterisk/paths.h"
#include "asterisk/logger.h"
/* Default to allowing the umask or filesystem ACLs to determine actual file
#ifndef _ASTERISK_AEL_STRUCTS_H
#define _ASTERISK_AEL_STRUCTS_H
+/*
+ * We include asterisk/paths.h here because it is a convenient place
+ * that doesn't require us to rebuild ael files from .fl/.y
+ */
+#include "asterisk/paths.h"
+
#include "pval.h"
#if !defined(SOLARIS) && !defined(__CYGWIN__)
#include "asterisk/utils.h"
#include "asterisk/linkedlists.h"
#include "asterisk/stringfields.h"
-#include <limits.h>
#define DATASTORE_INHERIT_FOREVER INT_MAX
#include <inttypes.h>
#endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#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];
#include "asterisk/network.h"
-#include <limits.h>
#include <time.h> /* we want to override localtime_r */
#include "asterisk/lock.h"
#include <regex.h>
#include <fcntl.h>
+#include "asterisk/paths.h" /* use ast_config_AST_DATA_DIR */
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/file.h"
#include <signal.h>
#include <math.h>
+#include "asterisk/paths.h" /* use ast_config_AST_SYSTEM_NAME */
#include "asterisk/zapata.h"
#include "asterisk/pbx.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/_private.h"
+#include "asterisk/paths.h" /* use ast_config_AST_MODULE_DIR */
#include <sys/signal.h>
#include <signal.h>
#include <ctype.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/paths.h" /* use ast_config_AST_CONFIG_DIR */
#include "asterisk/network.h" /* we do some sockaddr manipulation here */
#include <time.h>
#include <sys/stat.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/_private.h"
+#include "asterisk/paths.h" /* use ast_config_AST_DB */
#include <sys/time.h>
#include <signal.h>
#include <dirent.h>
#include <dirent.h>
#include <sys/stat.h>
+#include "asterisk/paths.h" /* use ast_config_AST_DATA_DIR */
#include "asterisk/frame.h"
#include "asterisk/file.h"
#include "asterisk/cli.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/paths.h" /* use ast_config_AST_DATA_DIR */
#include "asterisk/network.h"
#include <time.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <signal.h>
+#include "asterisk/paths.h" /* use ast_config_AST_DATA_DIR */
#include "asterisk/sched.h"
#include "asterisk/options.h"
#include "asterisk/channel.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/_private.h"
+#include "asterisk/paths.h" /* use ast_config_AST_MODULE_DIR */
#include <dirent.h>
#include "asterisk/linkedlists.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/_private.h"
+#include "asterisk/paths.h" /* use ast_config_AST_LOG_DIR */
#include <signal.h>
#include <time.h>
#include <sys/stat.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/_private.h"
+#include "asterisk/paths.h" /* use various ast_config_AST_* */
#include <ctype.h>
#include <sys/time.h>
#include <signal.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/_private.h"
+#include "asterisk/paths.h" /* use ast_config_AST_SYSTEM_NAME */
#include <ctype.h>
#include <time.h>
#include <sys/time.h>
-#include <limits.h>
#if defined(HAVE_SYSINFO)
#include <sys/sysinfo.h>
#endif
#include <ctype.h>
+#include "asterisk/paths.h" /* ast_config_AST_CONFIG_DIR */
#include "asterisk/pbx.h"
#include "asterisk/config.h"
#include "asterisk/options.h"
#include <utime.h>
#include <dirent.h>
+#include "asterisk/paths.h" /* use ast_config_AST_SPOOL_DIR */
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/logger.h"
#include <sys/wait.h>
#include <sys/stat.h>
+#include "asterisk/paths.h" /* use many ast_config_AST_*_DIR */
#include "asterisk/network.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/paths.h" /* use ast_config_AST_KEY_DIR */
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <dirent.h>
#include <sys/stat.h>
#include <libgen.h>
+#include "asterisk/paths.h" /* use ast_config_AST_MONITOR_DIR */
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include "asterisk/file.h"