Added some more unimplemented functions

This commit is contained in:
2024-02-15 00:34:48 +01:00
parent 07e04889a5
commit 7d826ccb99
4 changed files with 36 additions and 1 deletions

View File

@@ -20,6 +20,12 @@ bool create_backed_disk(const char* disk, const char* backing);
/// @return true if the disk is packed, otherwise false.
bool pack_disk(const char* disk);
/// @brief Moves the backing file of a disk.
/// @param disk The path to the disk, which exists.
/// @param backing The path to the new backing file, which exists.
/// @return true if the backing file is moved, otherwise false.
bool move_backing_file(const char* disk, const char* backing);
/// @brief Gets the backing file of a disk.
/// @param disk The path to the disk, which exists.
/// @return The backing file of the disk. The caller is responsible for freeing the returned string. This function can return NULL.