Functions |
Eina_Iterator * | eina_xattr_ls (const char *file) |
| Gets an iterator that lists all the extended attributes of a file.
|
Eina_Iterator * | eina_xattr_value_ls (const char *file) |
| Gets an iterator that lists all the extended attribute values related to a file.
|
Eina_Iterator * | eina_xattr_fd_ls (int fd) |
| Gets an iterator that lists all extended attribute related to a file.
|
Eina_Iterator * | eina_xattr_value_fd_ls (int fd) |
| Gets an iterator that lists all extended attribute value related to a file.
|
void * | eina_xattr_get (const char *file, const char *attribute, ssize_t *size) |
| Gets an extended attribute from a file.
|
Eina_Bool | eina_xattr_set (const char *file, const char *attribute, const void *data, ssize_t length, Eina_Xattr_Flags flags) |
| Sets an extended attribute to a file.
|
Eina_Bool | eina_xattr_string_set (const char *file, const char *attribute, const char *data, Eina_Xattr_Flags flags) |
| Sets a string as an extended attribute property.
|
char * | eina_xattr_string_get (const char *file, const char *attribute) |
| Gets a string from an extended attribute property.
|
Eina_Bool | eina_xattr_double_set (const char *file, const char *attribute, double value, Eina_Xattr_Flags flags) |
| Sets a double as an extended attribute property.
|
Eina_Bool | eina_xattr_double_get (const char *file, const char *attribute, double *value) |
| Gets a double from an extended attribute property.
|
Eina_Bool | eina_xattr_int_set (const char *file, const char *attribute, int value, Eina_Xattr_Flags flags) |
| Sets an integer as a extended attribute property.
|
Eina_Bool | eina_xattr_int_get (const char *file, const char *attribute, int *value) |
| Gets a integer from an extended attribute property.
|
Eina tools aims to help application development, providing ways to make it safer, log errors, manage memory more efficiently and more.
Enumeration Type Documentation
Enumeration of extended attribute creation.
- Since (EFL) :
- 1.1
- Enumerator:
EINA_XATTR_INSERT |
This is the default behaviour, it either creates or replaces the extended attribute
|
EINA_XATTR_REPLACE |
This only succeeds if the extended attribute previously existed
|
EINA_XATTR_CREATED |
This only succeeds if the extended attribute isn't previously set
|
Function Documentation
Gets a double from an extended attribute property.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to get the string from |
[in] | attribute | The attribute to get |
[out] | value | The extracted value |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
Sets a double as an extended attribute property.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to set the double to |
[in] | attribute | The attribute to set |
[in] | value | The NULL-terminated double to set |
[in] | flags | The flag that defines the set policy |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
Gets an iterator that lists all extended attribute related to a file.
- Since (EFL) :
- 1.2
- Since :
- 2.3.1
- Parameters:
-
[in] | fd | The file descriptor to retrieve the extended attribute list from |
- Returns:
- An iterator
void* eina_xattr_get |
( |
const char * |
file, |
|
|
const char * |
attribute, |
|
|
ssize_t * |
size |
|
) |
| |
Gets an extended attribute from a file.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to retrieve the extended attribute from |
[in] | attribute | The extended attribute name to retrieve |
[out] | size | The size of the retrieved extended attribute |
- Returns:
- The allocated data that hold the extended attribute value
Gets a integer from an extended attribute property.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to get the string from |
[in] | attribute | The attribute to get |
[out] | value | The extracted value |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
Sets an integer as a extended attribute property.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to set the integer to |
[in] | attribute | The attribute to set |
[in] | value | The NULL-terminated integer to set |
[in] | flags | The flag that defines the set policy |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
Gets an iterator that lists all the extended attributes of a file.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file name to retrieve the extended attribute list from |
- Returns:
- An iterator
Sets an extended attribute to a file.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to set the extended attribute to |
[in] | attribute | The attribute to set |
[in] | data | The data to set |
[in] | length | The length of the data to set |
[in] | flags | The flag that defines the set policy |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
Gets a string from an extended attribute property.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to get the string from |
[in] | attribute | The attribute to get |
- Returns:
- A valid string on success, otherwise
NULL
Sets a string as an extended attribute property.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file to set the string to |
[in] | attribute | The attribute to set |
[in] | data | The NULL-terminated string to set |
[in] | flags | The flag that defines the set policy |
- Returns:
EINA_TRUE
on success, otherwise EINA_FALSE
Gets an iterator that lists all extended attribute value related to a file.
- Since (EFL) :
- 1.2
- Since :
- 2.3.1
- Parameters:
-
[in] | fd | The file descriptor to retrieve the extended attribute list from |
- Returns:
- An iterator
Gets an iterator that lists all the extended attribute values related to a file.
- Since (EFL) :
- 1.2
- Since :
- 2.3.1
- Parameters:
-
[in] | file | The file name to retrieve the extended attribute list from |
- Returns:
- An iterator