mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 06:12:45 +00:00
Add 'bitflags'-style information elements to event framework
This patch add a new payload type for information elements, a set of bit flags. The payload is transported as a 32-bit unsigned integer but when matching is performed between events and subscribers, the matching is done by using a bitwise AND instead of numeric value comparison. Review: http://reviewboard.asterisk.org/r/242/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -137,6 +137,8 @@ enum ast_event_ie_pltype {
|
||||
AST_EVENT_IE_PLTYPE_STR,
|
||||
/*! Raw data, compared with memcmp */
|
||||
AST_EVENT_IE_PLTYPE_RAW,
|
||||
/*! Bit flags (unsigned integer, compared using boolean logic) */
|
||||
AST_EVENT_IE_PLTYPE_BITFLAGS,
|
||||
};
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user