e_keyrouter_wl: move grab request structures 34/321734/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 26 Mar 2025 23:50:50 +0000 (08:50 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 27 Mar 2025 10:03:35 +0000 (19:03 +0900)
move E_Keyrouter_Grab_Request and E_Keyrouter_Ungrab_Request
from e_keyrouter_intern.h to e_keyrouter_wl.c

Change-Id: Ia23e5aab0a4e0ef6951e6e0790352ba10c674943

src/bin/inputmgr/e_keyrouter_intern.h
src/bin/server/e_keyrouter_wl.c

index 222b8d3cadc34e286ef9d36a895f4489aedd615a..640fa6131f48f6bcc6349d1cda5c7c9626350f44 100644 (file)
@@ -25,9 +25,6 @@ typedef unsigned long Time;
 typedef struct _E_Keyrouter  E_Keyrouter;
 typedef struct _E_Keyrouter* E_KeyrouterPtr;
 
-typedef struct _E_Keyrouter_Grab_Request   E_Keyrouter_Grab_Request;
-typedef struct _E_Keyrouter_Ungrab_Request E_Keyrouter_Ungrab_Request;
-
 typedef struct _E_Keyrouter_Registered_Window_Info E_Keyrouter_Registered_Window_Info;
 
 typedef enum {
@@ -62,17 +59,6 @@ struct _E_Keyrouter
    GRecMutex grab_key_mutex;
 };
 
-struct _E_Keyrouter_Grab_Request {
-   int key;
-   int mode;
-   int err;
-};
-
-struct _E_Keyrouter_Ungrab_Request {
-   int key;
-   int err;
-};
-
 struct _E_Keyrouter_Intercept_Hook
 {
    EINA_INLIST;
index 3bf957eecb7e0d14f637089419303123cb249f82..269becb94df5550b00a7326b18bbe1961ee2ca5e 100644 (file)
@@ -16,7 +16,8 @@
 
 #include <tizen-extension-server-protocol.h>
 
-static E_Tizen_Keyrouter *g_tizen_keyrouter = NULL;
+typedef struct _E_Keyrouter_Grab_Request   E_Keyrouter_Grab_Request;
+typedef struct _E_Keyrouter_Ungrab_Request E_Keyrouter_Ungrab_Request;
 
 struct _E_Tizen_Keyrouter
 {
@@ -30,6 +31,19 @@ struct _E_Tizen_Keyrouter
    GRecMutex resource_list_mutex;
 };
 
+struct _E_Keyrouter_Grab_Request {
+   int key;
+   int mode;
+   int err;
+};
+
+struct _E_Keyrouter_Ungrab_Request {
+   int key;
+   int err;
+};
+
+static E_Tizen_Keyrouter *g_tizen_keyrouter = NULL;
+
 EINTERN void
 e_keyrouter_wl_event_surface_send(struct wl_resource *surface, int key, int mode)
 {