]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Constify subscription description parameter string.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 3 Jun 2011 19:56:09 +0000 (19:56 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 3 Jun 2011 19:56:09 +0000 (19:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@321813 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/event.h
main/event.c

index 9ad3a7082eea01466772fb428308a4feb48a0ad3..73f121c97d332d24f93403f8447de4c0a50541ef 100644 (file)
@@ -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);
 
index 4f8b08bb24afc18d578e73c86838efdfffe7d9ba..a50f611edc785a925df429264af4541284b73af5 100644 (file)
@@ -840,7 +840,7 @@ int ast_event_sub_activate(struct ast_event_sub *sub)
 }
 
 struct ast_event_sub *ast_event_subscribe(enum ast_event_type type, ast_event_cb_t cb,
-       char *description, void *userdata, ...)
+       const char *description, void *userdata, ...)
 {
        va_list ap;
        enum ast_event_ie_type ie_type;