cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d57b9a7d14afdc71f4da8265f7dac49deaf6a8c5

commit d57b9a7d14afdc71f4da8265f7dac49deaf6a8c5
Author: Cedric Bail <ced...@osg.samsung.com>
Date:   Thu Feb 22 15:26:28 2018 -0800

    eina: make eina_vpath_interface_app_set an internal function.
    
    I am wondering if this one shouldn't even be a private one and
    directly used by eina_prefix.
---
 src/lib/eina/eina_internal.h  | 19 +++++++++++++++++++
 src/lib/eina/eina_vpath.h     | 17 -----------------
 src/lib/elementary/elm_main.c |  5 ++++-
 3 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/src/lib/eina/eina_internal.h b/src/lib/eina/eina_internal.h
index 79ec98a7bd..0c5adbb1cd 100644
--- a/src/lib/eina/eina_internal.h
+++ b/src/lib/eina/eina_internal.h
@@ -41,6 +41,8 @@
 # endif
 #endif
 
+#include "eina_prefix.h"
+
 typedef struct _Eina_Vpath_Interface_User Eina_Vpath_Interface_User;
 
 struct _Eina_Vpath_Interface_User
@@ -69,6 +71,23 @@ struct _Eina_Vpath_Interface_User
 EAPI void __eina_promise_cancel_all(void);
 
 /**
+ * Make the app specific paths accessable as virtual path
+ *
+ * This will create :
+ *   - app.dir
+ *   - app.bin
+ *   - app.lib
+ *   - app.data
+ *   - app.locale
+ *   - app.config
+ *   - app.cache
+ *   - app.local
+ *
+ * If you do NOT call this api the virtual paths for app.* will be unset
+ */
+EAPI void eina_vpath_interface_app_set(const char *app_name, Eina_Prefix *p);
+
+/**
  * Create the desktop specific vpaths
  *
  * The virtual paths will be named usr.<field-name-of-struct>
diff --git a/src/lib/eina/eina_vpath.h b/src/lib/eina/eina_vpath.h
index c279018cf1..7927b4ad0b 100644
--- a/src/lib/eina/eina_vpath.h
+++ b/src/lib/eina/eina_vpath.h
@@ -20,23 +20,6 @@
  */
 typedef const char* Eina_Vpath;
 
-/**
- * Make the app specific paths accessable as virtual path
- *
- * This will create :
- *   - app.dir
- *   - app.bin
- *   - app.lib
- *   - app.data
- *   - app.locale
- *   - app.config
- *   - app.cache
- *   - app.local
- *
- * If you do NOT call this api the virtual paths for app.* will be unset
- */
-EAPI void eina_vpath_interface_app_set(const char *app_name, Eina_Prefix *p);
-
 /*
  * Translate a virtual path into a normal path.
  *
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 007e886c7f..646b2ee474 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -17,8 +17,11 @@
 #include <Emotion.h>
 
 #include <Elementary.h>
-#include "elm_priv.h"
+
+#include "eina_internal.h"
 #include "ecore_internal.h"
+
+#include "elm_priv.h"
 #include "elm_interface_scrollable.h"
 
 //we need those for legacy compatible code

-- 


Reply via email to