[asterisk-commits] russell: trunk r81356 - /trunk/main/event.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 29 14:41:16 CDT 2007


Author: russell
Date: Wed Aug 29 14:41:16 2007
New Revision: 81356

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81356
Log:
Try to clarify the rules on changing ast_event and ast_event_ie

Modified:
    trunk/main/event.c

Modified: trunk/main/event.c
URL: http://svn.digium.com/view/asterisk/trunk/main/event.c?view=diff&rev=81356&r1=81355&r2=81356
==============================================================================
--- trunk/main/event.c (original)
+++ trunk/main/event.c Wed Aug 29 14:41:16 2007
@@ -38,6 +38,14 @@
 /* Only use one thread for now to ensure ordered delivery */
 #define NUM_EVENT_THREADS 1
 
+/*!
+ * \brief An event information element
+ *
+ * \note The format of this structure is important.  Since these events may
+ *       be sent directly over a network, changing this structure will break
+ *       compatibility with older versions.  However, at this point, this code
+ *       has not made it into a release, so it is still fair game for change.
+ */
 struct ast_event_ie {
 	enum ast_event_ie_type ie_type:16;
 	/*! Total length of the IE payload */
@@ -48,9 +56,13 @@
 /*!
  * \brief An event
  *
- * \note The format of this structure is important, and can not change, since
- *       they may be sent directly over the network.
+ * An ast_event consists of an event header (this structure), and zero or
+ * more information elements defined by ast_event_ie.
  *
+ * \note The format of this structure is important.  Since these events may
+ *       be sent directly over a network, changing this structure will break
+ *       compatibility with older versions.  However, at this point, this code
+ *       has not made it into a release, so it is still fair game for change.
  */
 struct ast_event {
 	/*! Event type */




More information about the asterisk-commits mailing list