qapi: Don't use c_var() on enum strings
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 28 Sep 2011 19:56:56 +0000 (16:56 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Tue, 4 Oct 2011 14:00:46 +0000 (11:00 -0300)
commitf4577a06bc72a6110f19c8dd3583b671d0024787
tree13f6ecba1af8d3e785f7dfcc94535b5cc6decca4
parent8411eb4e64e332dbe07ded48c1619eaca99edd0a
qapi: Don't use c_var() on enum strings

Otherwise if we have something like 'foo-bar' in the schema,
it will be generated as 'foo_bar' in the string lookup table.

c_var() is good for C variables, but not for enum strings.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
scripts/qapi-types.py