summaryrefslogtreecommitdiff
path: root/lib/sdp.h
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2013-02-15 11:07:45 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-02-18 09:59:35 +0200
commit9e2d91bc75ce093f3a8ff40288c3da0f19fae38d (patch)
tree4ff4ba287480c30158d3343b85f03d1243af6e83 /lib/sdp.h
parent5e72074c9c5b12ce76995050842d51cc2e7c54ad (diff)
downloadbluez-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sdp.h b/lib/sdp.h
index a81e85723..baae15fbe 100644
--- a/lib/sdp.h
+++ b/lib/sdp.h
@@ -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)