diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2013-02-15 11:07:45 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-02-18 09:59:35 +0200 |
commit | 9e2d91bc75ce093f3a8ff40288c3da0f19fae38d (patch) | |
tree | 4ff4ba287480c30158d3343b85f03d1243af6e83 /lib/sdp.h | |
parent | 5e72074c9c5b12ce76995050842d51cc2e7c54ad (diff) | |
download | bluez-9e2d91bc75ce093f3a8ff40288c3da0f19fae38d.tar.gz |
lib: Add SDP_IS_ALT() macro
This macro will simplify internal SDP library code, and is similar to
the existing SDP_IS_SEQ() macro.
Diffstat (limited to 'lib/sdp.h')
-rw-r--r-- | lib/sdp.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -440,6 +440,7 @@ typedef struct { #define SDP_IS_UUID(x) ((x) == SDP_UUID16 || (x) == SDP_UUID32 || \ (x) == SDP_UUID128) +#define SDP_IS_ALT(x) ((x) == SDP_ALT8 || (x) == SDP_ALT16 || (x) == SDP_ALT32) #define SDP_IS_SEQ(x) ((x) == SDP_SEQ8 || (x) == SDP_SEQ16 || (x) == SDP_SEQ32) #define SDP_IS_TEXT_STR(x) ((x) == SDP_TEXT_STR8 || (x) == SDP_TEXT_STR16 || \ (x) == SDP_TEXT_STR32) |