#define VENTOY_GUID { 0x77772020, 0x2e77, 0x6576, { 0x6e, 0x74, 0x6f, 0x79, 0x2e, 0x6e, 0x65, 0x74 }}
+typedef enum ventoy_fs_type
+{
+ ventoy_fs_exfat = 0, /* 0: exfat */
+ ventoy_fs_ntfs, /* 1: NTFS */
+ ventoy_fs_ext, /* 2: ext2/ext3/ext4 */
+ ventoy_fs_xfs, /* 3: XFS */
+ ventoy_fs_udf, /* 4: UDF */
+
+ ventoy_fs_max
+}ventoy_fs_type;
+
#pragma pack(1)
typedef struct ventoy_guid
grub_uint8_t reserved[31];
}ventoy_os_param;
+
+typedef struct ventoy_windows_data
+{
+ char auto_install_script[384];
+ grub_uint8_t reserved[128];
+}ventoy_windows_data;
+
+
+
#pragma pack()
// compile assert check : sizeof(ventoy_os_param) must be 512
typedef const char * (*grub_env_get_pf)(const char *name);
#pragma pack(1)
+
+#define GRUB_FILE_REPLACE_MAGIC 0x1258BEEF
+
+typedef struct ventoy_grub_param_file_replace
+{
+ grub_uint32_t magic;
+ char old_file_name[4][256];
+ grub_uint32_t old_name_cnt;
+ grub_uint32_t new_file_virtual_id;
+}ventoy_grub_param_file_replace;
+
typedef struct ventoy_grub_param
{
grub_env_get_pf grub_env_get;
+
+ ventoy_grub_param_file_replace file_replace;
}ventoy_grub_param;
#pragma pack()