2020-06-28 17:43:08 +00:00
|
|
|
#ifndef WF_IMPL_JSONRPC_METHOD_H
|
|
|
|
#define WF_IMPL_JSONRPC_METHOD_H
|
2020-03-01 15:55:58 +00:00
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
#include "webfuse/impl/jsonrpc/method_invoke_fn.h"
|
2020-03-01 15:55:58 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wf_jsonrpc_method
|
|
|
|
{
|
|
|
|
struct wf_jsonrpc_method * next;
|
|
|
|
char * name;
|
|
|
|
wf_jsonrpc_method_invoke_fn * invoke;
|
|
|
|
void * user_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct wf_jsonrpc_method *
|
2020-06-28 17:43:08 +00:00
|
|
|
wf_impl_jsonrpc_method_create(
|
2020-03-01 15:55:58 +00:00
|
|
|
char const * method_name,
|
|
|
|
wf_jsonrpc_method_invoke_fn * invoke,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void
|
2020-06-28 17:43:08 +00:00
|
|
|
wf_impl_jsonrpc_method_dispose(
|
2020-03-01 15:55:58 +00:00
|
|
|
struct wf_jsonrpc_method * method);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|