mirror of
https://github.com/qemu/qemu.git
synced 2024-12-03 00:33:39 +08:00
2e4450ff43
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>
18 lines
376 B
C
18 lines
376 B
C
/*
|
|
* QAPI util functions
|
|
*
|
|
* Copyright Fujitsu, Inc. 2014
|
|
*
|
|
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
|
|
* See the COPYING.LIB file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef QAPI_UTIL_H
|
|
#define QAPI_UTIL_H
|
|
|
|
int qapi_enum_parse(const char * const lookup[], const char *buf,
|
|
int max, int def, Error **errp);
|
|
|
|
#endif
|