summaryrefslogtreecommitdiff
path: root/common/client_demarshallers.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/client_demarshallers.h')
-rw-r--r--common/client_demarshallers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/client_demarshallers.h b/common/client_demarshallers.h
index fc2f75a..af095a0 100644
--- a/common/client_demarshallers.h
+++ b/common/client_demarshallers.h
@@ -17,6 +17,11 @@
#ifndef _H_DEMARSHAL
#define _H_DEMARSHAL
+#include <stddef.h>
+#include <spice/macros.h>
+
+SPICE_BEGIN_DECLS
+
typedef void (*message_destructor_t)(uint8_t *message);
typedef uint8_t * (*spice_parse_channel_func_t)(uint8_t *message_start, uint8_t *message_end, uint16_t message_type, int minor,
size_t *size_out, message_destructor_t *free_message);
@@ -24,5 +29,7 @@ typedef uint8_t * (*spice_parse_channel_func_t)(uint8_t *message_start, uint8_t
spice_parse_channel_func_t spice_get_server_channel_parser(uint32_t channel, unsigned int *max_message_type);
spice_parse_channel_func_t spice_get_server_channel_parser1(uint32_t channel, unsigned int *max_message_type);
+SPICE_END_DECLS
+
#endif