haiku/headers/private/kernel/fs/node_monitor.h
Axel Dörfler 191a03fd11 * {add|remove}_node_listener() erroneously had "dev_t" as type of "node".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-09 13:04:54 +00:00

47 lines
1.2 KiB
C++

/*
* Copyright 2003-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_NODE_MONITOR_H
#define _KERNEL_NODE_MONITOR_H
#include <fs_interface.h>
struct io_context;
#ifdef __cplusplus
// C++ only part
class NotificationListener;
extern status_t remove_node_listener(dev_t device, ino_t node,
NotificationListener& listener);
extern status_t add_node_listener(dev_t device, ino_t node, uint32 flags,
NotificationListener& listener);
extern "C" {
#endif
// private kernel API
extern status_t remove_node_monitors(struct io_context *context);
extern status_t node_monitor_init(void);
extern status_t notify_unmount(dev_t device);
extern status_t notify_mount(dev_t device, dev_t parentDevice,
ino_t parentDirectory);
// user-space exported calls
extern status_t _user_stop_notifying(port_id port, uint32 token);
extern status_t _user_start_watching(dev_t device, ino_t node, uint32 flags,
port_id port, uint32 token);
extern status_t _user_stop_watching(dev_t device, ino_t node, port_id port,
uint32 token);
#ifdef __cplusplus
}
#endif
#endif /* _KRENEL_NODE_MONITOR_H */