/work/fwupd-json-struct.c
Line | Count | Source |
1 | | /* |
2 | | * This file is auto-generated, do not modify! |
3 | | * |
4 | | * SPDX-License-Identifier: LGPL-2.1-or-later |
5 | | */ |
6 | | |
7 | | #include "config.h" |
8 | | |
9 | | #include <glib.h> |
10 | | |
11 | | #include "fwupd-json-struct.h" |
12 | | |
13 | | #ifdef G_LOG_DOMAIN |
14 | | #undef G_LOG_DOMAIN |
15 | | #endif |
16 | | #define G_LOG_DOMAIN "FuStruct" |
17 | | |
18 | | /** |
19 | | * fwupd_json_node_kind_to_string: |
20 | | * @val: value, e.g. %FWUPD_JSON_NODE_KIND_STRING |
21 | | * |
22 | | * Converts an enumerated value to a string. |
23 | | * |
24 | | * Returns: identifier string |
25 | | * |
26 | | * Since: 2.1.1 |
27 | | **/ |
28 | | const gchar * |
29 | | fwupd_json_node_kind_to_string(FwupdJsonNodeKind val) |
30 | 0 | { |
31 | 0 | if (val == FWUPD_JSON_NODE_KIND_RAW) |
32 | 0 | return "raw"; |
33 | 0 | if (val == FWUPD_JSON_NODE_KIND_STRING) |
34 | 0 | return "string"; |
35 | 0 | if (val == FWUPD_JSON_NODE_KIND_ARRAY) |
36 | 0 | return "array"; |
37 | 0 | if (val == FWUPD_JSON_NODE_KIND_OBJECT) |
38 | 0 | return "object"; |
39 | 0 | return NULL; |
40 | 0 | } |
41 | | |
42 | | |