BQuery: Add SetFlags() method.

It can be used to set flags on the query, same as fs_open_query()'s
flags parameter.

fLive had 3 bytes of padding after it, so this doesn't break ABI.
This commit is contained in:
Augustin Cavalier
2025-04-30 17:18:16 -04:00
parent 7e740f61ac
commit d26ab46206
2 changed files with 16 additions and 9 deletions
+2 -1
View File
@@ -63,6 +63,7 @@ public:
status_t SetVolume(const BVolume* volume);
status_t SetPredicate(const char* expression);
status_t SetTarget(BMessenger messenger);
void SetFlags(uint32 flags);
bool IsLive() const;
@@ -102,7 +103,7 @@ private:
BPrivate::Storage::QueryStack* fStack;
char* fPredicate;
dev_t fDevice;
bool fLive;
uint32 fFlags;
port_id fPort;
long fToken;
int fQueryFd;