X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/cbbd57eee5980acc6879e119fe6b8913285f2af6..HEAD:/LinuxGUI/Ventoy2Disk/Core/ventoy_util.h diff --git a/LinuxGUI/Ventoy2Disk/Core/ventoy_util.h b/LinuxGUI/Ventoy2Disk/Core/ventoy_util.h index 72cec62..a5e4c8b 100644 --- a/LinuxGUI/Ventoy2Disk/Core/ventoy_util.h +++ b/LinuxGUI/Ventoy2Disk/Core/ventoy_util.h @@ -20,6 +20,9 @@ #ifndef __VENTOY_UTIL_H__ #define __VENTOY_UTIL_H__ +extern char g_log_file[PATH_MAX]; +extern char g_ini_file[PATH_MAX]; + #define check_free(p) if (p) free(p) #define vtoy_safe_close_fd(fd) \ {\ @@ -47,6 +50,8 @@ int ventoy_read_file_to_buf(const char *FileName, int ExtLen, void **Bufer, int const char * ventoy_get_local_version(void); int ventoy_fill_gpt(uint64_t size, uint64_t reserve, int align4k, VTOY_GPT_INFO *gpt); int ventoy_fill_mbr(uint64_t size, uint64_t reserve, int align4k, MBR_HEAD *pMBR); +int VentoyGetLocalBootImg(MBR_HEAD *pMBR); +int ventoy_fill_mbr_4k(uint64_t size, uint64_t reserve, int align4k, MBR_HEAD *pMBR); #endif /* __VENTOY_UTIL_H__ */