Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

28 lines
718 B
C

/*
* Forwarding visitor
*
* Copyright Red Hat, Inc. 2021
*
* Author: Paolo Bonzini <[email protected]>
*
* 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 FORWARD_VISITOR_H
#define FORWARD_VISITOR_H
#include "qapi/visitor.h"
typedef struct ForwardFieldVisitor ForwardFieldVisitor;
/*
* The forwarding visitor only expects a single name, @from, to be passed for
* toplevel fields. It is converted to @to and forwarded to the @target visitor.
* Calls within a struct are forwarded without changing the name.
*/
Visitor *visitor_forward_field(Visitor *target, const char *from, const char *to);
#endif