summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2009-10-19 23:33:18 +0000
committerrandomdan <randomdan@localhost>2009-10-19 23:33:18 +0000
commit4e97a95fed4679e39d90376654eed5cfe45930bb (patch)
tree3e9b0b4ebb84ea5467c03ab39c1a2532579ab612
parent*** empty log message *** (diff)
downloadnetfs-4e97a95fed4679e39d90376654eed5cfe45930bb.tar.bz2
netfs-4e97a95fed4679e39d90376654eed5cfe45930bb.tar.xz
netfs-4e97a95fed4679e39d90376654eed5cfe45930bb.zip
*** empty log message ***
-rw-r--r--netfs/msgtypes.h130
1 files changed, 130 insertions, 0 deletions
diff --git a/netfs/msgtypes.h b/netfs/msgtypes.h
index c29dc93..79d6d74 100644
--- a/netfs/msgtypes.h
+++ b/netfs/msgtypes.h
@@ -71,6 +71,14 @@ class GetAttrRequest : public RequestBase {
virtual void Send(FILE*) const;
virtual void Read(FILE*);
};
+class FgetAttrRequest : public RequestBase {
+ public:
+ int handle;
+ const static uint16_t TypeID;
+ typedef GetAttrReply Reply;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
class OpenDirReply : public ContentBase {
public:
@@ -150,6 +158,15 @@ class OpenRequest : public RequestBase {
virtual void Send(FILE*) const;
virtual void Read(FILE*);
};
+class CreateRequest : public RequestBase {
+ public:
+ std::string path;
+ mode_t mode;
+ const static uint16_t TypeID;
+ typedef OpenReply Reply;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
class CloseReply : public ContentBase {
public:
int error;
@@ -204,6 +221,119 @@ class WriteRequest : public RequestBase {
virtual void Send(FILE*) const;
virtual void Read(FILE*);
};
+class MkDirRequest : public RequestBase {
+ public:
+ std::string path;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class UnlinkRequest : public RequestBase {
+ public:
+ std::string path;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class SymlinkRequest : public RequestBase {
+ public:
+ std::string path1;
+ std::string path2;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class LinkRequest : public RequestBase {
+ public:
+ std::string path1;
+ std::string path2;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class RenameRequest : public RequestBase {
+ public:
+ std::string path1;
+ std::string path2;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class ReadlinkReply : public ContentBase {
+ public:
+ std::string path;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class ReadlinkRequest : public RequestBase {
+ public:
+ std::string path;
+ typedef ReadlinkReply Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class ChmodRequest : public RequestBase {
+ public:
+ std::string path;
+ mode_t mode;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class ChownRequest : public RequestBase {
+ public:
+ std::string path;
+ uid_t user;
+ gid_t group;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class TruncateRequest : public RequestBase {
+ public:
+ std::string path;
+ off_t size;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class FtruncateRequest : public RequestBase {
+ public:
+ int handle;
+ off_t size;
+ typedef SimpleInt Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class StatfsReply : public ContentBase {
+ public:
+ struct statvfs statfs;
+ int error;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+class StatfsRequest : public RequestBase {
+ public:
+ std::string path;
+ typedef StatfsReply Reply;
+ const static uint16_t TypeID;
+ virtual void Send(FILE*) const;
+ virtual void Read(FILE*);
+};
+
+
#define MSGTYPE(id, cls) \
const uint16_t cls::TypeID = id; \