From ae1a09c942f1fe33d69648b35ba5c29be0fbbd55 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Thu, 11 Aug 2022 09:45:03 +0900 Subject: [PATCH] seat: Rename ds_seat_keyboard_destroy_grab properly This renames ds_seat_keyboard_destroy_grab to ds_seat_keyboard_grab_destroy The function takes ds_seat_keyboard_grab as a first argument, and we use, by convention, name of object at the beginning of function name. Change-Id: Ifaf19e319025644dfcee4a8f88bcfb3d0816aba0 --- include/libds/seat.h | 2 +- src/seat/seat_keyboard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libds/seat.h b/include/libds/seat.h index 8c3d6ce..d618ff5 100644 --- a/include/libds/seat.h +++ b/include/libds/seat.h @@ -162,7 +162,7 @@ void ds_seat_keyboard_notify_key(struct ds_seat *seat, uint32_t time_msec, struct ds_seat_keyboard_grab *ds_seat_create_keyboard_grab(struct ds_seat *seat, const struct ds_keyboard_grab_interface *iface, void *data); -void ds_seat_keyboard_destroy_grab(struct ds_seat_keyboard_grab *grab); +void ds_seat_keyboard_grab_destroy(struct ds_seat_keyboard_grab *grab); void *ds_seat_keyboard_grab_get_data(struct ds_seat_keyboard_grab *grab); diff --git a/src/seat/seat_keyboard.c b/src/seat/seat_keyboard.c index 867a60f..85cf672 100644 --- a/src/seat/seat_keyboard.c +++ b/src/seat/seat_keyboard.c @@ -158,7 +158,7 @@ ds_seat_create_keyboard_grab(struct ds_seat *seat, } WL_EXPORT void -ds_seat_keyboard_destroy_grab(struct ds_seat_keyboard_grab *grab) +ds_seat_keyboard_grab_destroy(struct ds_seat_keyboard_grab *grab) { free(grab); } -- 2.7.4