2020-06-28 17:43:08 +00:00
|
|
|
#ifndef WF_IMPL_JSONRPC_PROXY_INTERN_H
|
|
|
|
#define WF_IMPL_JSONRPC_PROXY_INTERN_H
|
2020-03-29 15:40:33 +00:00
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
#include "webfuse/impl/jsonrpc/proxy.h"
|
|
|
|
#include "webfuse/impl/jsonrpc/proxy_finished_fn.h"
|
|
|
|
#include "webfuse/impl/jsonrpc/send_fn.h"
|
2020-03-29 15:40:33 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wf_timer;
|
|
|
|
|
|
|
|
struct wf_jsonrpc_request
|
|
|
|
{
|
|
|
|
bool is_pending;
|
|
|
|
wf_jsonrpc_proxy_finished_fn * finished;
|
|
|
|
void * user_data;
|
|
|
|
int id;
|
|
|
|
struct wf_timer * timer;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wf_jsonrpc_proxy
|
|
|
|
{
|
|
|
|
struct wf_jsonrpc_request request;
|
|
|
|
int timeout;
|
|
|
|
wf_jsonrpc_send_fn * send;
|
|
|
|
void * user_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern void
|
2020-06-28 17:43:08 +00:00
|
|
|
wf_impl_jsonrpc_proxy_init(
|
2020-03-29 15:40:33 +00:00
|
|
|
struct wf_jsonrpc_proxy * proxy,
|
|
|
|
struct wf_timer_manager * manager,
|
|
|
|
int timeout,
|
|
|
|
wf_jsonrpc_send_fn * send,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void
|
2020-06-28 17:43:08 +00:00
|
|
|
wf_impl_jsonrpc_proxy_cleanup(
|
2020-03-29 15:40:33 +00:00
|
|
|
struct wf_jsonrpc_proxy * proxy);
|
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
extern void wf_impl_jsonrpc_proxy_vinvoke(
|
2020-04-04 06:32:26 +00:00
|
|
|
struct wf_jsonrpc_proxy * proxy,
|
|
|
|
wf_jsonrpc_proxy_finished_fn * finished,
|
|
|
|
void * user_data,
|
|
|
|
char const * method_name,
|
|
|
|
char const * param_info,
|
|
|
|
va_list args);
|
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
extern void wf_impl_jsonrpc_proxy_vnotify(
|
2020-04-04 06:55:59 +00:00
|
|
|
struct wf_jsonrpc_proxy * proxy,
|
|
|
|
char const * method_name,
|
|
|
|
char const * param_info,
|
|
|
|
va_list args);
|
|
|
|
|
2020-03-29 15:40:33 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|