diff options
author | José Antonio Santos Cadenas <jcaden@libresoft.es> | 2009-12-14 12:35:16 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-14 12:23:23 -0800 |
commit | 3faf12fdb7f9d7a043ad526e8e8d1788d4956a4b (patch) | |
tree | 7f9a1aba5643aac55c8998094225fe9d1a02512d /lib/sdp_lib.h | |
parent | e6e1b10619925b455d066b715e8f064b12af5de8 (diff) | |
download | bluez-3faf12fdb7f9d7a043ad526e8e8d1788d4956a4b.tar.gz |
Add SDP functions for HDP support
Diffstat (limited to 'lib/sdp_lib.h')
-rw-r--r-- | lib/sdp_lib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sdp_lib.h b/lib/sdp_lib.h index ee39df83a..bebb7453d 100644 --- a/lib/sdp_lib.h +++ b/lib/sdp_lib.h @@ -585,6 +585,20 @@ static inline int sdp_get_icon_url(const sdp_record_t *rec, char *str, int len) return sdp_get_string_attr(rec, SDP_ATTR_ICON_URL, str, len); } +/* + * Set the supported features + * sf should be a list of list with each feature data + * Returns 0 on success -1 on fail + */ +int sdp_set_supp_feat(sdp_record_t *rec, const sdp_list_t *sf); + +/* + * Get the supported features + * seqp is set to a list of list with each feature data + * Returns 0 on success, if an error occurred -1 is returned and errno is set + */ +int sdp_get_supp_feat(const sdp_record_t *rec, sdp_list_t **seqp); + sdp_record_t *sdp_extract_pdu(const uint8_t *pdata, int bufsize, int *scanned); sdp_record_t *sdp_copy_record(sdp_record_t *rec); |