From da42ddf96c78a73b4cf5f8854e98e009f4f174a4 Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 4 Jun 2019 18:59:00 -0400 Subject: ... --- include/salticidae/msg.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'include/salticidae/msg.h') diff --git a/include/salticidae/msg.h b/include/salticidae/msg.h index 6964ab2..c88d70b 100644 --- a/include/salticidae/msg.h +++ b/include/salticidae/msg.h @@ -25,16 +25,17 @@ #ifndef _SALTICIDAE_MSG_H #define _SALTICIDAE_MSG_H -#include -#include -#include -#include - #include "salticidae/type.h" #include "salticidae/stream.h" #include "salticidae/netaddr.h" #ifdef __cplusplus + +#include +#include +#include +#include + namespace salticidae { template @@ -280,14 +281,18 @@ typedef struct msg_t msg_t; #endif #ifdef SALTICIDAE_CBINDINGS +#ifdef __cplusplus extern "C" { +#endif msg_t *msg_new(_opcode_t opcode, bytearray_t *_moved_payload); -datastream_t *msg_get_payload(msg_t *msg); -const _opcode_t &msg_get_opcode(const msg_t *msg); +datastream_t *msg_get_payload(const msg_t *msg); +const _opcode_t msg_get_opcode(const msg_t *msg); void msg_free(msg_t *msg); +#ifdef __cplusplus } #endif +#endif #endif -- cgit v1.2.3