Add 'bitflags'-style information elements to event framework
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 3 May 2009 14:28:59 +0000 (14:28 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 3 May 2009 14:28:59 +0000 (14:28 +0000)
commit73743b77b0644be36f8712d0a94289de0263aaf8
tree08c6ed6c14fc54caf70ece336f9f0ab9cc2f272a
parent7b24f998084f8f2545815b36fcf521eb50107308
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
include/asterisk/event.h
include/asterisk/event_defs.h
main/event.c