summaryrefslogtreecommitdiff
path: root/include/asterisk/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/event.h')
-rw-r--r--include/asterisk/event.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asterisk/event.h b/include/asterisk/event.h
index 9ad3a7082..73f121c97 100644
--- a/include/asterisk/event.h
+++ b/include/asterisk/event.h
@@ -114,7 +114,7 @@ typedef void (*ast_event_cb_t)(const struct ast_event *event, void *userdata);
* \note A NULL description will cause this function to crash, so watch out!
*/
struct ast_event_sub *ast_event_subscribe(enum ast_event_type event_type,
- ast_event_cb_t cb, char *description, void *userdata, ...);
+ ast_event_cb_t cb, const char *description, void *userdata, ...);
/*!
* \brief Allocate a subscription, but do not activate it
@@ -397,8 +397,7 @@ int ast_event_queue(struct ast_event *event);
* The event API already knows which events can be cached and how to cache them.
*
* \retval 0 success
- * \retval non-zero failure. If failure is returned, the event must be destroyed
- * by the caller of this function.
+ * \retval non-zero failure.
*/
int ast_event_queue_and_cache(struct ast_event *event);