spice-protocol-pxvdi/python_modules
Hans de Goede ca57afda34 spice_codegen: Always write a channels entry for an ifdef-ed channel
Before this patch, if a channel is defined conditionally in spice.proto
(because it depends on external headers like the smartcard channel),
spice_codegen would write an entry to the channels array in
spice_get_*_channel_parser which would only take up a place in the array
if the ifdef condition is true, thus moving up all other intializers
one place when it is not true. This was causing issues (crashes) when building
spice-gtk with the combination of usbredir support enabled and smartcard
support disabled.

This patch fixes this by adding #else { NULL, 0 }, to the generated code.

Thanks to coolper chen <lixin.chen@saicocch.com> for reporting this!

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2012-03-20 15:31:30 +01:00
..
__init__.py Initial import of spice protocol description and demarshall generator 2012-03-20 15:25:43 +01:00
codegen.py spice_codegen: Always write a channels entry for an ifdef-ed channel 2012-03-20 15:31:30 +01:00
demarshal.py spice_codegen: Always write a channels entry for an ifdef-ed channel 2012-03-20 15:31:30 +01:00
Makefile.am Remove trailing blank lines 2012-03-20 15:25:55 +01:00
marshal.py handle @ifdef on messages and channels 2012-03-20 15:31:30 +01:00
ptypes.py allow attributes on channel elements in .proto files 2012-03-20 15:31:30 +01:00
spice_parser.py allow attributes on channel elements in .proto files 2012-03-20 15:31:30 +01:00