/*
 * This file is auto-generated, do not modify!
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#include "config.h"

#include <glib.h>

#include "fu-parade-lspcon-struct.h"

#ifdef G_LOG_DOMAIN
  #undef G_LOG_DOMAIN
#endif
#define G_LOG_DOMAIN "FuStruct"

/**
 * fu_parade_lspcon_device_kind_to_string:
 * @val: value, e.g. %FU_PARADE_LSPCON_DEVICE_KIND_PS175
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 **/
const gchar *
fu_parade_lspcon_device_kind_to_string(FuParadeLspconDeviceKind val)
{
    if (val == FU_PARADE_LSPCON_DEVICE_KIND_PS175)
        return "ps175";
    if (val == FU_PARADE_LSPCON_DEVICE_KIND_PS185)
        return "ps185";
    return NULL;
}
/**
 * fu_parade_lspcon_device_kind_from_string:
 * @val: (nullable): a string, e.g. `ps175`
 *
 * Converts a string to an enumerated value.
 *
 * Returns: enumerated value
 **/
FuParadeLspconDeviceKind
fu_parade_lspcon_device_kind_from_string(const gchar *val)
{
    if (g_strcmp0(val, "ps175") == 0)
        return FU_PARADE_LSPCON_DEVICE_KIND_PS175;
    if (g_strcmp0(val, "ps185") == 0)
        return FU_PARADE_LSPCON_DEVICE_KIND_PS185;
    return FU_PARADE_LSPCON_DEVICE_KIND_UNKNOWN;
}




