]> Git Repo - qemu.git/blob - include/qapi/forward-visitor.h
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / include / qapi / forward-visitor.h
1 /*
2  * Forwarding visitor
3  *
4  * Copyright Red Hat, Inc. 2021
5  *
6  * Author: Paolo Bonzini <[email protected]>
7  *
8  * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
9  * See the COPYING.LIB file in the top-level directory.
10  *
11  */
12
13 #ifndef FORWARD_VISITOR_H
14 #define FORWARD_VISITOR_H
15
16 #include "qapi/visitor.h"
17
18 typedef struct ForwardFieldVisitor ForwardFieldVisitor;
19
20 /*
21  * The forwarding visitor only expects a single name, @from, to be passed for
22  * toplevel fields.  It is converted to @to and forwarded to the @target visitor.
23  * Calls within a struct are forwarded without changing the name.
24  */
25 Visitor *visitor_forward_field(Visitor *target, const char *from, const char *to);
26
27 #endif
This page took 0.023289 seconds and 4 git commands to generate.