litestomp
stomp_message.h
Go to the documentation of this file.
1 
16 #ifndef STOMP_MESSAGE_H
17 #define STOMP_MESSAGE_H
18 
19 #include "stomp_status.h"
20 
21 #include <string.h>
22 
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 typedef struct stomp_message_t_ {
35  size_t size;
36 
40  char *body;
42 
43 
51 
57 
58 
65 void stomp_message_format(stomp_message_t *message, const char *data, size_t len);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* STOMP_MESSAGE_H */
72 
struct stomp_message_t_ stomp_message_t
Definition: stomp_status.h:39
char * body
Definition: stomp_message.h:40
size_t size
Definition: stomp_message.h:35
stomp_message_t * stomp_message_create(stomp_status_t *status)
Definition: stomp_message.c:8
void stomp_message_destroy(stomp_message_t **message)
Definition: stomp_message.c:26
Definition: stomp_message.h:31
void stomp_message_format(stomp_message_t *message, const char *data, size_t len)
Definition: stomp_message.c:33