Bluetooth: GATT: Rename bt_gatt_unregister_service

Rename bt_gatt_unregister_service to bt_gatt_service_unregister to be
consistent with other APIs such as bt_gatt_service_register.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2017-06-19 20:00:35 +03:00 committed by Johan Hedberg
commit a6b37b072b
3 changed files with 3 additions and 3 deletions

View file

@ -293,7 +293,7 @@ int bt_gatt_service_register(struct bt_gatt_service *svc);
* *
* @return 0 in case of success or negative value in case of error. * @return 0 in case of success or negative value in case of error.
*/ */
int bt_gatt_unregister_service(struct bt_gatt_service *svc); int bt_gatt_service_unregister(struct bt_gatt_service *svc);
enum { enum {
BT_GATT_ITER_STOP = 0, BT_GATT_ITER_STOP = 0,

View file

@ -194,7 +194,7 @@ int bt_gatt_service_register(struct bt_gatt_service *svc)
return 0; return 0;
} }
int bt_gatt_unregister_service(struct bt_gatt_service *svc) int bt_gatt_service_unregister(struct bt_gatt_service *svc)
{ {
__ASSERT(svc, "invalid parameters\n"); __ASSERT(svc, "invalid parameters\n");

View file

@ -613,7 +613,7 @@ int cmd_gatt_register_test_svc(int argc, char *argv[])
int cmd_gatt_unregister_test_svc(int argc, char *argv[]) int cmd_gatt_unregister_test_svc(int argc, char *argv[])
{ {
bt_gatt_unregister_service(&vnd_svc); bt_gatt_service_unregister(&vnd_svc);
printk("Unregistering test vendor service\n"); printk("Unregistering test vendor service\n");