qom: Make enum string tables const-correct
commit2e4450ff432daef524cb3557fca68a3b7b5c7823
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 May 2015 16:14:07 +0000 (13 17:14 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 19 Jun 2015 16:42:18 +0000 (19 18:42 +0200)
treec900fd8fbef7456b29aaefdc20e91063abcbb3a0
parenta31bdae5a76ecc060c1eb8a66be1896072c1e8b2
qom: Make enum string tables const-correct

The enum string table parameters in various QOM/QAPI methods
are declared 'const char *strings[]'. This results in const
warnings if passed a variable that was declared as

   static const char * const strings[] = { .... };

Add the extra const annotation to the parameters, since
neither the string elements, nor the array itself should
ever be modified.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/hw/qdev-core.h
include/qapi/util.h
include/qapi/visitor-impl.h
include/qapi/visitor.h
include/qom/object.h
qapi/qapi-dealloc-visitor.c
qapi/qapi-util.c
qapi/qapi-visit-core.c
qom/object.c
scripts/qapi-types.py