lib/nfs/Glue: eliminate class NfsGlue
It's just a useless wrapper for class NfsManager.
This commit is contained in:
parent
fb4e6ac923
commit
1b5ec3e3ca
@ -23,23 +23,7 @@
|
|||||||
#include "IOThread.hxx"
|
#include "IOThread.hxx"
|
||||||
#include "util/Manual.hxx"
|
#include "util/Manual.hxx"
|
||||||
|
|
||||||
class NfsGlue {
|
static Manual<NfsManager> nfs_glue;
|
||||||
NfsManager manager;
|
|
||||||
|
|
||||||
public:
|
|
||||||
NfsGlue(EventLoop &_loop)
|
|
||||||
:manager(_loop) {}
|
|
||||||
|
|
||||||
~NfsGlue() {
|
|
||||||
//assert(open_uri.empty());
|
|
||||||
}
|
|
||||||
|
|
||||||
NfsConnection &GetConnection(const char *server, const char *export_name) {
|
|
||||||
return manager.GetConnection(server, export_name);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
static Manual<NfsGlue> nfs_glue;
|
|
||||||
static unsigned in_use;
|
static unsigned in_use;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user