diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-29 21:23:55 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-06-30 22:35:17 +0200 |
commit | 0f5a6f57b70bb7c94e15e908db4627d44c339b9c (patch) | |
tree | df2f77163a52b5879dd6944aa04fb8e41b0f9c3f /common/marshaller.h | |
parent | 5cd86fc45dfa94cb08c3316c614923ff50b94b0f (diff) | |
download | spice-0f5a6f57b70bb7c94e15e908db4627d44c339b9c.tar.gz spice-0f5a6f57b70bb7c94e15e908db4627d44c339b9c.tar.xz spice-0f5a6f57b70bb7c94e15e908db4627d44c339b9c.zip |
Add spice_marshaller_set_uint32
With this function you can update an added uint32 after it being added.
To make this possible all the spice_marshaller_add_add_foo functions
now return a pointer that can be used as a reference when later
setting a value.
Diffstat (limited to 'common/marshaller.h')
-rw-r--r-- | common/marshaller.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/common/marshaller.h b/common/marshaller.h index a60e97b4..59a190dc 100644 --- a/common/marshaller.h +++ b/common/marshaller.h @@ -50,13 +50,15 @@ SpiceMarshaller *spice_marshaller_get_ptr_submarshaller(SpiceMarshaller *m, int 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); -void spice_marshaller_add_int32(SpiceMarshaller *m, int32_t v); -void spice_marshaller_add_uint16(SpiceMarshaller *m, uint16_t v); -void spice_marshaller_add_int16(SpiceMarshaller *m, int16_t v); -void spice_marshaller_add_uint8(SpiceMarshaller *m, uint8_t v); -void spice_marshaller_add_int8(SpiceMarshaller *m, int8_t v); +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); +void *spice_marshaller_add_int32(SpiceMarshaller *m, int32_t v); +void *spice_marshaller_add_uint16(SpiceMarshaller *m, uint16_t v); +void *spice_marshaller_add_int16(SpiceMarshaller *m, int16_t v); +void *spice_marshaller_add_uint8(SpiceMarshaller *m, uint8_t v); +void *spice_marshaller_add_int8(SpiceMarshaller *m, int8_t v); + +void spice_marshaller_set_uint32(SpiceMarshaller *m, void *ref, uint32_t v); #endif |