aboutsummaryrefslogtreecommitdiff
path: root/include/qapi/hmp-output-visitor.h
blob: 541e4002e30daebcc3c4818ffe62b8ffbcda63d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * HMP string output Visitor
 *
 * Copyright Yandex N.V., 2021
 *
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 * See the COPYING file in the top-level directory.
 *
 */

#ifndef HMP_OUTPUT_VISITOR_H
#define HMP_OUTPUT_VISITOR_H

#include "qapi/visitor.h"

typedef struct HMPOutputVisitor HMPOutputVisitor;

/**
 * Create a HMP string output visitor for @obj
 *
 * Flattens dicts/structures, only shows arrays borders.
 *
 * Errors are not expected to happen.
 *
 * The caller is responsible for freeing the visitor with
 * visit_free().
 */
Visitor *hmp_output_visitor_new(char **result);

#endif