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:
parent
f6bc86db50
commit
a6b37b072b
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
*/
|
||||
int bt_gatt_unregister_service(struct bt_gatt_service *svc);
|
||||
int bt_gatt_service_unregister(struct bt_gatt_service *svc);
|
||||
|
||||
enum {
|
||||
BT_GATT_ITER_STOP = 0,
|
||||
|
|
|
@ -194,7 +194,7 @@ int bt_gatt_service_register(struct bt_gatt_service *svc)
|
|||
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");
|
||||
|
||||
|
|
|
@ -613,7 +613,7 @@ int cmd_gatt_register_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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue