qapi: add const prefix to 'char *' insider c_type()
commit0d14eeb23325b6b1f0f9adce8baf7d1b415cba81
authorAmos Kong <akong@redhat.com>
Tue, 10 Jun 2014 11:25:52 +0000 (10 19:25 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 23 Jun 2014 15:01:24 +0000 (23 11:01 -0400)
treedb23b14f933bea5acae35ff75018a5790b0a96f7
parent638ca8ad983e22202091e3d486e7101f7da804c5
qapi: add const prefix to 'char *' insider c_type()

It's ugly to add const prefix for parameter type by an if statement
outside c_type(). This patch adds a parameter to do it.

Signed-off-by: Amos Kong <akong@redhat.com>
Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
scripts/qapi-commands.py
scripts/qapi.py