1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/lib/jsonrpc/impl/method.h

35 lines
548 B
C
Raw Normal View History

2020-02-29 01:32:03 +00:00
#ifndef JSONRPC_IMPL_METHOD_H
#define JSONRPC_IMPL_METHOD_H
2020-02-29 01:32:03 +00:00
#include "jsonrpc/method_invoke_fn.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct jsonrpc_method
{
struct jsonrpc_method * next;
char * name;
jsonrpc_method_invoke_fn * invoke;
void * user_data;
};
2020-02-29 01:32:03 +00:00
extern struct jsonrpc_method *
jsonrpc_impl_method_create(
char const * method_name,
jsonrpc_method_invoke_fn * invoke,
void * user_data);
2020-02-29 01:32:03 +00:00
extern void
jsonrpc_impl_method_dispose(
struct jsonrpc_method * method);
#ifdef __cplusplus
}
#endif
#endif