Move all of the definitions and internal signatures to e_foreign_intern.h.
Change-Id: I1164c1cdd97e3e4f9e3040a4aedada30dd8bb41f
+#include "e.h"
#include "e_foreign_intern.h"
-#include "e_foreign_private.h"
#include <uuid.h>
+#include <wtz-foreign-server-protocol.h>
#define WTZ_FOREIGN_VERSION 1
#define WTZ_EXPORTED_SHELL_VERSION 1
#ifndef E_FOREIGN_INTERN_H
#define E_FOREIGN_INTERN_H
+#if 0
#include "e.h"
#include <wayland-server.h>
#include <Eina.h>
+#endif
+
+#ifdef FERR
+# undef FERR
+#endif
+#define FERR(fmt, ec, arg...) ELOGF("FOREIGN <ERR>", fmt, ec, ##arg)
+
+#ifdef FINF
+# undef FINF
+#endif
+#define FINF(fmt, ec, arg...) ELOGF("FOREIGN <INF>", fmt, ec, ##arg)
+
+#ifdef FDBG
+# undef FDBG
+#endif
+#define FDBG(fmt, arg...) DBG("FOREIGN| "fmt, ##arg)
+
+typedef struct _E_Foreign_Handle E_Foreign_Handle;
EINTERN Eina_Bool e_foreign_global_init(struct wl_display *display);
+EINTERN E_Foreign_Handle *e_foreign_handle_create(void);
+EINTERN void e_foreign_handle_destroy(E_Foreign_Handle *handle);
+EINTERN const char *e_foreign_handle_string_get(E_Foreign_Handle *handle);
+
+EINTERN Eina_Bool e_foreign_shell_init(void);
+EINTERN void e_foreign_shell_shutdown(void);
+EINTERN Eina_Bool e_foreign_shell_export(struct wl_resource *exporter, struct wl_resource *resource, struct wl_resource *surface);
+EINTERN Eina_Bool e_foreign_shell_import(struct wl_resource *importer, struct wl_resource *resource, struct wl_resource *surface, const char *handle);
+
#endif
+++ /dev/null
-#ifndef E_FOREIGN_PRIVATE_H
-# define E_FOREIGN_PRIVATE_H
-
-#include "e.h"
-#include <wayland-server.h>
-#include <wtz-foreign-server-protocol.h>
-
-#ifdef FERR
-# undef FERR
-#endif
-#define FERR(fmt, ec, arg...) ELOGF("FOREIGN <ERR>", fmt, ec, ##arg)
-
-#ifdef FINF
-# undef FINF
-#endif
-#define FINF(fmt, ec, arg...) ELOGF("FOREIGN <INF>", fmt, ec, ##arg)
-
-#ifdef FDBG
-# undef FDBG
-#endif
-#define FDBG(fmt, arg...) DBG("FOREIGN| "fmt, ##arg)
-
-typedef struct _E_Foreign_Handle E_Foreign_Handle;
-
-EINTERN E_Foreign_Handle *e_foreign_handle_create(void);
-EINTERN void e_foreign_handle_destroy(E_Foreign_Handle *handle);
-EINTERN const char *e_foreign_handle_string_get(E_Foreign_Handle *handle);
-
-EINTERN Eina_Bool e_foreign_shell_init(void);
-EINTERN void e_foreign_shell_shutdown(void);
-EINTERN Eina_Bool e_foreign_shell_export(struct wl_resource *exporter, struct wl_resource *resource, struct wl_resource *surface);
-EINTERN Eina_Bool e_foreign_shell_import(struct wl_resource *importer, struct wl_resource *resource, struct wl_resource *surface, const char *handle);
-
-#endif
-#include "e_foreign_private.h"
+#include "e.h"
+#include "e_foreign_intern.h"
#include "e_comp_wl_intern.h"
#include "e_comp_wl_subsurface_intern.h"
#include "e_pixmap_intern.h"
+#include <wtz-foreign-server-protocol.h>
+
#define ESINF(obj, fmt, x...) \
FINF("EShell:%p| "fmt, es->ec, obj, ##x)