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

#include "config.h"

#include <glib.h>

#include "fu-msgpack-struct.h"

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

/**
 * fu_msgpack_item_kind_to_string:
 * @val: value, e.g. %FU_MSGPACK_ITEM_KIND_INTEGER
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 **/
const gchar *
fu_msgpack_item_kind_to_string(FuMsgpackItemKind val)
{
    if (val == FU_MSGPACK_ITEM_KIND_INTEGER)
        return "integer";
    if (val == FU_MSGPACK_ITEM_KIND_NIL)
        return "nil";
    if (val == FU_MSGPACK_ITEM_KIND_BOOLEAN)
        return "boolean";
    if (val == FU_MSGPACK_ITEM_KIND_FLOAT)
        return "float";
    if (val == FU_MSGPACK_ITEM_KIND_STRING)
        return "string";
    if (val == FU_MSGPACK_ITEM_KIND_BINARY)
        return "binary";
    if (val == FU_MSGPACK_ITEM_KIND_ARRAY)
        return "array";
    if (val == FU_MSGPACK_ITEM_KIND_MAP)
        return "map";
    if (val == FU_MSGPACK_ITEM_KIND_EXTENSION)
        return "extension";
    return NULL;
}

