Commit d4993c40 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Glue: add EventLoop& accessor

parent 7af8e393
......@@ -48,6 +48,14 @@ nfs_finish()
BlockingCall(nfs_glue->GetEventLoop(), [](){ nfs_glue.Destruct(); });
}
Event_Loop &
nfs_get_event_loop()
{
assert(in_use > 0);
return nfs_glue->GetEventLoop();
}
NfsConnection &
nfs_get_connection(const char *server, const char *export_name)
{
......
......@@ -32,6 +32,13 @@ nfs_init(EventLoop &event_loop);
void
nfs_finish();
/**
* Return the EventLoop that was passed to nfs_init().
*/
gcc_const
Event_Loop &
nfs_get_event_loop();
gcc_pure
NfsConnection &
nfs_get_connection(const char *server, const char *export_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment