eina: make eina_vpath_interface_user_set an internal API.

This commit is contained in:
Cedric Bail 2018-02-22 14:57:36 -08:00
parent 16f604f469
commit b575c41676
4 changed files with 30 additions and 26 deletions

View File

@ -10,6 +10,8 @@
#include <Ecore.h>
#include <Ecore_File.h>
#include "eina_internal.h"
/* define macros and variable for using the eina logging system */
#define EFREET_MODULE_LOG_DOM /* no logging in this file */

View File

@ -41,6 +41,24 @@
# endif
#endif
typedef struct _Eina_Vpath_Interface_User Eina_Vpath_Interface_User;
struct _Eina_Vpath_Interface_User
{
const char *desktop;
const char *documents;
const char *downloads;
const char *music;
const char *pictures;
const char *pub;
const char *templates;
const char *videos;
const char *data;
const char *config;
const char *cache;
const char *run;
};
/**
* @brief Cancels all pending promise/futures.
*
@ -50,6 +68,15 @@
*/
EAPI void __eina_promise_cancel_all(void);
/**
* Create the desktop specific vpaths
*
* The virtual paths will be named usr.<field-name-of-struct>
*
* If you do NOT call this api the virtual paths for usr.* will be unset.
*/
EAPI void eina_vpath_interface_user_set(Eina_Vpath_Interface_User *user);
#undef EAPI
#define EAPI

View File

@ -1,5 +1,6 @@
#include <Eina.h>
#include "eina_internal.h"
#include "eina_private.h"
static Eina_Hash *vpath_data = NULL;

View File

@ -20,23 +20,6 @@
*/
typedef const char* Eina_Vpath;
typedef struct
{
const char *desktop;
const char *documents;
const char *downloads;
const char *music;
const char *pictures;
const char *pub;
const char *templates;
const char *videos;
const char *data;
const char *config;
const char *cache;
const char *run;
} Eina_Vpath_Interface_User;
/**
* Make the app specific paths accessable as virtual path
*
@ -54,15 +37,6 @@ typedef struct
*/
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>
*
* If you do NOT call this api the virtual paths for usr.* will be unset.
*/
EAPI void eina_vpath_interface_user_set(Eina_Vpath_Interface_User *user);
/*
* Translate a virtual path into a normal path.
*