haiku/headers/private/fs_shell/fssh_node_monitor.h
Ingo Weinhold a38a92c955 Beginnings of a new, better portable FS shell with Haiku FS interface.
Doesn't do anything ATM, but already provides the required system
interface (VFS, caches, POSIX functions).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-27 12:17:22 +00:00

68 lines
1.7 KiB
C

#ifndef _FSSH_NODE_MONITOR_H
#define _FSSH_NODE_MONITOR_H
/* Node monitor calls for kernel add-ons
**
** Distributed under the terms of the OpenBeOS License.
*/
#include "fssh_defs.h"
/* Flags for the watch_node() call.
*
* Note that B_WATCH_MOUNT is NOT included in B_WATCH_ALL.
* You may prefer to use BVolumeRoster for volume watching.
*/
enum {
FSSH_B_STOP_WATCHING = 0x0000,
FSSH_B_WATCH_NAME = 0x0001,
FSSH_B_WATCH_STAT = 0x0002,
FSSH_B_WATCH_ATTR = 0x0004,
FSSH_B_WATCH_DIRECTORY = 0x0008,
FSSH_B_WATCH_ALL = 0x000f,
FSSH_B_WATCH_MOUNT = 0x0010
};
/* The "opcode" field of the B_NODE_MONITOR notification message you get.
*
* The presence and meaning of the other fields in that message specifying what
* exactly caused the notification depend on this value.
*/
#define FSSH_B_ENTRY_CREATED 1
#define FSSH_B_ENTRY_REMOVED 2
#define FSSH_B_ENTRY_MOVED 3
#define FSSH_B_STAT_CHANGED 4
#define FSSH_B_ATTR_CHANGED 5
#define FSSH_B_DEVICE_MOUNTED 6
#define FSSH_B_DEVICE_UNMOUNTED 7
// More specific info in the "cause" field of B_ATTR_CHANGED notification
// messages. (Haiku only)
#define FSSH_B_ATTR_CREATED 1
#define FSSH_B_ATTR_REMOVED 2
// FSSH_B_ATTR_CHANGED is reused
// More specific info in the "fields" field of B_STAT_CHANGED notification
// messages, specifying what parts of the stat data have actually been
// changed. (Haiku only)
enum {
FSSH_B_STAT_MODE = 0x01,
FSSH_B_STAT_UID = 0x02,
FSSH_B_STAT_GID = 0x04,
FSSH_B_STAT_SIZE = 0x08,
FSSH_B_STAT_ACCESS_TIME = 0x10,
FSSH_B_STAT_MODIFICATION_TIME = 0x20,
FSSH_B_STAT_CREATION_TIME = 0x40,
FSSH_B_STAT_CHANGE_TIME = 0x80,
};
#endif /* _FSSH_NODE_MONITOR_H */