virtio: handle non-virtio-1-capable backend for ccw
[qemu.git] / include / qapi / string-output-visitor.h
blobd99717f6508ea4175099dc2ff042fe2895f040bf
1 /*
2 * String printing Visitor
4 * Copyright Red Hat, Inc. 2012
6 * Author: Paolo Bonzini <pbonzini@redhat.com>
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.
13 #ifndef STRING_OUTPUT_VISITOR_H
14 #define STRING_OUTPUT_VISITOR_H
16 #include "qapi/visitor.h"
18 typedef struct StringOutputVisitor StringOutputVisitor;
20 StringOutputVisitor *string_output_visitor_new(bool human);
21 void string_output_visitor_cleanup(StringOutputVisitor *v);
23 char *string_output_get_string(StringOutputVisitor *v);
24 Visitor *string_output_get_visitor(StringOutputVisitor *v);
26 #endif