1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-09-29 06:30:58 +00:00
falk-werner_webfuse-provider/lib/webfuse/core/jsonrpc/method.h

35 lines
571 B
C

#ifndef WF_JSONRPC_METHOD_H
#define WF_JSONRPC_METHOD_H
#include "webfuse/core/jsonrpc/method_invoke_fn.h"
#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 *
wf_jsonrpc_method_create(
char const * method_name,
wf_jsonrpc_method_invoke_fn * invoke,
void * user_data);
extern void
wf_jsonrpc_method_dispose(
struct wf_jsonrpc_method * method);
#ifdef __cplusplus
}
#endif
#endif