mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
38 lines
540 B
C++
38 lines
540 B
C++
#ifndef WFP_MESSAGE_H
|
|
#define WFP_MESSAGE_H
|
|
|
|
#ifndef __cplusplus
|
|
#include <stddef.h>
|
|
#else
|
|
#include <cstddef>
|
|
using std::size_t;
|
|
#endif
|
|
|
|
#include <jansson.h>
|
|
#include "webfuse_provider/impl/util/slist.h"
|
|
|
|
struct wfp_message
|
|
{
|
|
struct wfp_slist_item item;
|
|
char * data;
|
|
char * raw_data;
|
|
size_t length;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
extern struct wfp_message * wfp_message_create(
|
|
json_t const * value);
|
|
|
|
extern void wfp_message_dispose(
|
|
struct wfp_message * message);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|