1 /******************************************************************************* 2 / 3 / File: fs_query.h 4 / 5 / Description: C interface to the BeOS file system query mechanism. 6 / 7 / Copyright 1993-98, Be Incorporated, All Rights Reserved. 8 / 9 *******************************************************************************/ 10 11 #ifndef _FS_QUERY_H 12 #define _FS_QUERY_H 13 14 #include <BeBuild.h> 15 #include <OS.h> 16 #include <dirent.h> 17 18 19 /* flags for fs_open_query() */ 20 21 #define B_LIVE_QUERY 0x00000001 22 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 29 _IMPEXP_ROOT DIR *fs_open_query(dev_t device, const char *query, uint32 flags); 30 _IMPEXP_ROOT DIR *fs_open_live_query(dev_t device, const char *query, 31 uint32 flags, port_id port, int32 token); 32 _IMPEXP_ROOT int fs_close_query(DIR *d); 33 _IMPEXP_ROOT struct dirent *fs_read_query(DIR *d); 34 35 _IMPEXP_ROOT status_t get_path_for_dirent(struct dirent *dent, char *buf, 36 size_t len); 37 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 44 #endif /* _FS_QUERY_H */ 45