/*
 * 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;
} FuStructIfwiCpd;

FuStructIfwiCpd *fu_struct_ifwi_cpd_ref(FuStructIfwiCpd *st) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_unref(FuStructIfwiCpd *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructIfwiCpd, fu_struct_ifwi_cpd_unref)
FuStructIfwiCpd *fu_struct_ifwi_cpd_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructIfwiCpd *fu_struct_ifwi_cpd_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
gboolean fu_struct_ifwi_cpd_validate_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_get_num_of_entries(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_cpd_get_header_version(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_cpd_get_entry_version(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_cpd_get_header_length(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_cpd_get_checksum(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_get_partition_name(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_get_crc32(const FuStructIfwiCpd *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_ifwi_cpd_set_num_of_entries(FuStructIfwiCpd *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_set_header_version(FuStructIfwiCpd *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_set_entry_version(FuStructIfwiCpd *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_set_header_length(FuStructIfwiCpd *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_set_checksum(FuStructIfwiCpd *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_set_partition_name(FuStructIfwiCpd *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_set_crc32(FuStructIfwiCpd *st, guint32 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_OFFSET_HEADER_MARKER 0x0
#define FU_STRUCT_IFWI_CPD_OFFSET_NUM_OF_ENTRIES 0x4
#define FU_STRUCT_IFWI_CPD_OFFSET_HEADER_VERSION 0x8
#define FU_STRUCT_IFWI_CPD_OFFSET_ENTRY_VERSION 0x9
#define FU_STRUCT_IFWI_CPD_OFFSET_HEADER_LENGTH 0xA
#define FU_STRUCT_IFWI_CPD_OFFSET_CHECKSUM 0xB
#define FU_STRUCT_IFWI_CPD_OFFSET_PARTITION_NAME 0xC
#define FU_STRUCT_IFWI_CPD_OFFSET_CRC32 0x10
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_SIZE 0x14
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_DEFAULT_HEADER_MARKER 0x44504324
#define FU_STRUCT_IFWI_CPD_DEFAULT_HEADER_LENGTH 20
#endif
typedef struct {
  GByteArray *buf;
  guint refcount;
} FuStructIfwiCpdEntry;

FuStructIfwiCpdEntry *fu_struct_ifwi_cpd_entry_ref(FuStructIfwiCpdEntry *st) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_entry_unref(FuStructIfwiCpdEntry *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructIfwiCpdEntry, fu_struct_ifwi_cpd_entry_unref)
FuStructIfwiCpdEntry *fu_struct_ifwi_cpd_entry_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructIfwiCpdEntry *fu_struct_ifwi_cpd_entry_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
gchar *fu_struct_ifwi_cpd_entry_get_name(const FuStructIfwiCpdEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_entry_get_offset(const FuStructIfwiCpdEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_entry_get_length(const FuStructIfwiCpdEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
gboolean fu_struct_ifwi_cpd_entry_set_name(FuStructIfwiCpdEntry *st, const gchar *value, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_ifwi_cpd_entry_set_offset(FuStructIfwiCpdEntry *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_entry_set_length(FuStructIfwiCpdEntry *st, guint32 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_ENTRY_OFFSET_NAME 0x0
#define FU_STRUCT_IFWI_CPD_ENTRY_OFFSET_OFFSET 0xC
#define FU_STRUCT_IFWI_CPD_ENTRY_OFFSET_LENGTH 0x10
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_ENTRY_SIZE_NAME 0xC
#define FU_STRUCT_IFWI_CPD_ENTRY_N_ELEMENTS_NAME 12
#define FU_STRUCT_IFWI_CPD_ENTRY_SIZE 0x18
#endif

#ifndef __GI_SCANNER__
#endif
typedef struct {
  GByteArray *buf;
  guint refcount;
} FuStructIfwiCpdManifest;

FuStructIfwiCpdManifest *fu_struct_ifwi_cpd_manifest_ref(FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_unref(FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructIfwiCpdManifest, fu_struct_ifwi_cpd_manifest_unref)
FuStructIfwiCpdManifest *fu_struct_ifwi_cpd_manifest_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructIfwiCpdManifest *fu_struct_ifwi_cpd_manifest_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_header_type(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_header_length(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_header_version(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_flags(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_vendor(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_date(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_size(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_id(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_rsvd(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_cpd_manifest_get_version_major(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_cpd_manifest_get_version_minor(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_cpd_manifest_get_version_hotfix(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_cpd_manifest_get_version_build(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_get_svn(const FuStructIfwiCpdManifest *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_ifwi_cpd_manifest_set_header_type(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_header_length(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_header_version(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_flags(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_vendor(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_date(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_size(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_id(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_rsvd(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_version_major(FuStructIfwiCpdManifest *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_version_minor(FuStructIfwiCpdManifest *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_version_hotfix(FuStructIfwiCpdManifest *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_version_build(FuStructIfwiCpdManifest *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_set_svn(FuStructIfwiCpdManifest *st, guint32 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_HEADER_TYPE 0x0
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_HEADER_LENGTH 0x4
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_HEADER_VERSION 0x8
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_FLAGS 0xC
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_VENDOR 0x10
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_DATE 0x14
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_SIZE 0x18
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_ID 0x1C
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_RSVD 0x20
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_VERSION_MAJOR 0x24
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_VERSION_MINOR 0x26
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_VERSION_HOTFIX 0x28
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_VERSION_BUILD 0x2A
#define FU_STRUCT_IFWI_CPD_MANIFEST_OFFSET_SVN 0x2C
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_MANIFEST_SIZE 0x30
#endif

#ifndef __GI_SCANNER__
#endif
typedef struct {
  GByteArray *buf;
  guint refcount;
} FuStructIfwiCpdManifestExt;

FuStructIfwiCpdManifestExt *fu_struct_ifwi_cpd_manifest_ext_ref(FuStructIfwiCpdManifestExt *st) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_ext_unref(FuStructIfwiCpdManifestExt *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructIfwiCpdManifestExt, fu_struct_ifwi_cpd_manifest_ext_unref)
FuStructIfwiCpdManifestExt *fu_struct_ifwi_cpd_manifest_ext_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructIfwiCpdManifestExt *fu_struct_ifwi_cpd_manifest_ext_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_ext_get_extension_type(const FuStructIfwiCpdManifestExt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_cpd_manifest_ext_get_extension_length(const FuStructIfwiCpdManifestExt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_ifwi_cpd_manifest_ext_set_extension_type(FuStructIfwiCpdManifestExt *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_cpd_manifest_ext_set_extension_length(FuStructIfwiCpdManifestExt *st, guint32 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_MANIFEST_EXT_OFFSET_EXTENSION_TYPE 0x0
#define FU_STRUCT_IFWI_CPD_MANIFEST_EXT_OFFSET_EXTENSION_LENGTH 0x4
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_CPD_MANIFEST_EXT_SIZE 0x8
#endif

#ifndef __GI_SCANNER__
#endif
typedef struct {
  GByteArray *buf;
  guint refcount;
} FuStructIfwiFpt;

FuStructIfwiFpt *fu_struct_ifwi_fpt_ref(FuStructIfwiFpt *st) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_unref(FuStructIfwiFpt *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructIfwiFpt, fu_struct_ifwi_fpt_unref)
FuStructIfwiFpt *fu_struct_ifwi_fpt_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructIfwiFpt *fu_struct_ifwi_fpt_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
gboolean fu_struct_ifwi_fpt_validate_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_get_num_of_entries(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_fpt_get_header_version(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_fpt_get_header_length(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint8 fu_struct_ifwi_fpt_get_flags(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_fpt_get_ticks_to_add(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_fpt_get_tokens_to_add(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_get_uma_size(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_get_crc32(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_fpt_get_fitc_major(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_fpt_get_fitc_minor(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_fpt_get_fitc_hotfix(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint16 fu_struct_ifwi_fpt_get_fitc_build(const FuStructIfwiFpt *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_ifwi_fpt_set_num_of_entries(FuStructIfwiFpt *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_header_version(FuStructIfwiFpt *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_header_length(FuStructIfwiFpt *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_flags(FuStructIfwiFpt *st, guint8 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_ticks_to_add(FuStructIfwiFpt *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_tokens_to_add(FuStructIfwiFpt *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_uma_size(FuStructIfwiFpt *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_crc32(FuStructIfwiFpt *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_fitc_major(FuStructIfwiFpt *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_fitc_minor(FuStructIfwiFpt *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_fitc_hotfix(FuStructIfwiFpt *st, guint16 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_set_fitc_build(FuStructIfwiFpt *st, guint16 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_FPT_OFFSET_HEADER_MARKER 0x0
#define FU_STRUCT_IFWI_FPT_OFFSET_NUM_OF_ENTRIES 0x4
#define FU_STRUCT_IFWI_FPT_OFFSET_HEADER_VERSION 0x8
#define FU_STRUCT_IFWI_FPT_OFFSET_ENTRY_VERSION 0x9
#define FU_STRUCT_IFWI_FPT_OFFSET_HEADER_LENGTH 0xA
#define FU_STRUCT_IFWI_FPT_OFFSET_FLAGS 0xB
#define FU_STRUCT_IFWI_FPT_OFFSET_TICKS_TO_ADD 0xC
#define FU_STRUCT_IFWI_FPT_OFFSET_TOKENS_TO_ADD 0xE
#define FU_STRUCT_IFWI_FPT_OFFSET_UMA_SIZE 0x10
#define FU_STRUCT_IFWI_FPT_OFFSET_CRC32 0x14
#define FU_STRUCT_IFWI_FPT_OFFSET_FITC_MAJOR 0x18
#define FU_STRUCT_IFWI_FPT_OFFSET_FITC_MINOR 0x1A
#define FU_STRUCT_IFWI_FPT_OFFSET_FITC_HOTFIX 0x1C
#define FU_STRUCT_IFWI_FPT_OFFSET_FITC_BUILD 0x1E
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_FPT_SIZE 0x20
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_FPT_DEFAULT_HEADER_MARKER 0x54504624
#define FU_STRUCT_IFWI_FPT_DEFAULT_HEADER_VERSION 0x20
#define FU_STRUCT_IFWI_FPT_DEFAULT_ENTRY_VERSION 0x10
#define FU_STRUCT_IFWI_FPT_DEFAULT_HEADER_LENGTH 32
#endif
typedef struct {
  GByteArray *buf;
  guint refcount;
} FuStructIfwiFptEntry;

FuStructIfwiFptEntry *fu_struct_ifwi_fpt_entry_ref(FuStructIfwiFptEntry *st) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_entry_unref(FuStructIfwiFptEntry *st) G_GNUC_NON_NULL(1);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(FuStructIfwiFptEntry, fu_struct_ifwi_fpt_entry_unref)
FuStructIfwiFptEntry *fu_struct_ifwi_fpt_entry_new(void) G_GNUC_WARN_UNUSED_RESULT;
FuStructIfwiFptEntry *fu_struct_ifwi_fpt_entry_parse_stream(GInputStream *stream, gsize offset, GError **error) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_entry_get_partition_name(const FuStructIfwiFptEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_entry_get_offset(const FuStructIfwiFptEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_entry_get_length(const FuStructIfwiFptEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
guint32 fu_struct_ifwi_fpt_entry_get_partition_type(const FuStructIfwiFptEntry *st) G_GNUC_NON_NULL(1) G_GNUC_WARN_UNUSED_RESULT;
void fu_struct_ifwi_fpt_entry_set_partition_name(FuStructIfwiFptEntry *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_entry_set_offset(FuStructIfwiFptEntry *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_entry_set_length(FuStructIfwiFptEntry *st, guint32 value) G_GNUC_NON_NULL(1);
void fu_struct_ifwi_fpt_entry_set_partition_type(FuStructIfwiFptEntry *st, guint32 value) G_GNUC_NON_NULL(1);

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_FPT_ENTRY_OFFSET_PARTITION_NAME 0x0
#define FU_STRUCT_IFWI_FPT_ENTRY_OFFSET_OFFSET 0x8
#define FU_STRUCT_IFWI_FPT_ENTRY_OFFSET_LENGTH 0xC
#define FU_STRUCT_IFWI_FPT_ENTRY_OFFSET_PARTITION_TYPE 0x1C
#endif

#ifndef __GI_SCANNER__
#define FU_STRUCT_IFWI_FPT_ENTRY_SIZE 0x20
#endif

#ifndef __GI_SCANNER__
#endif
