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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 25 17:11:39 CDT 2009


Author: russell
Date: Wed Mar 25 17:11:35 2009
New Revision: 184344

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184344
Log:
Remove unneeded AST_LIST_ENTRY() and comment on the purpose of ast_event_ref.

Modified:
    trunk/main/event.c

Modified: trunk/main/event.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/event.c?view=diff&rev=184344&r1=184343&r2=184344
==============================================================================
--- trunk/main/event.c (original)
+++ trunk/main/event.c Wed Mar 25 17:11:35 2009
@@ -86,9 +86,18 @@
 	unsigned char payload[0];
 } __attribute__((packed));
 
+
+/*!
+ * \brief A holder for an event
+ *
+ * \details This struct used to have more of a purpose than it does now.
+ * It is used to hold events in the event cache.  It can be completely removed
+ * if one of these two things is done:
+ *  - ast_event gets changed such that it never has to be realloc()d
+ *  - astobj2 is updated so that you can realloc() an astobj2 object
+ */
 struct ast_event_ref {
 	struct ast_event *event;
-	AST_LIST_ENTRY(ast_event_ref) entry;
 };
 
 struct ast_event_ie_val {




More information about the asterisk-commits mailing list