diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-07 22:40:16 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-07 23:10:51 +0200 |
commit | ee26a9a77372b92ee615ae783676cb0ed7172ecd (patch) | |
tree | 0e2cfae5107ce40253f7bb60ca326ecdc8a8deba /common/marshaller.c | |
parent | a415c557657c2009798d086b229c17ac0d47a978 (diff) | |
download | spice-ee26a9a77372b92ee615ae783676cb0ed7172ecd.tar.gz spice-ee26a9a77372b92ee615ae783676cb0ed7172ecd.tar.xz spice-ee26a9a77372b92ee615ae783676cb0ed7172ecd.zip |
Add spice_marshaller_add_ref_chunks
Diffstat (limited to 'common/marshaller.c')
-rw-r--r-- | common/marshaller.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/marshaller.c b/common/marshaller.c index be6198dc..70008a84 100644 --- a/common/marshaller.c +++ b/common/marshaller.c @@ -346,6 +346,16 @@ uint8_t *spice_marshaller_add_ref(SpiceMarshaller *m, uint8_t *data, size_t size return spice_marshaller_add_ref_full(m, data, size, NULL, NULL); } +void spice_marshaller_add_ref_chunks(SpiceMarshaller *m, SpiceChunks *chunks) +{ + int i; + + for (i = 0; i < chunks->num_chunks; i++) { + spice_marshaller_add_ref(m, chunks->chunk[i].data, + chunks->chunk[i].len); + } +} + SpiceMarshaller *spice_marshaller_get_submarshaller(SpiceMarshaller *m) { SpiceMarshallerData *d; |