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

#include "config.h"

#include <glib.h>

#include "fu-ihex-struct.h"

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

/**
 * fu_ihex_firmware_record_type_to_string:
 * @val: value, e.g. %FU_IHEX_FIRMWARE_RECORD_TYPE_EOF
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 **/
const gchar *
fu_ihex_firmware_record_type_to_string(FuIhexFirmwareRecordType val)
{
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_DATA)
        return "data";
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_EOF)
        return "eof";
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_EXTENDED_SEGMENT)
        return "extended-segment";
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_START_SEGMENT)
        return "start-segment";
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_EXTENDED_LINEAR)
        return "extended-linear";
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_START_LINEAR)
        return "start-linear";
    if (val == FU_IHEX_FIRMWARE_RECORD_TYPE_SIGNATURE)
        return "signature";
    return NULL;
}
