Eina tools aims to help application development, providing ways to make it safer, log errors, manage memory more efficiently and more. More...
Modules | |
| Benchmark | |
| These functions allow you to add benchmark framework in a project for timing critical part and detect slow parts of code. | |
| Convert | |
| These functions allow you to convert integer or real numbers to string or conversely. | |
| Counter | |
| This group discusses the functions that allow you to get the time spent in a part of a code. | |
| Copy On Write | |
| These functions provide some helper for a pseudo Copy On Write mechanism. | |
| Cpu | |
| Cpu and architecture related helpers. | |
| Error | |
| This group discusses the functions that provide error management for projects. | |
| File | |
| This group discusses the functions to handle files and directories. | |
| Lazy allocator | |
| Lock | |
| This group provides thread locking and synchronization capabilities. | |
| Log | |
| Full-featured logging system. | |
| Magic | |
| Eina_Magic provides run-time type-checking. | |
| Memory Pool | |
| This group discusses the functions that provide memory pool management. | |
| Module | |
| Eina module provides some helpers over POSIX dlopen(). | |
| Prefix | |
| This group discusses the functions that provide the ability to determine the runtime location of a software package. | |
| Rectangle | |
| These functions provide rectangle management. | |
| Safety Checks | |
| Safety checks are a set of macros to check for parameters or values that should never happen, it is similar in concept to assert(), but will log and return instead of abort() your program. | |
| Schedule | |
| TODO: description. | |
| Simple_XML | |
| Simplistic relaxed SAX-like XML parser. | |
| String | |
| Provide useful functions for C string manipulation. | |
| Thread | |
| Abstracts platform threads, providing an uniform API. | |
Data Structures | |
| struct | _Eina_Xattr |
Typedefs | |
| typedef struct _Eina_Xattr | Eina_Xattr |
Enumerations | |
| enum | Eina_Xattr_Flags { EINA_XATTR_INSERT, EINA_XATTR_REPLACE, EINA_XATTR_CREATED } |
| define extended attribute creation More... | |
Functions | |
| const char * | eina_environment_home_get (void) |
| Return the content of the environment refered by HOME on this system. More... | |
| const char * | eina_environment_tmp_get (void) |
| Return the content of the environment refered as TMPDIR on this system. More... | |
| EAPI Eina_Iterator * | eina_xattr_ls (const char *file) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
| Get an iterator that list all extended attribute of a file. More... | |
| EAPI Eina_Iterator * | eina_xattr_value_ls (const char *file) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
| Get an iterator that list all extended attribute value related to a fd. More... | |
| EAPI Eina_Iterator * | eina_xattr_fd_ls (int fd) EINA_WARN_UNUSED_RESULT |
| Get an iterator that list all extended attribute related to a fd. More... | |
| EAPI Eina_Iterator * | eina_xattr_value_fd_ls (int fd) EINA_WARN_UNUSED_RESULT |
| Get an iterator that list all extended attribute value related to a fd. More... | |
| EAPI Eina_Bool | eina_xattr_copy (const char *src, const char *dst) EINA_ARG_NONNULL(1 |
| Copy the extended attribute from one file to another. More... | |
| EAPI Eina_Bool EAPI Eina_Bool | eina_xattr_fd_copy (int src, int dst) |
| Copy the extended attribute from one file descriptor to another. More... | |
| EAPI void * | eina_xattr_get (const char *file, const char *attribute, ssize_t *size) EINA_ARG_NONNULL(1 |
| Retrieve an extended attribute from a file. More... | |
| EAPI void * | eina_xattr_fd_get (int fd, const char *attribute, ssize_t *size) EINA_ARG_NONNULL(2 |
| Retrieve an extended attribute from a file descriptor. More... | |
| EAPI Eina_Bool | eina_xattr_set (const char *file, const char *attribute, const void *data, ssize_t length, Eina_Xattr_Flags flags) EINA_ARG_NONNULL(1 |
| Set an extended attribute on a file. More... | |
| EAPI Eina_Bool EAPI Eina_Bool | eina_xattr_fd_set (int fd, const char *attribute, const void *data, ssize_t length, Eina_Xattr_Flags flags) EINA_ARG_NONNULL(2 |
| Set an extended attribute on a file descriptor. More... | |
| EAPI Eina_Bool EAPI Eina_Bool EAPI Eina_Bool | eina_xattr_del (const char *file, const char *attribute) EINA_ARG_NONNULL(1 |
| Delete (remove) an extended attribute from a file. More... | |
| EAPI Eina_Bool EAPI Eina_Bool EAPI Eina_Bool EAPI Eina_Bool | eina_xattr_fd_del (int fd, const char *attribute) EINA_ARG_NONNULL(2) |
| Delete (remove) an extended attribute from a file descriptor. More... | |
| EAPI Eina_Bool | eina_xattr_string_set (const char *file, const char *attribute, const char *data, Eina_Xattr_Flags flags) |
| Set a string as a extended attribute properties. More... | |
| EAPI char * | eina_xattr_string_get (const char *file, const char *attribute) |
| Get a string from an extended attribute properties. More... | |
| EAPI Eina_Bool | eina_xattr_double_set (const char *file, const char *attribute, double value, Eina_Xattr_Flags flags) |
| Set a double as a extended attribute properties. More... | |
| EAPI Eina_Bool | eina_xattr_double_get (const char *file, const char *attribute, double *value) |
| Get a double from an extended attribute properties. More... | |
| EAPI Eina_Bool | eina_xattr_int_set (const char *file, const char *attribute, int value, Eina_Xattr_Flags flags) |
| Set an int as a extended attribute properties. More... | |
| EAPI Eina_Bool | eina_xattr_int_get (const char *file, const char *attribute, int *value) |
| Get a int from an extended attribute properties. More... | |
Variables | |
| EAPI void | EINA_WARN_UNUSED_RESULT |
Eina tools aims to help application development, providing ways to make it safer, log errors, manage memory more efficiently and more.
For more information refer to the string example.
| enum Eina_Xattr_Flags |
define extended attribute creation
| const char* eina_environment_home_get | ( | void | ) |
Return the content of the environment refered by HOME on this system.
Referenced by ecore_file_app_exe_get(), efreet_hostname_get(), ethumb_frame_get(), and ethumb_init().
| const char* eina_environment_tmp_get | ( | void | ) |
Return the content of the environment refered as TMPDIR on this system.
Referenced by ecore_evas_pixmap_depth_get(), ecore_thread_main_loop_end(), and eina_file_mkstemp().
| EAPI Eina_Iterator* eina_xattr_ls | ( | const char * | file | ) |
Get an iterator that list all extended attribute of a file.
| file | The filename to retrieve the extended attribute list from. |
The iterator will not allocate any data during the iteration step, so you need to copy them yourself if you need.
References EINA_MAGIC_SET, FUNC_ITERATOR_FREE, FUNC_ITERATOR_GET_CONTAINER, and FUNC_ITERATOR_NEXT.
| EAPI Eina_Iterator* eina_xattr_value_ls | ( | const char * | file | ) |
Get an iterator that list all extended attribute value related to a fd.
| file | The filename to retrieve the extended attribute list from. |
The iterator will not allocate any data during the iteration step, so you need to copy them yourself if you need. The iterator will provide an Eina_Xattr structure.
References EINA_FALSE, EINA_MAGIC_SET, eina_stringshare_add(), EINA_TRUE, EINA_XATTR_CREATED, eina_xattr_del(), eina_xattr_fd_get(), eina_xattr_fd_set(), eina_xattr_get(), EINA_XATTR_INSERT, EINA_XATTR_REPLACE, eina_xattr_set(), FUNC_ITERATOR_FREE, FUNC_ITERATOR_GET_CONTAINER, and FUNC_ITERATOR_NEXT.
| EAPI Eina_Iterator* eina_xattr_fd_ls | ( | int | fd | ) |
Get an iterator that list all extended attribute related to a fd.
| fd | The file descriptor to retrieve the extended attribute list from. |
The iterator will not allocate any data during the iteration step, so you need to copy them yourself if you need.
References EINA_MAGIC_SET, FUNC_ITERATOR_FREE, FUNC_ITERATOR_GET_CONTAINER, and FUNC_ITERATOR_NEXT.
Referenced by eina_file_xattr_get().
| EAPI Eina_Iterator* eina_xattr_value_fd_ls | ( | int | fd | ) |
Get an iterator that list all extended attribute value related to a fd.
| fd | The file descriptor to retrieve the extended attribute list from. |
The iterator will not allocate any data during the iteration step, so you need to copy them yourself if you need. The iterator will provide an Eina_Xattr structure.
References EINA_MAGIC_SET, FUNC_ITERATOR_FREE, FUNC_ITERATOR_GET_CONTAINER, and FUNC_ITERATOR_NEXT.
Referenced by eina_file_xattr_value_get().
Copy the extended attribute from one file to another.
| src | source file to use as input. |
| dst | destination file to use as output. |
Referenced by eina_xattr_int_get().
Copy the extended attribute from one file descriptor to another.
| src | source file descriptor to use as input. |
| dst | destination file descriptor to use as output. |
References EINA_FALSE, and EINA_TRUE.
Referenced by eina_file_map_lines(), and eina_xattr_int_get().
| EAPI void* eina_xattr_get | ( | const char * | file, |
| const char * | attribute, | ||
| ssize_t * | size | ||
| ) |
Retrieve an extended attribute from a file.
| file | The file to retrieve the extended attribute from. |
| attribute | The extended attribute name to retrieve. |
| size | The size of the retrieved extended attribute. |
It will return NULL and *size will be 0 if it fails.
Referenced by eet_data_xattr_cipher_get(), eina_xattr_string_get(), and eina_xattr_value_ls().
| EAPI void* eina_xattr_fd_get | ( | int | fd, |
| const char * | attribute, | ||
| ssize_t * | size | ||
| ) |
Retrieve an extended attribute from a file descriptor.
| fd | The file descriptor to retrieve the extended attribute from. |
| attribute | The extended attribute name to retrieve. |
| size | The size of the retrieved extended attribute. |
It will return NULL and *size will be 0 if it fails.
Referenced by eina_xattr_value_ls().
| EAPI Eina_Bool eina_xattr_set | ( | const char * | file, |
| const char * | attribute, | ||
| const void * | data, | ||
| ssize_t | length, | ||
| Eina_Xattr_Flags | flags | ||
| ) |
Set an extended attribute on a file.
| file | The file to set the extended attribute to. |
| attribute | The attribute to set. |
| data | The data to set. |
| length | The length of the data to set. |
| flags | Define the set policy. |
Referenced by eet_data_xattr_cipher_set(), eina_xattr_string_set(), and eina_xattr_value_ls().
| EAPI Eina_Bool EAPI Eina_Bool eina_xattr_fd_set | ( | int | fd, |
| const char * | attribute, | ||
| const void * | data, | ||
| ssize_t | length, | ||
| Eina_Xattr_Flags | flags | ||
| ) |
Set an extended attribute on a file descriptor.
| fd | The file descriptor to set the extended attribute to. |
| attribute | The attribute to set. |
| data | The data to set. |
| length | The length of the data to set. |
| flags | Define the set policy. |
Referenced by eina_xattr_value_ls().
| EAPI Eina_Bool EAPI Eina_Bool EAPI Eina_Bool eina_xattr_del | ( | const char * | file, |
| const char * | attribute | ||
| ) |
Delete (remove) an extended attribute from a file.
| file | The file to del the extended attribute from. |
| attribute | The attribute to del. |
Referenced by eina_xattr_value_ls().
| EAPI Eina_Bool EAPI Eina_Bool EAPI Eina_Bool EAPI Eina_Bool eina_xattr_fd_del | ( | int | fd, |
| const char * | attribute | ||
| ) |
Delete (remove) an extended attribute from a file descriptor.
| fd | The file descriptor to del the extended attribute from. |
| attribute | The attribute to del. |
References EINA_FALSE.
| EAPI Eina_Bool eina_xattr_string_set | ( | const char * | file, |
| const char * | attribute, | ||
| const char * | data, | ||
| Eina_Xattr_Flags | flags | ||
| ) |
Set a string as a extended attribute properties.
| file | The file to set the string to. |
| attribute | The attribute to set. |
| data | The NULL-terminated string to set. |
| flags | Define the set policy. |
References EINA_FALSE, and eina_xattr_set().
Referenced by eina_xattr_double_set(), and eina_xattr_int_set().
| EAPI char* eina_xattr_string_get | ( | const char * | file, |
| const char * | attribute | ||
| ) |
Get a string from an extended attribute properties.
| file | The file to get the string from. |
| attribute | The attribute to get. |
NULL otherwise.This call check that the string is properly NULL-terminated before returning it.
References eina_xattr_get().
Referenced by eina_xattr_double_get(), and eina_xattr_int_get().
| EAPI Eina_Bool eina_xattr_double_set | ( | const char * | file, |
| const char * | attribute, | ||
| double | value, | ||
| Eina_Xattr_Flags | flags | ||
| ) |
Set a double as a extended attribute properties.
| file | The file to set the double to. |
| attribute | The attribute to set. |
| value | The NULL-terminated double to set. |
| flags | Define the set policy. |
References eina_convert_dtoa(), and eina_xattr_string_set().
Referenced by emotion_object_last_position_save().
Get a double from an extended attribute properties.
| file | The file to get the string from. |
| attribute | The attribute to get. |
| value | Where to put the extracted value |
This call check that the double is correctly set.
References eina_convert_atod(), EINA_FALSE, EINA_TRUE, and eina_xattr_string_get().
Referenced by emotion_object_last_position_load().
| EAPI Eina_Bool eina_xattr_int_set | ( | const char * | file, |
| const char * | attribute, | ||
| int | value, | ||
| Eina_Xattr_Flags | flags | ||
| ) |
Set an int as a extended attribute properties.
| file | The file to set the int to. |
| attribute | The attribute to set. |
| value | The NULL-terminated int to set. |
| flags | Define the set policy. |
References eina_convert_itoa(), and eina_xattr_string_set().
Get a int from an extended attribute properties.
| file | The file to get the string from. |
| attribute | The attribute to get. |
| value | Where to put the extracted value |
This call check that the int is correctly set.
References EINA_FALSE, eina_xattr_copy(), eina_xattr_fd_copy(), and eina_xattr_string_get().