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

#include "config.h"

#include <glib.h>

#include "fu-qsi-dock-struct.h"
#include "fu-byte-array.h"
#include "fu-bytes.h"
#include "fu-mem-private.h"
#include "fu-string.h"

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




/**
 * fu_qsi_dock_isp_version_in_mcu_ref: (skip):
 **/
FuQsiDockIspVersionInMcu *
fu_qsi_dock_isp_version_in_mcu_ref(FuQsiDockIspVersionInMcu *st)
{
    g_return_val_if_fail(st != NULL, NULL);
    st->refcount++;
    return st;
}
/**
 * fu_qsi_dock_isp_version_in_mcu_unref: (skip):
 **/
void
fu_qsi_dock_isp_version_in_mcu_unref(FuQsiDockIspVersionInMcu *st)
{
    g_return_if_fail(st != NULL);
    if (st->refcount == 0) {
        g_critical("FuQsiDockIspVersionInMcu refcount already zero");
        return;
    }
    if (--st->refcount > 0)
        return;
    if (st->buf != NULL)
        g_byte_array_unref(st->buf);
    g_free(st);
}

/* getters */

/* setters */
