diff options
Diffstat (limited to 'netfs/daemon.h')
-rw-r--r-- | netfs/daemon.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/netfs/daemon.h b/netfs/daemon.h index 6b57976..a34c586 100644 --- a/netfs/daemon.h +++ b/netfs/daemon.h @@ -1,9 +1,7 @@ #ifndef DAEMON_H #define DAEMON_H -#include "comms.h" #include "daemonConfig.h" -#include "msgtypes.h" class DaemonGlobalState : public IsRefCounted { public: @@ -15,44 +13,6 @@ class DaemonGlobalState : public IsRefCounted { const DaemonConfigPtr config; }; typedef SmartPointer<DaemonGlobalState> DaemonGlobalStatePtr; -class Sender { - public: - Sender(int i, FILE * f); - void Send(DataPayloadPtr p); - bool replicatedRequest; - private: - int idx; - FILE * host; -}; - -#define handler(type) void handle(SmartPointer<TypedPayload<type> > req, Sender & s) -// Dirs -handler(OpenDirRequest); -handler(CloseDirRequest); -handler(ReadDirRequest); -handler(RmDirRequest); -handler(MkDirRequest); -// Misc -handler(AccessRequest); -handler(GetAttrRequest); -handler(FgetAttrRequest); -handler(UnlinkRequest); -handler(SymlinkRequest); -handler(LinkRequest); -handler(RenameRequest); -handler(ReadlinkRequest); -handler(ChmodRequest); -handler(ChownRequest); -// Files -handler(OpenRequest); -handler(CloseRequest); -handler(ReadRequest); -handler(WriteRequest); -handler(TruncateRequest); -handler(FtruncateRequest); -handler(CreateRequest); -// FS -handler(StatfsRequest); #endif |