/work/fu-genesys-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 "fu-genesys-struct.h" |
12 | | |
13 | | #ifdef G_LOG_DOMAIN |
14 | | #undef G_LOG_DOMAIN |
15 | | #endif |
16 | | #define G_LOG_DOMAIN "FuStruct" |
17 | | |
18 | | /** |
19 | | * fu_genesys_isp_model_to_string: |
20 | | * @val: value, e.g. %FU_GENESYS_ISP_MODEL_HUB_GL3521 |
21 | | * |
22 | | * Converts an enumerated value to a string. |
23 | | * |
24 | | * Returns: identifier string |
25 | | **/ |
26 | | const gchar * |
27 | | fu_genesys_isp_model_to_string(FuGenesysIspModel val) |
28 | 0 | { |
29 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL3521) |
30 | 0 | return "hub-gl3521"; |
31 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL3523) |
32 | 0 | return "hub-gl3523"; |
33 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL3523_PLUS) |
34 | 0 | return "hub-gl3523-plus"; |
35 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL3510) |
36 | 0 | return "hub-gl3510"; |
37 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL3590) |
38 | 0 | return "hub-gl3590"; |
39 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL7000) |
40 | 0 | return "hub-gl7000"; |
41 | 0 | if (val == FU_GENESYS_ISP_MODEL_HUB_GL3525) |
42 | 0 | return "hub-gl3525"; |
43 | 0 | if (val == FU_GENESYS_ISP_MODEL_PD_GL9510) |
44 | 0 | return "pd-gl9510"; |
45 | 0 | return NULL; |
46 | 0 | } |