2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_ADAPTER_IMPL_JSONRPC_METHOD_H
|
|
|
|
#define WF_ADAPTER_IMPL_JSONRPC_METHOD_H
|
2019-03-26 14:35:33 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <jansson.h>
|
2019-03-26 22:04:53 +00:00
|
|
|
#include "webfuse/core/status.h"
|
2019-03-26 14:35:33 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
typedef bool wf_impl_jsonrpc_method_invoke_fn(
|
2019-03-26 14:35:33 +00:00
|
|
|
void * user_data,
|
|
|
|
struct json_t const * method_call);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
typedef void wf_impl_jsonrpc_method_finished_fn(
|
2019-03-26 14:35:33 +00:00
|
|
|
void * user_data,
|
2019-03-26 22:04:53 +00:00
|
|
|
wf_status status,
|
2019-03-26 14:35:33 +00:00
|
|
|
struct json_t const * result);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|