seat: Rename ds_seat_keyboard_destroy_grab properly 05/279805/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 11 Aug 2022 00:45:03 +0000 (09:45 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 18 Aug 2022 06:21:22 +0000 (06:21 +0000)
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
src/seat/seat_keyboard.c

index 8c3d6ce..d618ff5 100644 (file)
@@ -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);
 
index 867a60f..85cf672 100644 (file)
@@ -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);
 }