1/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
2
3/*
4 * Schema-defined QAPI types
5 *
6 * Copyright IBM, Corp. 2011
7 * Copyright (c) 2013-2018 Red Hat Inc.
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 */
12
13#include "qemu/osdep.h"
14#include "qapi/dealloc-visitor.h"
15#include "qapi-types-trace.h"
16#include "qapi-visit-trace.h"
17
18const QEnumLookup TraceEventState_lookup = {
19 .array = (const char *const[]) {
20 [TRACE_EVENT_STATE_UNAVAILABLE] = "unavailable",
21 [TRACE_EVENT_STATE_DISABLED] = "disabled",
22 [TRACE_EVENT_STATE_ENABLED] = "enabled",
23 },
24 .size = TRACE_EVENT_STATE__MAX
25};
26
27void qapi_free_TraceEventInfo(TraceEventInfo *obj)
28{
29 Visitor *v;
30
31 if (!obj) {
32 return;
33 }
34
35 v = qapi_dealloc_visitor_new();
36 visit_type_TraceEventInfo(v, NULL, &obj, NULL);
37 visit_free(v);
38}
39
40void qapi_free_TraceEventInfoList(TraceEventInfoList *obj)
41{
42 Visitor *v;
43
44 if (!obj) {
45 return;
46 }
47
48 v = qapi_dealloc_visitor_new();
49 visit_type_TraceEventInfoList(v, NULL, &obj, NULL);
50 visit_free(v);
51}
52
53/* Dummy declaration to prevent empty .o file */
54char qapi_dummy_qapi_types_trace_c;
55