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

#include "config.h"

#include <glib.h>

#include "fu-realtek-mst-struct.h"

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

/**
 * fu_realtek_mst_device_dual_bank_mode_to_string:
 * @val: value, e.g. %FU_REALTEK_MST_DEVICE_DUAL_BANK_MODE_DIFF
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 **/
const gchar *
fu_realtek_mst_device_dual_bank_mode_to_string(FuRealtekMstDeviceDualBankMode val)
{
    if (val == FU_REALTEK_MST_DEVICE_DUAL_BANK_MODE_USER_ONLY)
        return "user-only";
    if (val == FU_REALTEK_MST_DEVICE_DUAL_BANK_MODE_DIFF)
        return "diff";
    if (val == FU_REALTEK_MST_DEVICE_DUAL_BANK_MODE_COPY)
        return "copy";
    if (val == FU_REALTEK_MST_DEVICE_DUAL_BANK_MODE_USER_ONLY_FLAG)
        return "user-only-flag";
    return NULL;
}

/**
 * fu_realtek_mst_device_flash_bank_to_string:
 * @val: value, e.g. %FU_REALTEK_MST_DEVICE_FLASH_BANK_USER1
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 **/
const gchar *
fu_realtek_mst_device_flash_bank_to_string(FuRealtekMstDeviceFlashBank val)
{
    if (val == FU_REALTEK_MST_DEVICE_FLASH_BANK_BOOT)
        return "boot";
    if (val == FU_REALTEK_MST_DEVICE_FLASH_BANK_USER1)
        return "user1";
    if (val == FU_REALTEK_MST_DEVICE_FLASH_BANK_USER2)
        return "user2";
    return NULL;
}

