commit | 0d14eeb23325b6b1f0f9adce8baf7d1b415cba81 | [log] [tgz] |
---|---|---|
author | Amos Kong <akong@redhat.com> | Tue Jun 10 19:25:52 2014 +0800 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Mon Jun 23 11:01:24 2014 -0400 |
tree | db23b14f933bea5acae35ff75018a5790b0a96f7 | |
parent | 638ca8ad983e22202091e3d486e7101f7da804c5 [diff] |
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>