Make generated marshallers build on win32

This commit is contained in:
Alexander Larsson 2010-06-18 21:10:25 +02:00
parent 5e06031cad
commit dcc0f272e9
2 changed files with 6 additions and 0 deletions

View File

@ -491,6 +491,7 @@ void spice_marshaller_flush(SpiceMarshaller *m)
}
}
#ifndef WIN32
int spice_marshaller_fill_iovec(SpiceMarshaller *m, struct iovec *vec,
int n_vec, size_t skip_bytes)
{
@ -522,6 +523,7 @@ int spice_marshaller_fill_iovec(SpiceMarshaller *m, struct iovec *vec,
return v;
}
#endif
void spice_marshaller_add_uint64(SpiceMarshaller *m, uint64_t v)
{

View File

@ -20,7 +20,9 @@
#define _H_MARSHALLER
#include <spice/types.h>
#ifndef WIN32
#include <sys/uio.h>
#endif
typedef struct SpiceMarshaller SpiceMarshaller;
typedef void (*spice_marshaller_item_free_func)(uint8_t *data, void *opaque);
@ -44,8 +46,10 @@ size_t spice_marshaller_get_size(SpiceMarshaller *m);
size_t spice_marshaller_get_total_size(SpiceMarshaller *m);
SpiceMarshaller *spice_marshaller_get_submarshaller(SpiceMarshaller *m);
SpiceMarshaller *spice_marshaller_get_ptr_submarshaller(SpiceMarshaller *m, int is_64bit);
#ifndef WIN32
int spice_marshaller_fill_iovec(SpiceMarshaller *m, struct iovec *vec,
int n_vec, size_t skip_bytes);
#endif
void spice_marshaller_add_uint64(SpiceMarshaller *m, uint64_t v);
void spice_marshaller_add_int64(SpiceMarshaller *m, int64_t v);
void spice_marshaller_add_uint32(SpiceMarshaller *m, uint32_t v);