Added some more signatures

This commit is contained in:
Alexei KADIR 2024-02-15 00:25:09 +01:00
parent 827b62fbcd
commit 07e04889a5
3 changed files with 18 additions and 1 deletions

View File

@ -26,6 +26,10 @@ bool backing_exists(const char* backing);
/// @return The list of backing disks. The caller is responsible for freeing the returned array and strings. This function can return NULL.
char** list_backings(void);
/// @brief Finds the latest backing disk.
/// @return The latest backing disk. The caller is responsible for freeing the returned string. This function can return NULL.
char* find_latest_backing(void);
/// @brief Creates a new backing disk.
/// @param backing_disk The disk to use as the backing disk. Warning: the disk must be part of the backing disks.
/// @return true if the backing disk was created, otherwise false.

View File

@ -25,3 +25,17 @@ bool entry_exists(const char* entry);
/// @brief Lists the entries.
/// @return The list of entries. The caller is responsible for freeing the returned array and strings. This function can return NULL.
char** list_entries(void);
/// @brief Finds the oldest entry (based on last access time).
/// @return The oldest entry. The caller is responsible for freeing the returned string. This function can return NULL.
char* find_oldest_entry(void);
/// @brief Creates a new entry.
/// @param entry The valid entry name.
/// @return true if the entry was created, otherwise false.
bool create_entry(const char* entry);
/// @brief Deletes the specified entry.
/// @param entry The valid entry name.
/// @return true if the entry was deleted, otherwise false.
bool delete_entry(const char* entry);

View File

@ -12,5 +12,4 @@
#include <libgen.h>
int main(int argc, char* argv[]) {
char** backings = list_backings();
}