diff options
Diffstat (limited to 'tests/suite/ecore/src/include/eina_file.h')
-rw-r--r-- | tests/suite/ecore/src/include/eina_file.h | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/tests/suite/ecore/src/include/eina_file.h b/tests/suite/ecore/src/include/eina_file.h index 4c3740ffa0..40fb4c4adf 100644 --- a/tests/suite/ecore/src/include/eina_file.h +++ b/tests/suite/ecore/src/include/eina_file.h @@ -48,19 +48,24 @@ typedef struct _Eina_File_Direct_Info Eina_File_Direct_Info; * Type for a callback to be called when iterating over the files of a * directory. */ -typedef void (*Eina_File_Dir_List_Cb)(const char *name, const char *path, void *data); +typedef void (*Eina_File_Dir_List_Cb) (const char *name, const char *path, + void *data); /** * @struct _Eina_File_Direct_Info * A structure to store informations of a path. */ -struct _Eina_File_Direct_Info -{ - size_t path_length; /**< size of the whole path */ - size_t name_length; /**< size of the filename/basename component */ - size_t name_start; /**< where the filename/basename component starts */ - char path[PATH_MAX]; /**< the path */ - const struct dirent *dirent; /**< the dirent structure of the path */ +struct _Eina_File_Direct_Info { + size_t path_length; + /**< size of the whole path */ + size_t name_length; + /**< size of the filename/basename component */ + size_t name_start; + /**< where the filename/basename component starts */ + char path[PATH_MAX]; + /**< the path */ + const struct dirent *dirent; + /**< the dirent structure of the path */ }; /** @@ -73,13 +78,16 @@ struct _Eina_File_Direct_Info */ #define EINA_FILE_DIR_LIST_CB(function) ((Eina_File_Dir_List_Cb)function) -EAPI Eina_Bool eina_file_dir_list(const char *dir, - Eina_Bool recursive, - Eina_File_Dir_List_Cb cb, - void *data) EINA_ARG_NONNULL(1, 3); -EAPI Eina_Array * eina_file_split(char *path) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; -EAPI Eina_Iterator * eina_file_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; -EAPI Eina_Iterator * eina_file_direct_ls(const char *dir) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; +EAPI Eina_Bool eina_file_dir_list(const char *dir, + Eina_Bool recursive, + Eina_File_Dir_List_Cb cb, + void *data) EINA_ARG_NONNULL(1, 3); +EAPI Eina_Array *eina_file_split(char *path) +EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; +EAPI Eina_Iterator *eina_file_ls(const char *dir) +EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; +EAPI Eina_Iterator *eina_file_direct_ls(const char *dir) +EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; /** * @} @@ -89,4 +97,4 @@ EAPI Eina_Iterator * eina_file_direct_ls(const char *dir) EINA_WARN_UNUSED_RESUL * @} */ -#endif /* EINA_FILE_H_ */ +#endif /* EINA_FILE_H_ */ |