X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/05a1b863a66bf72b26e5d87570c4e0e61b9736cd..965417970b745b343f0adc8843016c66a337d888:/GRUB2/grub-2.04/include/grub/ventoy.h?ds=inline diff --git a/GRUB2/grub-2.04/include/grub/ventoy.h b/GRUB2/grub-2.04/include/grub/ventoy.h index da696c3..205ba1d 100644 --- a/GRUB2/grub-2.04/include/grub/ventoy.h +++ b/GRUB2/grub-2.04/include/grub/ventoy.h @@ -28,6 +28,17 @@ #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 @@ -104,6 +115,15 @@ typedef struct ventoy_os_param 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 @@ -183,9 +203,22 @@ typedef struct ventoy_img_chunk_list 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()