From d9b144f436ff1bbf70d71f44a9afb95705c0e270 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Thu, 12 Jun 2025 15:39:24 +0900 Subject: [PATCH] e_main: move the hook structure to internal c file Change-Id: I61b17196e7a774195304a08bc507e2efb2842feb --- src/bin/e_main.c | 8 ++++++++ src/include/e_main.h | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/bin/e_main.c b/src/bin/e_main.c index f14d7bba32..e801c0ccde 100644 --- a/src/bin/e_main.c +++ b/src/bin/e_main.c @@ -53,6 +53,14 @@ static double t0, t1, t2; #endif +struct _E_Main_Hook +{ + EINA_INLIST; + E_Main_Hook_Point hookpoint; + E_Main_Hook_Cb func; + void *data; + unsigned char delete_me : 1; +}; /* * i need to make more use of these when i'm baffled as to when something is * up. other hooks: diff --git a/src/include/e_main.h b/src/include/e_main.h index 1c9bc6c389..cee0cf3883 100644 --- a/src/include/e_main.h +++ b/src/include/e_main.h @@ -21,15 +21,6 @@ typedef enum _E_Main_Hook_Point typedef void (*E_Main_Hook_Cb)(void *data); -struct _E_Main_Hook -{ - EINA_INLIST; - E_Main_Hook_Point hookpoint; - E_Main_Hook_Cb func; - void *data; - unsigned char delete_me : 1; -}; - E_API E_Main_Hook *e_main_hook_add(E_Main_Hook_Point hookpoint, E_Main_Hook_Cb func, const void *data); E_API void e_main_hook_del(E_Main_Hook *ph); -- 2.34.1