2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_JSONRPC_ERROR_H
|
|
|
|
#define WFP_JSONRPC_ERROR_H
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#include <jansson.h>
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/impl/jsonrpc/proxy_finished_fn.h"
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern json_t *
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_jsonrpc_error(
|
2020-02-28 22:17:41 +00:00
|
|
|
int code,
|
|
|
|
char const * message);
|
|
|
|
|
|
|
|
extern void
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_jsonrpc_propate_error(
|
|
|
|
wfp_jsonrpc_proxy_finished_fn * finised,
|
2020-02-28 22:17:41 +00:00
|
|
|
void * user_data,
|
|
|
|
int code,
|
|
|
|
char const * message);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|