summaryrefslogtreecommitdiff
path: root/attrib/client.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-07-22 18:59:46 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-08-09 18:06:45 -0400
commitd2657982a8a7f4caace5b6bd8d701c5c8f8ba644 (patch)
tree85cd4f8f6497aabba29002710bfe43c158fccba6 /attrib/client.c
parente79eff7995c0701f720e4fdc185e235aadfb65f7 (diff)
downloadbluez-d2657982a8a7f4caace5b6bd8d701c5c8f8ba644.tar.gz
Move gatt_discover_primary to gatt.c
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/attrib/client.c b/attrib/client.c
index e80bfc2d7..23c803936 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -39,6 +39,7 @@
#include "att.h"
#include "gattrib.h"
+#include "gatt.h"
#include "client.h"
#define CHAR_INTERFACE "org.bluez.Characteristic"
@@ -137,23 +138,6 @@ static GDBusMethodTable char_methods[] = {
{ }
};
-static guint gatt_discover_primary(GAttrib *attrib, uint16_t start,
- uint16_t end, GAttribResultFunc func, gpointer user_data)
-{
- uint8_t pdu[ATT_MTU];
- uuid_t uuid;
- guint16 plen;
-
- sdp_uuid16_create(&uuid, GATT_PRIM_SVC_UUID);
-
- plen = enc_read_by_grp_req(start, end, &uuid, pdu, sizeof(pdu));
- if (plen == 0)
- return 0;
-
- return g_attrib_send(attrib, ATT_OP_READ_BY_GROUP_REQ,
- pdu, plen, func, user_data, NULL);
-}
-
static guint gatt_discover_char(GAttrib *attrib, uint16_t start, uint16_t end,
GAttribResultFunc func, gpointer user_data)
{