2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_MESSAGE_H
|
|
|
|
#define WFP_MESSAGE_H
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <jansson.h>
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/impl/slist.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_message
|
2019-03-26 22:04:53 +00:00
|
|
|
{
|
2020-06-16 21:57:41 +00:00
|
|
|
struct wfp_slist_item item;
|
2019-03-26 22:04:53 +00:00
|
|
|
char * data;
|
|
|
|
size_t length;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern struct wfp_message * wfp_message_create(
|
2019-04-17 20:51:16 +00:00
|
|
|
json_t const * value);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern void wfp_message_dispose(
|
|
|
|
struct wfp_message * message);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|