* {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
This commit is contained in:
@@ -17,9 +17,9 @@ struct io_context;
|
|||||||
|
|
||||||
class NotificationListener;
|
class NotificationListener;
|
||||||
|
|
||||||
extern status_t remove_node_listener(dev_t device, dev_t node,
|
extern status_t remove_node_listener(dev_t device, ino_t node,
|
||||||
NotificationListener& listener);
|
NotificationListener& listener);
|
||||||
extern status_t add_node_listener(dev_t device, dev_t node, uint32 flags,
|
extern status_t add_node_listener(dev_t device, ino_t node, uint32 flags,
|
||||||
NotificationListener& listener);
|
NotificationListener& listener);
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ NodeMonitorService::_RemoveListener(monitor_listener *listener)
|
|||||||
{
|
{
|
||||||
node_monitor *monitor = listener->monitor;
|
node_monitor *monitor = listener->monitor;
|
||||||
|
|
||||||
// remove it from the listener and I/O context lists
|
// remove it from the listener and I/O context lists
|
||||||
monitor->listeners.Remove(listener);
|
monitor->listeners.Remove(listener);
|
||||||
list_remove_link(listener);
|
list_remove_link(listener);
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ NodeMonitorService::_GetMonitor(io_context *context, dev_t device, ino_t node,
|
|||||||
if (monitor == NULL)
|
if (monitor == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
// initialize monitor
|
// initialize monitor
|
||||||
monitor->device = device;
|
monitor->device = device;
|
||||||
monitor->node = node;
|
monitor->node = node;
|
||||||
|
|
||||||
@@ -477,7 +477,7 @@ NodeMonitorService::_GetInterestedMonitorListeners(dev_t device, ino_t node,
|
|||||||
\param message The message to be sent.
|
\param message The message to be sent.
|
||||||
\param interestedListeners An array of listener lists.
|
\param interestedListeners An array of listener lists.
|
||||||
\param interestedListenerCount The number of elements in the
|
\param interestedListenerCount The number of elements in the
|
||||||
\a interestedListeners array.
|
\a interestedListeners array.
|
||||||
\return
|
\return
|
||||||
- \c B_OK, if everything went fine,
|
- \c B_OK, if everything went fine,
|
||||||
- another error code otherwise.
|
- another error code otherwise.
|
||||||
@@ -950,7 +950,7 @@ notify_mount(dev_t device, dev_t parentDevice, ino_t parentDirectory)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
remove_node_listener(dev_t device, dev_t node, NotificationListener& listener)
|
remove_node_listener(dev_t device, ino_t node, NotificationListener& listener)
|
||||||
{
|
{
|
||||||
return sNodeMonitorService.RemoveListener(get_current_io_context(true),
|
return sNodeMonitorService.RemoveListener(get_current_io_context(true),
|
||||||
device, node, listener);
|
device, node, listener);
|
||||||
@@ -958,7 +958,7 @@ remove_node_listener(dev_t device, dev_t node, NotificationListener& listener)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
add_node_listener(dev_t device, dev_t node, uint32 flags,
|
add_node_listener(dev_t device, ino_t node, uint32 flags,
|
||||||
NotificationListener& listener)
|
NotificationListener& listener)
|
||||||
{
|
{
|
||||||
return sNodeMonitorService.AddListener(get_current_io_context(true),
|
return sNodeMonitorService.AddListener(get_current_io_context(true),
|
||||||
|
|||||||
Reference in New Issue
Block a user