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-authz.h" |
16 | #include "qapi-visit-authz.h" |
17 | |
18 | const QEnumLookup QAuthZListPolicy_lookup = { |
19 | .array = (const char *const[]) { |
20 | [QAUTHZ_LIST_POLICY_DENY] = "deny" , |
21 | [QAUTHZ_LIST_POLICY_ALLOW] = "allow" , |
22 | }, |
23 | .size = QAUTHZ_LIST_POLICY__MAX |
24 | }; |
25 | |
26 | const QEnumLookup QAuthZListFormat_lookup = { |
27 | .array = (const char *const[]) { |
28 | [QAUTHZ_LIST_FORMAT_EXACT] = "exact" , |
29 | [QAUTHZ_LIST_FORMAT_GLOB] = "glob" , |
30 | }, |
31 | .size = QAUTHZ_LIST_FORMAT__MAX |
32 | }; |
33 | |
34 | void qapi_free_QAuthZListRule(QAuthZListRule *obj) |
35 | { |
36 | Visitor *v; |
37 | |
38 | if (!obj) { |
39 | return; |
40 | } |
41 | |
42 | v = qapi_dealloc_visitor_new(); |
43 | visit_type_QAuthZListRule(v, NULL, &obj, NULL); |
44 | visit_free(v); |
45 | } |
46 | |
47 | void qapi_free_QAuthZListRuleList(QAuthZListRuleList *obj) |
48 | { |
49 | Visitor *v; |
50 | |
51 | if (!obj) { |
52 | return; |
53 | } |
54 | |
55 | v = qapi_dealloc_visitor_new(); |
56 | visit_type_QAuthZListRuleList(v, NULL, &obj, NULL); |
57 | visit_free(v); |
58 | } |
59 | |
60 | void qapi_free_QAuthZListRuleListHack(QAuthZListRuleListHack *obj) |
61 | { |
62 | Visitor *v; |
63 | |
64 | if (!obj) { |
65 | return; |
66 | } |
67 | |
68 | v = qapi_dealloc_visitor_new(); |
69 | visit_type_QAuthZListRuleListHack(v, NULL, &obj, NULL); |
70 | visit_free(v); |
71 | } |
72 | |
73 | /* Dummy declaration to prevent empty .o file */ |
74 | char qapi_dummy_qapi_types_authz_c; |
75 | |