summaryrefslogtreecommitdiffstats
path: root/python_modules/marshal.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-28 12:45:07 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:45 +0100
commit144b2fbd75812b38d1c6086ca2561f47bc371898 (patch)
treef8e650875fb4288c25a277e1755813e90316e2af /python_modules/marshal.py
parent302788f1474b4e6101ed68d77aa5bb562bafa23e (diff)
downloadspice-protocol-144b2fbd75812b38d1c6086ca2561f47bc371898.tar.gz
spice-protocol-144b2fbd75812b38d1c6086ca2561f47bc371898.tar.xz
spice-protocol-144b2fbd75812b38d1c6086ca2561f47bc371898.zip
Fix build error due to member "SpiceMsgEmpty" same name as type
Diffstat (limited to 'python_modules/marshal.py')
-rw-r--r--python_modules/marshal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index ef1a47c..1eb3675 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -369,6 +369,8 @@ def write_protocol_marshaller(writer, proto, is_server, private_marshallers):
writer.writeln("static SpiceMessageMarshallers marshallers = {NULL};").newline()
for f in sorted(functions.keys()):
member = f[len("spice_marshall_"):]
+ if not member.startswith("msg"):
+ member = "msg_" + member
writer.assign("marshallers.%s" % member, f)
writer.newline()