~ubuntu-branches/debian/stretch/spice/stretch

« back to all changes in this revision

Viewing changes to server/generated_marshallers.c

  • Committer: Package Import Robot
  • Author(s): Liang Guo, Liang Guo, Michael Tokarev
  • Date: 2011-11-29 14:37:08 UTC
  • mfrom: (0.6.1) (0.4.2) (2.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111129143708-jptkxyjl3a4rds2r
Tags: 0.10.0-1
[ Liang Guo ]
* New upstream release (Closes: #651262)
* Refresh debian/copyright
* Remove fix-typo-in-cmd_line_parser-cpp.patch, applied upstream
* Remove fix-typo-in-record-cpp.patch, applied upstream
* Remove use-requires-private-for-libspice-pkgconfig.patch, applied upstream
* Change Build-Depends on libspice-protocol-dev to (>= 0.9.1~)
* Refresh libspice-server1.symbols
* Update debian/rules clean target
* Ignore common/win/my_getopt-1.5/Makefile change when building package
* debian/control: set DMUA

[ Michael Tokarev ]
* use `rm -f' instead of `-rm' in debian/rules clean targets
* remove python_modules/*.pyc in clean target

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* this is a file autogenerated by spice_codegen.py */
 
2
#ifdef HAVE_CONFIG_H
 
3
#include <config.h>
 
4
#endif
1
5
#include "red_common.h"
2
6
#include <string.h>
3
7
#include <assert.h>
92
96
    /* Don't marshall @nomarshal message */
93
97
}
94
98
 
95
 
SPICE_GNUC_UNUSED static void spice_marshall_array_uint8(SpiceMarshaller *m, uint8_t *ptr, int count)
 
99
SPICE_GNUC_UNUSED static void spice_marshall_array_uint8(SpiceMarshaller *m, uint8_t *ptr, unsigned count)
96
100
{
97
101
    SPICE_GNUC_UNUSED SpiceMarshaller *m2;
98
102
    uint32_t i;
1032
1036
    spice_marshaller_add_uint32(m, src->time);
1033
1037
}
1034
1038
 
 
1039
void spice_marshall_SpiceMsgAudioVolume(SpiceMarshaller *m, SpiceMsgAudioVolume *msg)
 
1040
{
 
1041
    SPICE_GNUC_UNUSED SpiceMarshaller *m2;
 
1042
    SpiceMsgAudioVolume *src;
 
1043
    uint16_t *volume__element;
 
1044
    uint32_t i;
 
1045
    src = (SpiceMsgAudioVolume *)msg;
 
1046
 
 
1047
    spice_marshaller_add_uint8(m, src->nchannels);
 
1048
    volume__element = src->volume;
 
1049
    for (i = 0; i < src->nchannels; i++) {
 
1050
        spice_marshaller_add_uint16(m, *volume__element);
 
1051
        volume__element++;
 
1052
    }
 
1053
}
 
1054
 
 
1055
void spice_marshall_SpiceMsgAudioMute(SpiceMarshaller *m, SpiceMsgAudioMute *msg)
 
1056
{
 
1057
    SPICE_GNUC_UNUSED SpiceMarshaller *m2;
 
1058
    SpiceMsgAudioMute *src;
 
1059
    src = (SpiceMsgAudioMute *)msg;
 
1060
 
 
1061
    spice_marshaller_add_uint8(m, src->mute);
 
1062
}
 
1063
 
1035
1064
void spice_marshall_msg_record_start(SpiceMarshaller *m, SpiceMsgRecordStart *msg)
1036
1065
{
1037
1066
    SPICE_GNUC_UNUSED SpiceMarshaller *m2;
1524
1553
    }
1525
1554
}
1526
1555
 
1527
 
SPICE_GNUC_UNUSED static void spice_marshall_array_int32(SpiceMarshaller *m, int32_t *ptr, int count)
 
1556
SPICE_GNUC_UNUSED static void spice_marshall_array_int32(SpiceMarshaller *m, int32_t *ptr, unsigned count)
1528
1557
{
1529
1558
    SPICE_GNUC_UNUSED SpiceMarshaller *m2;
1530
1559
    uint32_t i;