summaryrefslogtreecommitdiff
path: root/attrib/gatt.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2011-04-11 15:24:03 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-04-14 20:09:21 +0300
commit612d0207646064f309edd564a69d30b42de9e26f (patch)
tree56d2d1c5660ebc05ace211f79f02f99c82c4ac72 /attrib/gatt.h
parent839adcd63d7e02b814b7ba7b9ad18220ff862760 (diff)
downloadbluez-612d0207646064f309edd564a69d30b42de9e26f.tar.gz
Register primary services exported over basic rate
This patch registers the object paths for primary services exported through SDP. PSM, start and end handle information are available in the Protocol Descriptor List.
Diffstat (limited to 'attrib/gatt.h')
-rw-r--r--attrib/gatt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/attrib/gatt.h b/attrib/gatt.h
index 221d94d06..01c651e8c 100644
--- a/attrib/gatt.h
+++ b/attrib/gatt.h
@@ -21,6 +21,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
+#include <bluetooth/sdp.h>
#define GATT_CID 4
@@ -51,3 +52,7 @@ guint gatt_read_char_by_uuid(GAttrib *attrib, uint16_t start, uint16_t end,
guint gatt_exchange_mtu(GAttrib *attrib, uint16_t mtu, GAttribResultFunc func,
gpointer user_data);
+
+gboolean gatt_parse_record(const sdp_record_t *rec,
+ uuid_t *prim_uuid, uint16_t *psm,
+ uint16_t *start, uint16_t *end);