summaryrefslogtreecommitdiff
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-02-22 05:53:50 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-02-22 05:53:50 -0600
commit8f248f7a1cc8452eb455a338ddc9bae593310ee7 (patch)
treec72c985ccd721f0b776bd7365184ac2c409f57e0 /include/asterisk/config.h
parent911252d7b54f8ee7af30f71e26e7a26ef881d316 (diff)
parent6e6c96d713be2b745c4e033b6e5710dea72088df (diff)
Merge "realtime: Centralize some common realtime backend code"
Diffstat (limited to 'include/asterisk/config.h')
-rw-r--r--include/asterisk/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index 4944a3af2..f57966b0b 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -834,6 +834,18 @@ const char *ast_config_option(struct ast_config *cfg, const char *cat, const cha
struct ast_category *ast_category_new(const char *name, const char *in_file, int lineno);
/*!
+ * \brief Create a category that is not backed by a file
+ *
+ * \param name name of new category
+ */
+#define ast_category_new_dynamic(name) ast_category_new(name, "", -1)
+
+/*!
+ * \brief Create a nameless category that is not backed by a file
+ */
+#define ast_category_new_anonymous() ast_category_new_dynamic("")
+
+/*!
* \brief Create a category making it a template
*
* \param name name of new template