Tizen 2.1 release
[platform/core/uifw/e17.git] / src / bin / e_prefix.h
1 #ifdef E_TYPEDEFS
2
3 #else
4 #ifndef E_PREFIX_H
5 #define E_PREFIX_H
6
7 EAPI int         e_prefix_determine(char *argv0);
8 EINTERN void     e_prefix_shutdown(void);
9 EAPI void        e_prefix_fallback(void);
10 EAPI const char *e_prefix_get(void);
11 EAPI const char *e_prefix_locale_get(void);
12 EAPI const char *e_prefix_bin_get(void);
13 EAPI const char *e_prefix_data_get(void);
14 EAPI const char *e_prefix_lib_get(void);
15
16 EAPI size_t      e_prefix_data_concat_len(char *dst, size_t size, const char *path, size_t path_len);
17 EAPI size_t      e_prefix_data_concat(char *dst, size_t size, const char *path);
18 EAPI size_t      e_prefix_data_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
19
20 #define e_prefix_data_concat_static(dst, path) e_prefix_data_concat_len(dst, sizeof(dst), path,  (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
21
22
23 #endif
24 #endif