e_bg: make an internal header 34/304934/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Jan 2024 07:49:12 +0000 (16:49 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 26 Jan 2024 00:59:16 +0000 (09:59 +0900)
Move the internal resources and the function declaration
to the internal header.

Change-Id: Ie66fd6112b756bf439b95fd3bfe96709fae2003a

src/bin/Makefile.mk
src/bin/e_bg.c
src/bin/e_bg_intern.h [moved from src/bin/e_bg.h with 88% similarity]
src/bin/e_comp.c
src/bin/e_includes.h
src/bin/e_zone.c

index 52baf14..4a5ffd1 100644 (file)
@@ -27,7 +27,6 @@ src/bin/enlightenment_info
 
 ENLIGHTENMENTHEADERS = \
 src/bin/e_actions.h \
-src/bin/e_bg.h \
 src/bin/e_bindings.h \
 src/bin/e_client.h \
 src/bin/e_comp.h \
index 237f6fd..1a39177 100644 (file)
@@ -1,4 +1,5 @@
 #include "e.h"
+#include "e_bg_intern.h"
 
 /* local subsystem functions */
 static void _e_bg_event_bg_update_free(void *data, void *event);
similarity index 88%
rename from src/bin/e_bg.h
rename to src/bin/e_bg_intern.h
index 5ecc7ff..74da12b 100644 (file)
@@ -1,20 +1,16 @@
-#ifdef E_TYPEDEFS
+#ifndef E_BG_INTERN_H
+#define E_BG_INTERN_H
 
 typedef enum {
    E_BG_TRANSITION_NONE,
-     E_BG_TRANSITION_START,
-     E_BG_TRANSITION_DESK,
-     E_BG_TRANSITION_CHANGE
+   E_BG_TRANSITION_START,
+   E_BG_TRANSITION_DESK,
+   E_BG_TRANSITION_CHANGE
 } E_Bg_Transition;
 
 typedef struct _E_Event_Bg_Update E_Event_Bg_Update;
-
 typedef struct _E_Bg_Image_Import_Handle E_Bg_Image_Import_Handle;
 
-#else
-#ifndef E_BG_H
-#define E_BG_H
-
 extern EINTERN int E_EVENT_BG_UPDATE;
 
 struct _E_Event_Bg_Update
@@ -39,4 +35,3 @@ EINTERN E_Bg_Image_Import_Handle *e_bg_image_import_new(const char *image_file,
 EINTERN void                      e_bg_image_import_cancel(E_Bg_Image_Import_Handle *handle);
 
 #endif
-#endif
index fc8a3f7..16568f5 100644 (file)
@@ -1,4 +1,6 @@
 #include "e.h"
+#include "e_bg_intern.h"
+
 #include <sys/xattr.h>
 #include "services/e_service_quickpanel.h"
 
index 722bd50..cbf43f8 100644 (file)
@@ -27,7 +27,6 @@
 #include "e_prefix.h"
 #include "e_maximize.h"
 #include "e_grabinput.h"
-#include "e_bg.h"
 #include "e_screensaver.h"
 #include "e_dpms.h"
 #include "e_eom.h"
index 3b23486..e729913 100644 (file)
@@ -3,6 +3,7 @@
 #include "e_desk_intern.h"
 #include "e_actions_intern.h"
 #include "e_appinfo_intern.h"
+#include "e_bg_intern.h"
 
 #include <libds-tizen/screen.h>