MiniVHD: Add convenience functions to public API. Patch from shermanp.
This commit is contained in:
parent
c7e5dd93b4
commit
22e7faaabc
3 changed files with 45 additions and 3 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "libxml2_encoding.h"
|
||||
#include "minivhd_internal.h"
|
||||
#include "minivhd_util.h"
|
||||
#include "minivhd.h"
|
||||
|
||||
const char MVHD_CONECTIX_COOKIE[] = "conectix";
|
||||
const char MVHD_CREATOR[] = "pcem";
|
||||
|
|
@ -186,6 +187,10 @@ MVHDGeom mvhd_get_geometry(MVHDMeta* vhdm) {
|
|||
return geometry;
|
||||
}
|
||||
|
||||
uint64_t mvhd_get_current_size(MVHDMeta* vhdm) {
|
||||
return vhdm->footer.curr_sz;
|
||||
}
|
||||
|
||||
uint32_t mvhd_gen_footer_checksum(MVHDFooter* footer) {
|
||||
uint32_t new_chk = 0;
|
||||
uint32_t orig_chk = footer->checksum;
|
||||
|
|
|
|||
Loading…
Reference in a new issue