mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
39 lines
530 B
C++
39 lines
530 B
C++
#ifndef WFP_MESSAGE_H
|
|
#define WFP_MESSAGE_H
|
|
|
|
#ifndef __cplusplus
|
|
#include <stddef.h>
|
|
#else
|
|
#include <cstddef>
|
|
using std::size_t;
|
|
#endif
|
|
|
|
#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(
|
|
char * data,
|
|
size_t length);
|
|
|
|
extern void wfp_message_dispose(
|
|
struct wfp_message * message);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|