summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2010-02-10 23:19:16 +0000
committerRussell Bryant <russell@russellbryant.com>2010-02-10 23:19:16 +0000
commit1321748c19228e051a8db1dd497f10e1d6e55e20 (patch)
tree0f27a6b8b64113640da26ab50578af9213e8b752 /include
parentf57e5150e51331a97ef3db5da523b0adde5931ae (diff)
Add a test module for the event API, test_event.c.
This module includes a single test so far that creates events using two different methods and does some verification on the result to make sure the correct data can be retrieved from the event that was created. One bug was found in the event API while developing this test, which makes me happy. :-) Review: https://reviewboard.asterisk.org/r/495/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@246260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/event.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asterisk/event.h b/include/asterisk/event.h
index 5ffef1f35..c5805f31a 100644
--- a/include/asterisk/event.h
+++ b/include/asterisk/event.h
@@ -331,6 +331,9 @@ void ast_event_dump_cache(const struct ast_event_sub *event_sub);
* because it makes no sense to do so. So, a payload must also be specified
* after the IE payload type.
*
+ * \note The EID IE will be appended automatically when this function is used
+ * with at least one IE specified.
+ *
* \return This returns the event that has been created. If there is an error
* creating the event, NULL will be returned.
*
@@ -509,6 +512,19 @@ int ast_event_append_ie_raw(struct ast_event **event, enum ast_event_ie_type ie_
const void *data, size_t data_len);
/*!
+ * \brief Append the global EID IE
+ *
+ * \param event the event to append IE to
+ *
+ * \note For ast_event_new() that includes IEs, this is done automatically
+ * for you.
+ *
+ * \retval 0 success
+ * \retval -1 failure
+ */
+int ast_event_append_eid(struct ast_event **event);
+
+/*!
* \brief Get the value of an information element that has an integer payload
*
* \param event The event to get the IE from