summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-06-09 06:57:53 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-06-09 06:57:53 -0500
commitbbeb753e5ed21f6a21242a24092b0d71d9d6c75c (patch)
treeab76f427f421f3eab6b3b9f977217fee532d5e18 /include
parent53c1126090733d8d4e6ee06e2ef92dc98bb0f374 (diff)
parent80621ce3c5da5062f7e3efb42d6e8fcdd9caa3f6 (diff)
Merge "Fix unsafe uses of ast_context pointers."
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/pbx.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index c09de982a..f5feb9366 100644
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -300,7 +300,21 @@ struct ast_context *ast_context_find_or_create(struct ast_context **extcontexts,
void ast_merge_contexts_and_delete(struct ast_context **extcontexts, struct ast_hashtab *exttable, const char *registrar);
/*!
- * \brief Destroy a context (matches the specified context (or ANY context if NULL)
+ * \brief Destroy a context by name
+ *
+ * \param context Name of the context to destroy
+ * \param registrar who registered it
+ *
+ * You can optionally leave out the registrar parameter. It will find it
+ * based on the context name.
+ *
+ * \retval -1 context not found
+ * \retval 0 Success
+ */
+int ast_context_destroy_by_name(const char *context, const char *registrar);
+
+/*!
+ * \brief Destroy a context (matches the specified context or ANY context if NULL)
*
* \param con context to destroy
* \param registrar who registered it