You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

typedef struct _E_Path E_Path;
typedef struct _E_Path_Dir E_Path_Dir;
#ifndef E_PATH_H
#define E_PATH_H
#define E_PATH_TYPE 0xE0b0100c
struct _E_Path_Dir
const char *dir;
struct _E_Path
E_Object e_obj_inherit;
Eina_Hash *hash;
Eina_List *default_dir_list;
/* keep track of the associated e_config path */
Eina_List **user_dir_list;
/* init and setup */
E_API E_Path *e_path_new(void);
E_API void e_path_user_path_set(E_Path *ep, Eina_List **user_dir_list);
E_API void e_path_inherit_path_set(E_Path *ep, E_Path *path_inherit);
/* append a hardcoded path */
E_API void e_path_default_path_append(E_Path *ep, const char *path);
/* e_config path manipulation */
E_API void e_path_user_path_append(E_Path *ep, const char *path);
E_API void e_path_user_path_prepend(E_Path *ep, const char *path);
E_API void e_path_user_path_remove(E_Path *ep, const char *path);
E_API void e_path_user_path_clear(E_Path *ep);
E_API Eina_Stringshare *e_path_find(E_Path *ep, const char *file);
E_API void e_path_evas_append(E_Path *ep, Evas *evas);
E_API Eina_List *e_path_dir_list_get(E_Path *ep);
E_API void e_path_dir_list_free(Eina_List *dir_list);