You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
459 B
35 lines
459 B
6 years ago
|
#ifndef WF_MESSAGE_H
|
||
|
#define WF_MESSAGE_H
|
||
|
|
||
|
#ifndef __cplusplus
|
||
|
#include <stddef.h>
|
||
|
#else
|
||
|
#include <cstddef>
|
||
|
using std::size_t;
|
||
|
#endif
|
||
|
|
||
|
#include <jansson.h>
|
||
|
|
||
|
struct wf_message
|
||
|
{
|
||
|
struct wf_message * next;
|
||
|
char * data;
|
||
|
size_t length;
|
||
|
};
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
extern struct wf_message * wf_message_create(json_t const * value);
|
||
|
|
||
|
extern void wf_message_dispose(
|
||
|
struct wf_message * message);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|