Add stat fields to StatChanged hook.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39028 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e464481888
commit
d01ea8ec63
@ -67,7 +67,8 @@ protected:
|
||||
const char *fromName, ino_t fromDirectory,
|
||||
ino_t toDirectory, dev_t device,
|
||||
ino_t node, dev_t nodeDevice);
|
||||
virtual void StatChanged(ino_t node, dev_t device);
|
||||
virtual void StatChanged(ino_t node, dev_t device,
|
||||
int32 statFields);
|
||||
|
||||
private:
|
||||
void _HandlePendingEntries();
|
||||
|
@ -33,7 +33,7 @@ protected:
|
||||
virtual void EntryMoved(const char *name, const char *fromName,
|
||||
ino_t fromDirectory, ino_t toDirectory, dev_t device,
|
||||
ino_t node, dev_t nodeDevice);
|
||||
virtual void StatChanged(ino_t node, dev_t device);
|
||||
virtual void StatChanged(ino_t node, dev_t device, int32 statFields);
|
||||
virtual void AttrChanged(ino_t node, dev_t device);
|
||||
virtual void DeviceMounted(dev_t new_device, dev_t device,
|
||||
ino_t directory);
|
||||
|
@ -413,7 +413,7 @@ AddOnMonitorHandler::EntryMoved(const char *name, const char *fromName,
|
||||
|
||||
|
||||
void
|
||||
AddOnMonitorHandler::StatChanged(ino_t node, dev_t device)
|
||||
AddOnMonitorHandler::StatChanged(ino_t node, dev_t device, int32 statFields)
|
||||
{
|
||||
// This notification is received for the add-ons themselves.
|
||||
|
||||
|
@ -110,7 +110,7 @@ NodeMonitorHandler::EntryMoved(const char *name, const char *fromName,
|
||||
|
||||
|
||||
/* virtual */ void
|
||||
NodeMonitorHandler::StatChanged(ino_t node, dev_t device)
|
||||
NodeMonitorHandler::StatChanged(ino_t node, dev_t device, int32 statFields)
|
||||
{
|
||||
// ignore
|
||||
}
|
||||
@ -208,11 +208,13 @@ NodeMonitorHandler::HandleStatChanged(BMessage * msg)
|
||||
{
|
||||
ino_t node;
|
||||
dev_t device;
|
||||
int32 statFields;
|
||||
if ((msg->FindInt64("node", &node) != B_OK) ||
|
||||
(msg->FindInt32("device", &device) != B_OK)) {
|
||||
(msg->FindInt32("device", &device) != B_OK) ||
|
||||
(msg->FindInt32("fields", &statFields) != B_OK)) {
|
||||
return B_MESSAGE_NOT_UNDERSTOOD;
|
||||
}
|
||||
StatChanged(node, device);
|
||||
StatChanged(node, device, statFields);
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user