Add a watch_volume method to the node monitor to be able to watch node changes on a whole volume and not only for one node.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39020 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-10-20 12:31:53 +00:00
parent 9e9c8091e7
commit 33d9a03d72
2 changed files with 26 additions and 5 deletions
+9 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2008, Haiku Inc. All Rights Reserved.
* Copyright 2003-2010, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _NODE_MONITOR_H
@@ -83,10 +83,15 @@ class BLooper;
class BHandler;
extern status_t watch_node(const node_ref *node, uint32 flags, BMessenger target);
extern status_t watch_volume(const dev_t volume, uint32 flags,
BMessenger target);
extern status_t watch_volume(const dev_t volume, uint32 flags,
const BHandler *handler, const BLooper *looper = NULL);
extern status_t watch_node(const node_ref *node, uint32 flags,
BMessenger target);
extern status_t watch_node(const node_ref *node, uint32 flags,
const BHandler *handler,
const BLooper *looper = NULL);
const BHandler *handler, const BLooper *looper = NULL);
extern status_t stop_watching(BMessenger target);
extern status_t stop_watching(const BHandler *handler, const BLooper *looper = NULL);