diff options
author | randomdan <randomdan@localhost> | 2009-11-02 19:41:53 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2009-11-02 19:41:53 +0000 |
commit | 91d3c5f829804636ff9e1012132babe7226a97a5 (patch) | |
tree | 3a45e80f27be85c04dae2699bb5833859f94d2b4 /netfs/fuse.h | |
parent | All basic funcs implemented, not tested (diff) | |
download | netfs-91d3c5f829804636ff9e1012132babe7226a97a5.tar.bz2 netfs-91d3c5f829804636ff9e1012132babe7226a97a5.tar.xz netfs-91d3c5f829804636ff9e1012132babe7226a97a5.zip |
Single msg read dir and reconnects
Diffstat (limited to 'netfs/fuse.h')
-rw-r--r-- | netfs/fuse.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/netfs/fuse.h b/netfs/fuse.h index dc0a124..f587da4 100644 --- a/netfs/fuse.h +++ b/netfs/fuse.h @@ -3,6 +3,7 @@ #include "fuseapp.h" #include "comms.h" +#include "threads.h" class NetFS : public FuseAppBase { @@ -38,16 +39,10 @@ class NetFS : public FuseAppBase NetFS(); ~NetFS(); DataPayloadPtr exchange(DataPayloadPtr dp); - void send(DataPayloadPtr dp); - DataPayloadPtr recv(); - template <typename Type> - SmartPointer<TypedPayload<Type> > recvType() - { - DataPayloadPtr p = this->recv(); - return p.as<TypedPayload<Type> >(); - } private: - FILE * f; + FILE * f; + void connect(); + Mutex comms; }; // this needs to go here to avoid circular includes regarding the net->exchange call |