eina: make eina_vpath_interface_app_set an internal function.
authorCedric Bail <cedric@osg.samsung.com>
Thu, 22 Feb 2018 23:26:28 +0000 (15:26 -0800)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 11:10:37 +0000 (20:10 +0900)
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
src/lib/eina/eina_vpath.h
src/lib/elementary/elm_main.c

index 79ec98a..0c5adbb 100644 (file)
@@ -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>
index c279018..7927b4a 100644 (file)
  */
 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.
  *
index b0fe82c..3f6a76e 100644 (file)
 #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