2005-02-07 05:51:09 -08:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
2005-01-12 08:03:09 -08:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
#else
|
2004-11-24 19:37:45 -08:00
|
|
|
#ifndef E_USER_H
|
|
|
|
#define E_USER_H
|
|
|
|
|
2009-04-13 07:56:38 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
|
2006-09-22 12:55:11 -07:00
|
|
|
EAPI const char *e_user_homedir_get(void);
|
2009-04-13 07:56:38 -07:00
|
|
|
EAPI size_t e_user_homedir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
|
|
|
|
EAPI size_t e_user_homedir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
|
|
|
|
|
|
|
|
static inline size_t e_user_homedir_concat(char *dst, size_t size, const char *path)
|
|
|
|
{
|
|
|
|
return e_user_homedir_concat_len(dst, size, path, strlen(path));
|
|
|
|
}
|
|
|
|
#define e_user_homedir_concat_static(dst, path) e_user_homedir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
|
|
|
|
|
|
|
|
EAPI const char *e_user_dir_get(void);
|
|
|
|
EAPI size_t e_user_dir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
|
|
|
|
EAPI size_t e_user_dir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
|
|
|
|
|
|
|
|
static inline size_t e_user_dir_concat(char *dst, size_t size, const char *path)
|
|
|
|
{
|
|
|
|
return e_user_dir_concat_len(dst, size, path, strlen(path));
|
|
|
|
}
|
|
|
|
#define e_user_dir_concat_static(dst, path) e_user_dir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
|
|
|
|
|
2007-04-12 17:49:24 -07:00
|
|
|
EAPI const char *e_user_desktop_dir_get(void);
|
|
|
|
EAPI const char *e_user_icon_dir_get(void);
|
2004-11-24 19:37:45 -08:00
|
|
|
|
|
|
|
#endif
|
2005-01-12 08:03:09 -08:00
|
|
|
#endif
|