aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-25 22:13:36 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-25 22:13:36 +0000
commitf20891ac5bac3ec16f67e0d4455a20eb0e967de9 (patch)
tree8d611b7329a171a5621f522ae45e2babc74c7cb0 /main
parent7b1e6ccc4e5c0cd147273a0d29afec2fe146fd4f (diff)
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. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@184345 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/event.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/event.c b/main/event.c
index e29f057e3..11f022f90 100644
--- a/main/event.c
+++ b/main/event.c
@@ -86,9 +86,18 @@ struct ast_event {
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 {