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

42 lines
713 B
C
Raw Normal View History

2020-02-29 01:32:03 +00:00
#ifndef JSONRPC_IMPL_SERVER_H
#define JSONRPC_IMPL_SERVER_H
#include <jansson.h>
#include "jsonrpc/method_invoke_fn.h"
#include "jsonrpc/send_fn.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct jsonrpc_server;
extern struct jsonrpc_server *
jsonrpc_impl_server_create(void);
extern void
jsonrpc_impl_server_dispose(
struct jsonrpc_server * server);
extern void
jsonrpc_impl_server_add(
struct jsonrpc_server * server,
char const * method_name,
jsonrpc_method_invoke_fn * invoke,
void * user_data);
extern void
jsonrpc_impl_server_process(
struct jsonrpc_server * server,
json_t * request,
jsonrpc_send_fn * send,
void * user_data);
#ifdef __cplusplus
}
#endif
#endif