1 /* File System indices 2 ** 3 ** Distributed under the terms of the OpenBeOS License. 4 */ 5 #ifndef _FS_INDEX_H 6 #define _FS_INDEX_H 7 8 9 #include <OS.h> 10 #include <dirent.h> 11 12 13 typedef struct index_info { 14 uint32 type; 15 off_t size; 16 time_t modification_time; 17 time_t creation_time; 18 uid_t uid; 19 gid_t gid; 20 } index_info; 21 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 extern int fs_create_index(dev_t device, const char *name, uint32 type, uint32 flags); 28 extern int fs_remove_index(dev_t device, const char *name); 29 extern int fs_stat_index(dev_t device, const char *name, struct index_info *indexInfo); 30 31 extern DIR *fs_open_index_dir(dev_t device); 32 extern int fs_close_index_dir(DIR *indexDirectory); 33 extern struct dirent *fs_read_index_dir(DIR *indexDirectory); 34 extern void fs_rewind_index_dir(DIR *indexDirectory); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* _FS_INDEX_H */ 41