X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/595b9441e9ebb909de6a421b9699cb7c4cef491e..102b179cd99ebffd9372ca52b18c1b2d8f4e2fb7:/GRUB2/MOD_SRC/grub-2.04/include/grub/ventoy.h diff --git a/GRUB2/MOD_SRC/grub-2.04/include/grub/ventoy.h b/GRUB2/MOD_SRC/grub-2.04/include/grub/ventoy.h index 9b5bb4a..129a289 100644 --- a/GRUB2/MOD_SRC/grub-2.04/include/grub/ventoy.h +++ b/GRUB2/MOD_SRC/grub-2.04/include/grub/ventoy.h @@ -141,8 +141,10 @@ typedef struct ventoy_windows_data grub_uint8_t windows11_bypass_check; grub_uint32_t auto_install_len; - - grub_uint8_t reserved[255 - 4]; + + grub_uint8_t windows11_bypass_nro; + + grub_uint8_t reserved[255 - 5]; /* auto_intall file buf */ /* ...... + auto_install_len */ @@ -262,6 +264,7 @@ typedef struct ventoy_img_chunk_list #pragma pack(1) +#define VTOY_MAX_CONF_REPLACE 2 #define GRUB_FILE_REPLACE_MAGIC 0x1258BEEF #define GRUB_IMG_REPLACE_MAGIC 0x1259BEEF @@ -282,7 +285,7 @@ typedef struct ventoy_grub_param grub_env_get_pf grub_env_get; grub_env_set_pf grub_env_set; ventoy_grub_param_file_replace file_replace; - ventoy_grub_param_file_replace img_replace; + ventoy_grub_param_file_replace img_replace[VTOY_MAX_CONF_REPLACE]; grub_env_printf_pf grub_env_printf; }ventoy_grub_param; @@ -303,6 +306,7 @@ grub_uint64_t grub_udf_get_last_file_attr_offset grub_uint64_t *fe_entry_size_offset ); int ventoy_is_efi_os(void); +void ventoy_memfile_env_set(const char *prefix, const void *buf, unsigned long long len); #endif /* __VENTOY_H__ */