diff options
author | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
commit | 825a3d837a33f226c879cd02ad15c3fba57e8b2c (patch) | |
tree | 75f57bd9c4253508d338dc79ba8e57a7abc42255 /libraries/eina/src/include/eina_file.h | |
parent | Add ability to disable the test harness, or the Lua compile test. (diff) | |
download | SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.zip SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.gz SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.bz2 SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.xz |
Update the EFL to what I'm actually using, coz I'm using some stuff not yet released.
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/src/include/eina_file.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libraries/eina/src/include/eina_file.h b/libraries/eina/src/include/eina_file.h index 01ef8f5..422fb65 100644 --- a/libraries/eina/src/include/eina_file.h +++ b/libraries/eina/src/include/eina_file.h | |||
@@ -94,6 +94,9 @@ typedef struct _Eina_File_Direct_Info Eina_File_Direct_Info; | |||
94 | * @typedef Eina_File_Dir_List_Cb | 94 | * @typedef Eina_File_Dir_List_Cb |
95 | * Type for a callback to be called when iterating over the files of a | 95 | * Type for a callback to be called when iterating over the files of a |
96 | * directory. | 96 | * directory. |
97 | * @param The file name EXCLUDING the path | ||
98 | * @param path The path passed to eina_file_dir_list() | ||
99 | * @param data The data passed to eina_file_dir_list() | ||
97 | */ | 100 | */ |
98 | typedef void (*Eina_File_Dir_List_Cb)(const char *name, const char *path, void *data); | 101 | typedef void (*Eina_File_Dir_List_Cb)(const char *name, const char *path, void *data); |
99 | 102 | ||
@@ -345,6 +348,33 @@ EAPI time_t eina_file_mtime_get(Eina_File *file); | |||
345 | EAPI const char *eina_file_filename_get(Eina_File *file); | 348 | EAPI const char *eina_file_filename_get(Eina_File *file); |
346 | 349 | ||
347 | /** | 350 | /** |
351 | * @brief Get the eXtended attribute of an open file. | ||
352 | * | ||
353 | * @param file The file handler to request the eXtended attribute from. | ||
354 | * @return an iterator. | ||
355 | * | ||
356 | * The iterator will list all eXtended attribute name without allocating | ||
357 | * them, so you need to copy them yourself if needed. | ||
358 | * | ||
359 | * @since 1.2 | ||
360 | */ | ||
361 | EAPI Eina_Iterator *eina_file_xattr_get(Eina_File *file); | ||
362 | |||
363 | /** | ||
364 | * @brief Get the eXtended attribute of an open file. | ||
365 | * | ||
366 | * @param file The file handler to request the eXtended attribute from. | ||
367 | * @return an iterator. | ||
368 | * | ||
369 | * The iterator will list all eXtended attribute without allocating | ||
370 | * them, so you need to copy them yourself if needed. It is returning | ||
371 | * Eina_Xattr structure. | ||
372 | * | ||
373 | * @since 1.2 | ||
374 | */ | ||
375 | EAPI Eina_Iterator *eina_file_xattr_value_get(Eina_File *file); | ||
376 | |||
377 | /** | ||
348 | * @brief Map all the file to a buffer. | 378 | * @brief Map all the file to a buffer. |
349 | * | 379 | * |
350 | * @param file The file handler to map in memory | 380 | * @param file The file handler to map in memory |
@@ -382,6 +412,16 @@ EAPI void *eina_file_map_new(Eina_File *file, Eina_File_Populate rule, | |||
382 | EAPI void eina_file_map_free(Eina_File *file, void *map); | 412 | EAPI void eina_file_map_free(Eina_File *file, void *map); |
383 | 413 | ||
384 | /** | 414 | /** |
415 | * @brief Tell if their was an IO error during the life of a mmaped file | ||
416 | * | ||
417 | * @param file The file handler to the mmaped file. | ||
418 | * @param map Memory map to check if an error occured on it. | ||
419 | * | ||
420 | * @since 1.2 | ||
421 | */ | ||
422 | EAPI Eina_Bool eina_file_map_faulted(Eina_File *file, void *map); | ||
423 | |||
424 | /** | ||
385 | * @} | 425 | * @} |
386 | */ | 426 | */ |
387 | 427 | ||