fs_query: Make B_QUERY_WATCH_ALL part of the public API.
It seems to work well enough at this point, and is used in Tracker, so why not? Also update live_query to demonstrate the functionality.
This commit is contained in:
@@ -12,13 +12,16 @@
|
||||
|
||||
/* Flags for fs_open_[live_]query() */
|
||||
|
||||
#define B_LIVE_QUERY 0x00000001
|
||||
#define B_LIVE_QUERY (1 << 0)
|
||||
// Note, if you specify B_LIVE_QUERY, you have to use fs_open_live_query();
|
||||
// it will be ignored in fs_open_query().
|
||||
#define B_QUERY_NON_INDEXED 0x00000002
|
||||
#define B_QUERY_NON_INDEXED (1 << 1)
|
||||
// Only enable this feature for non time-critical things, it might
|
||||
// take a long time to proceed.
|
||||
// Also, not every file system might support this feature.
|
||||
#define B_QUERY_WATCH_ALL (1 << 2)
|
||||
// Send node monitor (B_ATTR_CHANGED, B_ENTRY_MOVED, etc.) events for all
|
||||
// attributes on all entries in the query.
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user