[asterisk-commits] rmudgett: branch 1.8 r321813 - in /branches/1.8: include/asterisk/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 3 14:56:13 CDT 2011


Author: rmudgett
Date: Fri Jun  3 14:56:09 2011
New Revision: 321813

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321813
Log:
Constify subscription description parameter string.

Modified:
    branches/1.8/include/asterisk/event.h
    branches/1.8/main/event.c

Modified: branches/1.8/include/asterisk/event.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/include/asterisk/event.h?view=diff&rev=321813&r1=321812&r2=321813
==============================================================================
--- branches/1.8/include/asterisk/event.h (original)
+++ branches/1.8/include/asterisk/event.h Fri Jun  3 14:56:09 2011
@@ -114,7 +114,7 @@
  * \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 @@
  * 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);
 

Modified: branches/1.8/main/event.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/event.c?view=diff&rev=321813&r1=321812&r2=321813
==============================================================================
--- branches/1.8/main/event.c (original)
+++ branches/1.8/main/event.c Fri Jun  3 14:56:09 2011
@@ -840,7 +840,7 @@
 }
 
 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;




More information about the asterisk-commits mailing list