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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user