return 1;
}
-E_API const char *
+EINTERN const char *
e_user_homedir_get(void)
{
return _e_user_homedir;
* @return similar to snprintf(), this returns the number of bytes written or
* that would be required to write if greater or equal than size.
*/
-E_API size_t
+EINTERN size_t
e_user_homedir_concat_len(char *dst, size_t size, const char *path, size_t path_len)
{
return eina_str_join_len(dst, size, '/', _e_user_homedir, _e_user_homedir_len, path, path_len);
}
-E_API size_t
+EINTERN 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));
/**
* same as snprintf("~/"fmt, ...).
*/
-E_API size_t
+EINTERN size_t
e_user_homedir_snprintf(char *dst, size_t size, const char *fmt, ...)
{
size_t off, ret;
/**
* Return ~/.e/e
*/
-E_API const char *
+EINTERN const char *
e_user_dir_get(void)
{
static char dir[PATH_MAX] = "";
* @return similar to snprintf(), this returns the number of bytes written or
* that would be required to write if greater or equal than size.
*/
-E_API size_t
+EINTERN size_t
e_user_dir_concat_len(char *dst, size_t size, const char *path, size_t path_len)
{
if (!_e_user_dir)
return eina_str_join_len(dst, size, '/', _e_user_dir, _e_user_dir_len, path, path_len);
}
-E_API size_t
+EINTERN 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));
/**
* same as snprintf("~/.e/e/"fmt, ...).
*/
-E_API size_t
+EINTERN size_t
e_user_dir_snprintf(char *dst, size_t size, const char *fmt, ...)
{
size_t off, ret;
EINTERN int e_user_init(void);
EINTERN int e_user_shutdown(void);
-E_API const char *e_user_homedir_get(void);
-E_API size_t e_user_homedir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
-E_API size_t e_user_homedir_concat(char *dst, size_t size, const char *path);
-E_API size_t e_user_homedir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
+EINTERN const char *e_user_homedir_get(void);
+EINTERN size_t e_user_homedir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
+EINTERN size_t e_user_homedir_concat(char *dst, size_t size, const char *path);
+EINTERN size_t e_user_homedir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
#define e_user_homedir_concat_static(dst, path) e_user_homedir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
-E_API const char *e_user_dir_get(void);
-E_API size_t e_user_dir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
-E_API size_t e_user_dir_concat(char *dst, size_t size, const char *path);
-E_API size_t e_user_dir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
+EINTERN const char *e_user_dir_get(void);
+EINTERN size_t e_user_dir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
+EINTERN size_t e_user_dir_concat(char *dst, size_t size, const char *path);
+EINTERN size_t e_user_dir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
#define e_user_dir_concat_static(dst, path) e_user_dir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0)