Add JSON API for Asterisk.
[asterisk/asterisk.git] / build_tools / make_defaults_h
index dfd3bc2..e6051e5 100755 (executable)
@@ -2,25 +2,28 @@
 cat << END
 /*
  * defaults.h 
- * Automatically generated
+ * Automatically generated from build options,
+ * only used in main/asterisk.c
  */
-#define AST_CONFIG_DIR "${INSTALL_PATH}${ASTETCDIR}"
-#define AST_RUN_DIR    "${INSTALL_PATH}${ASTVARRUNDIR}"
-#define AST_SOCKET     "${INSTALL_PATH}${ASTVARRUNDIR}/asterisk.ctl"
-#define AST_PID        "${INSTALL_PATH}${ASTVARRUNDIR}/asterisk.pid"
-#define AST_MODULE_DIR "${INSTALL_PATH}${MODULES_DIR}"
-#define AST_SPOOL_DIR  "${INSTALL_PATH}${ASTSPOOLDIR}"
-#define AST_VAR_DIR    "${INSTALL_PATH}${ASTVARLIBDIR}"
-#define AST_DATA_DIR   "${INSTALL_PATH}${ASTDATADIR}"
-#define AST_LOG_DIR    "${INSTALL_PATH}${ASTLOGDIR}"
-#define AST_AGI_DIR    "${INSTALL_PATH}${AGI_DIR}"
-#define AST_KEY_DIR    "${INSTALL_PATH}${ASTDATADIR}/keys"
-#define AST_DB         "${INSTALL_PATH}${ASTVARLIBDIR}/astdb"
-#define AST_TMP_DIR    "${INSTALL_PATH}${ASTSPOOLDIR}/tmp"
+#define DEFAULT_CONFIG_FILE "${INSTALL_PATH}${ASTCONFPATH}"
 
-#define AST_CONFIG_FILE "${INSTALL_PATH}${ASTCONFPATH}"
+#define DEFAULT_CONFIG_DIR "${INSTALL_PATH}${ASTETCDIR}"
+#define DEFAULT_MODULE_DIR "${INSTALL_PATH}${ASTMODDIR}"
+#define DEFAULT_AGI_DIR    "${INSTALL_PATH}${AGI_DIR}"
+#define DEFAULT_LOG_DIR    "${INSTALL_PATH}${ASTLOGDIR}"
 
-#define AST_SOUNDS     "${INSTALL_PATH}${ASTDATADIR}/sounds"
-#define AST_IMAGES     "${INSTALL_PATH}${ASTDATADIR}/images"
+#define DEFAULT_RUN_DIR    "${INSTALL_PATH}${ASTVARRUNDIR}"
+#define DEFAULT_SOCKET     "${INSTALL_PATH}${ASTVARRUNDIR}/asterisk.ctl"
+#define DEFAULT_PID        "${INSTALL_PATH}${ASTVARRUNDIR}/asterisk.pid"
 
+#define DEFAULT_VAR_DIR    "${INSTALL_PATH}${ASTVARLIBDIR}"
+#define DEFAULT_DB         "${INSTALL_PATH}${ASTDBDIR}/astdb"
+
+#define DEFAULT_DATA_DIR   "${INSTALL_PATH}${ASTDATADIR}"
+#define DEFAULT_KEY_DIR    "${INSTALL_PATH}${ASTDATADIR}/keys"
+
+#define DEFAULT_SPOOL_DIR  "${INSTALL_PATH}${ASTSPOOLDIR}"
+#define DEFAULT_TMP_DIR    "${INSTALL_PATH}${ASTSPOOLDIR}/tmp"
+
+#define DEFAULT_SBIN_DIR   "${INSTALL_PATH}${ASTSBINDIR}"
 END