summaryrefslogtreecommitdiff
path: root/profiles/gap
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-09-12 15:12:42 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-09-12 16:30:35 +0300
commitd8fe3b06a305b1dce45d60f704de982fd93011e9 (patch)
tree049d495aac02a8e61608eab0b37216f9af1887a8 /profiles/gap
parentc13720e48caa3a3cd8931afde3f59fad57e2f598 (diff)
downloadbluez-d8fe3b06a305b1dce45d60f704de982fd93011e9.tar.gz
gap: Use shorter names for profile callback
Diffstat (limited to 'profiles/gap')
-rw-r--r--profiles/gap/gas.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c
index 2077ed955..47c8c257b 100644
--- a/profiles/gap/gas.c
+++ b/profiles/gap/gas.c
@@ -195,7 +195,7 @@ static void handle_gap_service(struct gas *gas)
gatt_db_service_foreach_char(gas->attr, handle_characteristic, gas);
}
-static int gap_driver_probe(struct btd_service *service)
+static int gap_probe(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
struct gas *gas = btd_service_get_user_data(service);
@@ -220,7 +220,7 @@ static int gap_driver_probe(struct btd_service *service)
return 0;
}
-static void gap_driver_remove(struct btd_service *service)
+static void gap_remove(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
struct gas *gas;
@@ -260,7 +260,7 @@ static void gas_reset(struct gas *gas)
gas->client = NULL;
}
-static int gap_driver_accept(struct btd_service *service)
+static int gap_accept(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
struct gatt_db *db = btd_device_get_gatt_db(device);
@@ -309,9 +309,9 @@ static int gap_disconnect(struct btd_service *service)
static struct btd_profile gap_profile = {
.name = "gap-profile",
.remote_uuid = GAP_UUID,
- .device_probe = gap_driver_probe,
- .device_remove = gap_driver_remove,
- .accept = gap_driver_accept,
+ .device_probe = gap_probe,
+ .device_remove = gap_remove,
+ .accept = gap_accept,
.disconnect = gap_disconnect,
};