summaryrefslogtreecommitdiffstats
path: root/qemu/include/qapi/visitor-impl.h
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/include/qapi/visitor-impl.h
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/include/qapi/visitor-impl.h')
-rw-r--r--qemu/include/qapi/visitor-impl.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/qemu/include/qapi/visitor-impl.h b/qemu/include/qapi/visitor-impl.h
deleted file mode 100644
index 2bd8f292b..000000000
--- a/qemu/include/qapi/visitor-impl.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Core Definitions for QAPI Visitor implementations
- *
- * Copyright (C) 2012-2016 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/visitor.h"
-
-struct Visitor
-{
- /* Must be set */
- void (*start_struct)(Visitor *v, const char *name, void **obj,
- size_t size, Error **errp);
- void (*end_struct)(Visitor *v, Error **errp);
-
- void (*start_list)(Visitor *v, const char *name, Error **errp);
- /* Must be set */
- GenericList *(*next_list)(Visitor *v, GenericList **list, size_t size);
- /* Must be set */
- void (*end_list)(Visitor *v);
-
- /* Optional, needed for input and dealloc visitors. */
- void (*start_alternate)(Visitor *v, const char *name,
- GenericAlternate **obj, size_t size,
- bool promote_int, Error **errp);
-
- /* Optional, needed for dealloc visitor. */
- void (*end_alternate)(Visitor *v);
-
- /* Must be set. */
- void (*type_enum)(Visitor *v, const char *name, int *obj,
- const char *const strings[], Error **errp);
-
- /* Must be set. */
- void (*type_int64)(Visitor *v, const char *name, int64_t *obj,
- Error **errp);
- /* Must be set. */
- void (*type_uint64)(Visitor *v, const char *name, uint64_t *obj,
- Error **errp);
- /* Optional; fallback is type_uint64(). */
- void (*type_size)(Visitor *v, const char *name, uint64_t *obj,
- Error **errp);
- /* Must be set. */
- void (*type_bool)(Visitor *v, const char *name, bool *obj, Error **errp);
- void (*type_str)(Visitor *v, const char *name, char **obj, Error **errp);
- void (*type_number)(Visitor *v, const char *name, double *obj,
- Error **errp);
- void (*type_any)(Visitor *v, const char *name, QObject **obj,
- Error **errp);
-
- /* May be NULL; most useful for input visitors. */
- void (*optional)(Visitor *v, const char *name, bool *present);
-};
-
-void input_type_enum(Visitor *v, const char *name, int *obj,
- const char *const strings[], Error **errp);
-void output_type_enum(Visitor *v, const char *name, int *obj,
- const char *const strings[], Error **errp);
-
-#endif