diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-22 07:35:03 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-22 07:35:03 -0600 |
commit | 4732dcaf5a82561a5a9f9e4bc9adedbec5f3e9ec (patch) | |
tree | 2dbfaf9f35d7e29d8344f8b37df699097434e854 /qapi/qapi-visit-impl.h | |
parent | 017438eeb17d62d74e181e32f996e5805302693e (diff) | |
parent | 5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde (diff) | |
download | qemu-4732dcaf5a82561a5a9f9e4bc9adedbec5f3e9ec.tar.gz |
Merge remote-tracking branch 'bonzini/qdev-props-for-anthony' into staging
* bonzini/qdev-props-for-anthony:
qdev: drop unnecessary parse/print methods
qdev: use built-in QOM string parser
qdev: accept hex properties only if prefixed by 0x
qdev: accept both strings and integers for PCI addresses
qom: add generic string parsing/printing
qapi: add tests for string-based visitors
qapi: add string-based visitors
qapi: drop qmp_input_end_optional
qapi: allow sharing enum implementation across visitors
Diffstat (limited to 'qapi/qapi-visit-impl.h')
-rw-r--r-- | qapi/qapi-visit-impl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qapi/qapi-visit-impl.h b/qapi/qapi-visit-impl.h new file mode 100644 index 0000000000..0f3a1898fe --- /dev/null +++ b/qapi/qapi-visit-impl.h @@ -0,0 +1,23 @@ +/* + * Core Definitions for QAPI Visitor implementations + * + * Copyright (C) 2012 Red Hat, Inc. + * + * Author: Paolo Bonizni <pbonzini@redhat.com> + * + * 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_VISITOR_IMPL_H +#define QAPI_VISITOR_IMPL_H + +#include "qapi/qapi-types-core.h" +#include "qapi/qapi-visit-core.h" + +void input_type_enum(Visitor *v, int *obj, const char *strings[], + const char *kind, const char *name, Error **errp); +void output_type_enum(Visitor *v, int *obj, const char *strings[], + const char *kind, const char *name, Error **errp); + +#endif |