2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_JSONRPC_RESPONSE_INTERN_H
|
|
|
|
#define WFP_JSONRPC_RESPONSE_INTERN_H
|
2020-03-29 15:40:33 +00:00
|
|
|
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/impl/jsonrpc/response.h"
|
2020-02-29 01:32:03 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_jsonrpc_response
|
2020-02-29 01:32:03 +00:00
|
|
|
{
|
|
|
|
json_t * result;
|
|
|
|
json_t * error;
|
|
|
|
int id;
|
|
|
|
};
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern void wfp_jsonrpc_response_init(
|
|
|
|
struct wfp_jsonrpc_response * response,
|
2020-02-29 01:32:03 +00:00
|
|
|
json_t * message);
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern void wfp_jsonrpc_response_cleanup(
|
|
|
|
struct wfp_jsonrpc_response * response);
|
2020-02-29 01:32:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|