summaryrefslogtreecommitdiff
path: root/src/bin/e_path.h
blob: 7bf6e2f8792abf14da962771aa7465e2dd2813c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifdef E_TYPEDEFS

typedef struct _E_Path E_Path;
typedef struct _E_Path_Dir E_Path_Dir;

#else
#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);

#endif
#endif