summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-22 16:01:57 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:44 +0100
commitbcc5cc0d9162c8193d175ad5c45fe6d52721cc52 (patch)
tree53b18e486c83a51db2cadc67f1345e44a5cabbaf /python_modules/codegen.py
parent0349d2249dbbd8cc0da344709ce7dd4e638db4ab (diff)
downloadspice-common-bcc5cc0d9162c8193d175ad5c45fe6d52721cc52.tar.gz
spice-common-bcc5cc0d9162c8193d175ad5c45fe6d52721cc52.tar.xz
spice-common-bcc5cc0d9162c8193d175ad5c45fe6d52721cc52.zip
Support extra prefix in code generators
This is require when we add a new spice.proto for the old (major 1) protocol description.
Diffstat (limited to 'python_modules/codegen.py')
-rw-r--r--python_modules/codegen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python_modules/codegen.py b/python_modules/codegen.py
index 5bb659a..af6636b 100644
--- a/python_modules/codegen.py
+++ b/python_modules/codegen.py
@@ -113,6 +113,7 @@ class CodeWriter:
writer.at_line_start = self.at_line_start
writer.generated = self.generated
writer.options = self.options
+ writer.public_prefix = self.public_prefix
return writer;