diff options
author | Santiago Carot-Nemesio <sancane@gmail.com> | 2012-01-25 14:12:36 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-03 10:44:48 -0800 |
commit | d16b0ead3984c599dd18fc5eb5088e576341cf6d (patch) | |
tree | 47bce22c7fd8e97b108b7798429a6a9386015f80 /src | |
parent | 6cc32c84934233bf694727df5202c7b2803cdb2e (diff) | |
download | bluez-d16b0ead3984c599dd18fc5eb5088e576341cf6d.tar.gz |
gatt-service: Provide service uuid in attrib_db_find_avail function
We need to provide the service uuid because of GATT server should group
16-bit uuid services together and 128-bit uuid services together,
(Bluetooth 4.0, Vol 3, Part G, 3.1).
Diffstat (limited to 'src')
-rw-r--r-- | src/attrib-server.c | 3 | ||||
-rw-r--r-- | src/attrib-server.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/attrib-server.c b/src/attrib-server.c index d91a31ea2..5347c423b 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -1270,7 +1270,8 @@ void attrib_free_sdp(uint32_t sdp_handle) remove_record_from_server(sdp_handle); } -uint16_t attrib_db_find_avail(struct btd_adapter *adapter, uint16_t nitems) +uint16_t attrib_db_find_avail(struct btd_adapter *adapter, bt_uuid_t *svc_uuid, + uint16_t nitems) { struct gatt_server *server; uint16_t handle; diff --git a/src/attrib-server.h b/src/attrib-server.h index 2c6f42804..fb4637ca8 100644 --- a/src/attrib-server.h +++ b/src/attrib-server.h @@ -22,7 +22,8 @@ * */ -uint16_t attrib_db_find_avail(struct btd_adapter *adapter, uint16_t nitems); +uint16_t attrib_db_find_avail(struct btd_adapter *adapter, bt_uuid_t *svc_uuid, + uint16_t nitems); struct attribute *attrib_db_add(struct btd_adapter *adapter, uint16_t handle, bt_uuid_t *uuid, int read_reqs, int write_reqs, const uint8_t *value, int len); |