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
This commit is contained in:
@@ -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,
|
mount_id device, mount_id toDevice, vnode_id parentNode,
|
||||||
vnode_id toParentNode, vnode_id node, const char *name);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user