1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

refactor: make filesystem independent of session

This commit is contained in:
Falk Werner
2020-06-12 22:53:42 +02:00
parent adaec875d9
commit 0c702ff25f
6 changed files with 16 additions and 24 deletions

View File

@@ -6,13 +6,5 @@
struct wf_jsonrpc_proxy * wf_impl_operation_context_get_proxy(
struct wf_impl_operation_context * context)
{
struct wf_jsonrpc_proxy * proxy = NULL;
struct wf_impl_session * session = context->session;
if (NULL != session)
{
proxy = session->rpc;
}
return proxy;
return context->proxy;
}

View File

@@ -7,12 +7,11 @@
extern "C" {
#endif
struct wf_impl_session;
struct wf_jsonrpc_proxy;
struct wf_impl_operation_context
{
struct wf_impl_session * session;
struct wf_jsonrpc_proxy * proxy;
double timeout;
char * name;
};