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

#pragma once
#include <fu-input-stream.h>
typedef struct {
  GByteArray *buf;
  guint refcount;
} FuStructSbatLevelSectionHeader;

FuStructSbatLevelSectionHeader *fu_struct_sbat_level_section_header_ref(FuStructSbatLevelSectionHeader *st) G_GNUC_NON_NULL(1);
void fu_struct_sbat_level_section_header_unref(FuStructSbatLevelSectionHeader *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructSbatLevelSectionHeader, fu_struct_sbat_level_section_header_unref)
FuStructSbatLevelSectionHeader *fu_struct_sbat_level_section_header_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructSbatLevelSectionHeader *fu_struct_sbat_level_section_header_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_sbat_level_section_header_get_previous(const FuStructSbatLevelSectionHeader *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_sbat_level_section_header_get_latest(const FuStructSbatLevelSectionHeader *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_sbat_level_section_header_set_previous(FuStructSbatLevelSectionHeader *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_sbat_level_section_header_set_latest(FuStructSbatLevelSectionHeader *st, guint32 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_SBAT_LEVEL_SECTION_HEADER_OFFSET_VERSION 0x0
#define FU_STRUCT_SBAT_LEVEL_SECTION_HEADER_OFFSET_PREVIOUS 0x4
#define FU_STRUCT_SBAT_LEVEL_SECTION_HEADER_OFFSET_LATEST 0x8
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_SBAT_LEVEL_SECTION_HEADER_SIZE 0xC
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_SBAT_LEVEL_SECTION_HEADER_DEFAULT_VERSION 0x0
#endif
