qapi: Inline and remove QERR_MIGRATION_ACTIVE definition
[qemu/armbru.git] / include / qapi / qmp / qerror.h
blob385a4876d6d48b0cd6fee8dc1c341780d4ec7c26
1 /*
2 * QError Module
4 * Copyright (C) 2009 Red Hat Inc.
6 * Authors:
7 * Luiz Capitulino <lcapitulino@redhat.com>
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
12 #ifndef QERROR_H
13 #define QERROR_H
16 * These macros will go away, please don't use in new code, and do not
17 * add new ones!
20 #define QERR_INVALID_PARAMETER_VALUE \
21 "Parameter '%s' expects %s"
23 #define QERR_IO_ERROR \
24 "An IO error has occurred"
26 #define QERR_MISSING_PARAMETER \
27 "Parameter '%s' is missing"
29 #define QERR_PROPERTY_VALUE_BAD \
30 "Property '%s.%s' doesn't take value '%s'"
32 #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
33 "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
35 #define QERR_QGA_COMMAND_FAILED \
36 "Guest agent command failed, error was '%s'"
38 #define QERR_UNSUPPORTED \
39 "this feature or command is not currently supported"
41 #endif /* QERROR_H */