From 5207cc7a8ce26c1b5c420ad21017db0194e5d48a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 30 Jan 2005 01:53:37 +0000 Subject: [PATCH] Proposal for a replacement of the notify_listener() and send_notification() interface, which I personally find quite ugly. Each notification type gets its own function, which makes very clear, which parameters are to be supplied. Also note the addition of the `name' parameter for the `entry removed' notification and `fromName' for `entry moved'. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11145 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/drivers/fs_interface.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/headers/os/drivers/fs_interface.h b/headers/os/drivers/fs_interface.h index 5d8735ab5f..6db738156c 100644 --- a/headers/os/drivers/fs_interface.h +++ b/headers/os/drivers/fs_interface.h @@ -167,6 +167,24 @@ extern status_t send_notification(port_id port, long token, ulong what, long op, mount_id device, mount_id toDevice, vnode_id parentNode, vnode_id toParentNode, vnode_id node, const char *name); +extern status_t notify_entry_created(mount_id device, vnode_id directory, + const char *name, vnode_id node); +extern status_t notify_entry_removed(mount_id device, vnode_id directory, + const char *name, vnode_id node); +extern status_t notify_entry_moved(mount_id device, vnode_id fromDirectory, + const char *fromName, vnode_id toDirectory, + const char *toName, vnode_id node); +extern status_t notify_stat_changed(mount_id device, vnode_id node); +extern status_t notify_attribute_changed(mount_id device, vnode_id node, + const char *attribute); + +extern status_t notify_query_entry_created(port_id port, int32 token, + mount_id device, vnode_id directory, const char *name, + vnode_id node); +extern status_t notify_query_entry_removed(port_id port, int32 token, + mount_id device, vnode_id directory, const char *name, + vnode_id node); + #ifdef __cplusplus } #endif