lib/nfs/Glue: add EventLoop& accessor
This commit is contained in:
parent
7af8e3937f
commit
d4993c405e
@ -48,6 +48,14 @@ nfs_finish()
|
|||||||
BlockingCall(nfs_glue->GetEventLoop(), [](){ nfs_glue.Destruct(); });
|
BlockingCall(nfs_glue->GetEventLoop(), [](){ nfs_glue.Destruct(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Event_Loop &
|
||||||
|
nfs_get_event_loop()
|
||||||
|
{
|
||||||
|
assert(in_use > 0);
|
||||||
|
|
||||||
|
return nfs_glue->GetEventLoop();
|
||||||
|
}
|
||||||
|
|
||||||
NfsConnection &
|
NfsConnection &
|
||||||
nfs_get_connection(const char *server, const char *export_name)
|
nfs_get_connection(const char *server, const char *export_name)
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,13 @@ nfs_init(EventLoop &event_loop);
|
|||||||
void
|
void
|
||||||
nfs_finish();
|
nfs_finish();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the EventLoop that was passed to nfs_init().
|
||||||
|
*/
|
||||||
|
gcc_const
|
||||||
|
Event_Loop &
|
||||||
|
nfs_get_event_loop();
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
NfsConnection &
|
NfsConnection &
|
||||||
nfs_get_connection(const char *server, const char *export_name);
|
nfs_get_connection(const char *server, const char *export_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user