2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/impl/jsonrpc/proxy_intern.h"
|
2020-04-04 06:32:26 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
void wfp_jsonrpc_proxy_invoke(
|
|
|
|
struct wfp_jsonrpc_proxy * proxy,
|
|
|
|
wfp_jsonrpc_proxy_finished_fn * finished,
|
2020-04-04 06:32:26 +00:00
|
|
|
void * user_data,
|
|
|
|
char const * method_name,
|
|
|
|
char const * param_info,
|
|
|
|
...)
|
|
|
|
{
|
|
|
|
va_list args;
|
|
|
|
va_start(args, param_info);
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_jsonrpc_proxy_vinvoke(proxy, finished, user_data, method_name, param_info, args);
|
2020-04-04 06:32:26 +00:00
|
|
|
va_end(args);
|
|
|
|
}
|
2020-04-04 06:55:59 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern void wfp_jsonrpc_proxy_notify(
|
|
|
|
struct wfp_jsonrpc_proxy * proxy,
|
2020-04-04 06:55:59 +00:00
|
|
|
char const * method_name,
|
|
|
|
char const * param_info,
|
|
|
|
...
|
|
|
|
)
|
|
|
|
{
|
|
|
|
va_list args;
|
|
|
|
va_start(args, param_info);
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_jsonrpc_proxy_vnotify(proxy, method_name, param_info, args);
|
2020-04-04 06:55:59 +00:00
|
|
|
va_end(args);
|
|
|
|
}
|