1 #ifdef E_TYPEDEFS 2 #else 3 #ifndef E_USER_H 4 #define E_USER_H 5 6 E_API const char *e_user_homedir_get(void); 7 E_API size_t e_user_homedir_concat_len(char *dst, size_t size, const char *path, size_t path_len); 8 E_API size_t e_user_homedir_concat(char *dst, size_t size, const char *path); 9 E_API size_t e_user_homedir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4); 10 11 #define e_user_homedir_concat_static(dst, path) e_user_homedir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0) 12 13 E_API const char *e_user_dir_get(void); 14 E_API size_t e_user_dir_concat_len(char *dst, size_t size, const char *path, size_t path_len); 15 E_API size_t e_user_dir_concat(char *dst, size_t size, const char *path); 16 E_API size_t e_user_dir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4); 17 18 #define e_user_dir_concat_static(dst, path) e_user_dir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0) 19 20 E_API const char *e_user_desktop_dir_get(void); 21 E_API const char *e_user_icon_dir_get(void); 22 23 #endif 24 #endif 25