opts-visitor.h (98c710f2d5cdf37f29a267352eb1f3c28cbf369d) | opts-visitor.h (922a01a013d2270682a188258cbccacfecf8129c) |
---|---|
1/* 2 * Options Visitor 3 * 4 * Copyright Red Hat, Inc. 2012 5 * 6 * Author: Laszlo Ersek <lersek@redhat.com> 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 OPTS_VISITOR_H 14#define OPTS_VISITOR_H 15 16#include "qapi/visitor.h" | 1/* 2 * Options Visitor 3 * 4 * Copyright Red Hat, Inc. 2012 5 * 6 * Author: Laszlo Ersek <lersek@redhat.com> 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 OPTS_VISITOR_H 14#define OPTS_VISITOR_H 15 16#include "qapi/visitor.h" |
17#include "qemu/option.h" | |
18 19/* Inclusive upper bound on the size of any flattened range. This is a safety 20 * (= anti-annoyance) measure; wrong ranges should not cause long startup 21 * delays nor exhaust virtual memory. 22 */ 23#define OPTS_VISITOR_RANGE_MAX 65536 24 25typedef struct OptsVisitor OptsVisitor; --- 4 unchanged lines hidden (view full) --- 30 * - values below INT64_MIN or LLONG_MIN are rejected, 31 * - values above INT64_MAX or LLONG_MAX are rejected. 32 * 33 * The Opts input visitor does not implement support for visiting QAPI 34 * alternates, numbers (other than integers), null, or arbitrary 35 * QTypes. It also requires a non-null list argument to 36 * visit_start_list(). 37 */ | 17 18/* Inclusive upper bound on the size of any flattened range. This is a safety 19 * (= anti-annoyance) measure; wrong ranges should not cause long startup 20 * delays nor exhaust virtual memory. 21 */ 22#define OPTS_VISITOR_RANGE_MAX 65536 23 24typedef struct OptsVisitor OptsVisitor; --- 4 unchanged lines hidden (view full) --- 29 * - values below INT64_MIN or LLONG_MIN are rejected, 30 * - values above INT64_MAX or LLONG_MAX are rejected. 31 * 32 * The Opts input visitor does not implement support for visiting QAPI 33 * alternates, numbers (other than integers), null, or arbitrary 34 * QTypes. It also requires a non-null list argument to 35 * visit_start_list(). 36 */ |
38OptsVisitor *opts_visitor_new(const QemuOpts *opts); 39void opts_visitor_cleanup(OptsVisitor *nv); 40Visitor *opts_get_visitor(OptsVisitor *nv); | 37Visitor *opts_visitor_new(const QemuOpts *opts); |
41 42#endif | 38 39#endif |