Commit Graph

12 Commits

Author SHA1 Message Date
Hans de Goede
fde996526b Remove auto-generated .gitignore files from git
Auto-generated files do not belong in git. Having these in git causes
changes to them accidentally ending up in other commits.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2011-10-10 11:55:57 +02:00
Hans de Goede
858e5def68 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>
2011-09-30 11:24:07 +02:00
Christophe Fergeau
acb146939d handle @ifdef on messages and channels 2011-06-23 20:05:33 +02:00
Christophe Fergeau
3fbe20cf9e allow attributes on channel elements in .proto files
We want to be able to add an @ifdef annotation to optional messages
For example, we want to compile in the smartcard messages only if
libcacard is available
2011-06-23 20:05:33 +02:00
Christophe Fergeau
9b159ff7d8 add ifdef/endif methods to spice code generator
These methods will be needed to be able to make some fields optional
in spice.proto
2011-06-23 20:05:33 +02:00
Christophe Fergeau
b827c4b813 fix copy & paste error in ptypes.py 2011-05-23 18:16:49 +02:00
Alon Levy
a8adff78c1 python_modules/codegen.py: fix indent error in an unused function 2011-04-11 11:07:32 +02:00
Alon Levy
57d8b3fa4f demarshaller/marshaller fix gcc 4.6.0
python_modules/demarshal.py and marshal.py fixes for gcc 4.6.0
warning about set but unused variables. The fixes disable creating
of variables mem_size when they are not used (demarshall) and
declaring a src variable when the message doesn't use it (marshal).

You need to touch *.proto after applying this (should add a Makefile
dependency).
2011-04-11 11:07:32 +02:00
Alon Levy
d63d274fde codegen: avoid creating out if not used (fix gcc 4.6.0 warning) 2011-04-11 11:07:32 +02:00
Alon Levy
9cba559dc3 mingw32 build: python_modules/marshal: use unsigned for for_loop index variable 2011-04-11 11:07:32 +02:00
Marc-André Lureau
165000de77 gtk: first stab at gtk-doc documentation 2010-12-05 22:19:16 +01:00
Marc-André Lureau
d960229a09 Initial import from SPICE 2010-11-23 17:00:17 +01:00