2019-02-22 15:59:08 +00:00
|
|
|
#ifndef WSFS_MESSAGE_H
|
|
|
|
#define WSFS_MESSAGE_H
|
2019-02-09 02:08:02 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stddef.h>
|
|
|
|
#else
|
|
|
|
#include <cstddef>
|
|
|
|
using std::size_t;
|
|
|
|
#endif
|
|
|
|
|
2019-03-03 11:48:58 +00:00
|
|
|
#include <jansson.h>
|
|
|
|
|
2019-02-09 02:08:02 +00:00
|
|
|
struct wsfs_message
|
|
|
|
{
|
|
|
|
struct wsfs_message * next;
|
|
|
|
char * data;
|
|
|
|
size_t length;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2019-03-03 11:48:58 +00:00
|
|
|
extern struct wsfs_message * wsfs_message_create(json_t const * value);
|
2019-02-09 02:08:02 +00:00
|
|
|
|
|
|
|
extern void wsfs_message_dispose(
|
|
|
|
struct wsfs_message * message);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|