summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
Commit message (Collapse)AuthorAgeFilesLines
* spice_codegen: Always write a channels entry for an ifdef-ed channelHans de Goede2012-03-201-0/+6
| | | | | | | | | | | | | | | | | 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>
* add ifdef/endif methods to spice code generatorChristophe Fergeau2012-03-201-0/+12
| | | | | These methods will be needed to be able to make some fields optional in spice.proto
* python: remove c-ism trailing ;Marc-André Lureau2012-03-201-3/+3
|
* python_modules/codegen.py: fix indent error in an unused functionAlon Levy2012-03-201-1/+1
|
* support python 2.5.4+ for marshaller/demarshallersAlon Levy2012-03-201-0/+1
| | | | | Patch adds a "from __future__" import that doesn't affect newer python's but allows python 2.5.4 to run the code (tested under scratchbox, n900 build environment)
* Support extra prefix in code generatorsAlexander Larsson2012-03-201-0/+1
| | | | | This is require when we add a new spice.proto for the old (major 1) protocol description.
* Initial import of spice protocol description and demarshall generatorAlexander Larsson2012-03-201-0/+354
The "spice.proto" file describes in detail the networking prototcol that spice uses and spice_codegen.py can parse this and generate demarshallers for such network messages.