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.
This commit is contained in:
Cedric Bail 2018-02-22 15:26:28 -08:00
parent b575c41676
commit d57b9a7d14
3 changed files with 23 additions and 18 deletions

View 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
@ -68,6 +70,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
*

View File

@ -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.
*

View File

@ -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