2020-02-29 01:32:03 +00:00
|
|
|
#ifndef JSONRPC_IMPL_METHOD_H
|
|
|
|
#define JSONRPC_IMPL_METHOD_H
|
2020-02-28 22:17:41 +00:00
|
|
|
|
2020-02-29 01:32:03 +00:00
|
|
|
#include "jsonrpc/method_invoke_fn.h"
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#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(
|
2020-02-28 22:17:41 +00:00
|
|
|
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(
|
2020-02-28 22:17:41 +00:00
|
|
|
struct jsonrpc_method * method);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|