[svn-commits] russell: branch russell/events r59141 - /team/russell/events/include/asterisk/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Mar 21 22:39:49 MST 2007


Author: russell
Date: Thu Mar 22 00:39:48 2007
New Revision: 59141

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59141
Log:
Reserve an ID for a "custom" event type.

Modified:
    team/russell/events/include/asterisk/event_defs.h

Modified: team/russell/events/include/asterisk/event_defs.h
URL: http://svn.digium.com/view/asterisk/team/russell/events/include/asterisk/event_defs.h?view=diff&rev=59141&r1=59140&r2=59141
==============================================================================
--- team/russell/events/include/asterisk/event_defs.h (original)
+++ team/russell/events/include/asterisk/event_defs.h Thu Mar 22 00:39:48 2007
@@ -30,11 +30,16 @@
 enum ast_event_type {
 	/*! Reserved to provide the ability to subscribe to all events.  A specific
 	    event should never have a payload of 0. */
-	AST_EVENT_ALL   = 0x00,
+	AST_EVENT_ALL    = 0x00,
+	/*! This event type is reserved for use by third-party modules to create
+	    custom events without having to modify this file. 
+	    \note There are no "custom" IE types, because IEs only have to be
+	    unique to the event itself, not necessarily across all events. */
+	AST_EVENT_CUSTOM = 0x01,
 	/*! Voicemail message waiting indication */
-	AST_EVENT_MWI   = 0x01,
+	AST_EVENT_MWI    = 0x02,
 	/*! Number of event types.  This should be the last event type + 1 */
-	AST_EVENT_TOTAL = 0x02,
+	AST_EVENT_TOTAL  = 0x03,
 };
 
 /*! \brief Event Information Element types */



More information about the svn-commits mailing list