[asterisk-commits] russell: branch 1.6.2 r184346 - in /branches/1.6.2: ./ main/event.c

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


Author: russell
Date: Wed Mar 25 17:15:04 2009
New Revision: 184346

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184346
Log:
Merged revisions 184344 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r184344 | russell | 2009-03-25 17:11:35 -0500 (Wed, 25 Mar 2009) | 2 lines

Remove unneeded AST_LIST_ENTRY() and comment on the purpose of ast_event_ref.

........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/event.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
--- trunk-merged (original)
+++ trunk-merged Wed Mar 25 17:15:04 2009
@@ -1,1 +1,1 @@
-/trunk:1-182359,182408,182450,182525,182530,182553,182722,182847,183028,183057,183108,183117,183242,183244,183321,183511,183560,183652,183701,183766,183865,183914,184037,184043,184079,184147,184151,184219-184220,184280,184339
+/trunk:1-182359,182408,182450,182525,182530,182553,182722,182847,183028,183057,183108,183117,183242,183244,183321,183511,183560,183652,183701,183766,183865,183914,184037,184043,184079,184147,184151,184219-184220,184280,184339,184344

Modified: branches/1.6.2/main/event.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/main/event.c?view=diff&rev=184346&r1=184345&r2=184346
==============================================================================
--- branches/1.6.2/main/event.c (original)
+++ branches/1.6.2/main/event.c Wed Mar 25 17:15:04 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