Bound the tracker feature to a USED_IN_FS_SHELL define (to allow building
in other environments, too). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6315 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,7 +20,10 @@
|
|||||||
#include "lock.h"
|
#include "lock.h"
|
||||||
#include "fsproto.h"
|
#include "fsproto.h"
|
||||||
#include "kprotos.h"
|
#include "kprotos.h"
|
||||||
|
|
||||||
|
#if USED_IN_FS_SHELL
|
||||||
# include "tracker.h"
|
# include "tracker.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
@@ -3248,7 +3251,11 @@ notify_listener(int op, nspace_id nsid, vnode_id vnida, vnode_id vnidb, vnode_id
|
|||||||
printf("notify_listener: op = %d\n", op);
|
printf("notify_listener: op = %d\n", op);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USED_IN_FS_SHELL
|
||||||
return send_notification(0, 0, FSH_NOTIFY_LISTENER, op, nsid, -1, vnida, vnidb, vnidc, name);
|
return send_notification(0, 0, FSH_NOTIFY_LISTENER, op, nsid, -1, vnida, vnidb, vnidc, name);
|
||||||
|
#else
|
||||||
|
return send_notification(0, 0, 0x666, op, nsid, -1, vnida, vnidb, vnidc, name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -3257,7 +3264,9 @@ send_notification(port_id port, long token, ulong what, long op, nspace_id nsida
|
|||||||
nspace_id nsidb, vnode_id vnida, vnode_id vnidb, vnode_id vnidc,
|
nspace_id nsidb, vnode_id vnida, vnode_id vnidb, vnode_id vnidc,
|
||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
|
#ifdef USED_IN_FS_SHELL
|
||||||
update_message message;
|
update_message message;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
char *text;
|
char *text;
|
||||||
@@ -3292,6 +3301,7 @@ send_notification(port_id port, long token, ulong what, long op, nspace_id nsida
|
|||||||
text, name, port, token);
|
text, name, port, token);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USED_IN_FS_SHELL
|
||||||
message.op = op;
|
message.op = op;
|
||||||
message.device = nsida;
|
message.device = nsida;
|
||||||
message.toDevice = nsidb;
|
message.toDevice = nsidb;
|
||||||
@@ -3306,6 +3316,9 @@ send_notification(port_id port, long token, ulong what, long op, nspace_id nsida
|
|||||||
message.name[0] = '\0';
|
message.name[0] = '\0';
|
||||||
|
|
||||||
return write_port(gTrackerPort, what, &message, sizeof(message));
|
return write_port(gTrackerPort, what, &message, sizeof(message));
|
||||||
|
#else
|
||||||
|
return B_OK;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user