Added some more signatures to implement

This commit is contained in:
Alexei KADIR 2024-02-17 01:44:37 +01:00
parent 4d9e89e48f
commit ab244698c5
3 changed files with 25 additions and 5 deletions

View File

@ -29,3 +29,23 @@ Result entry_exists(const char* entry_id, bool* out_exists);
/// @param entry_id The entry id.
/// @return The result of the operation.
Result add_entry(const char* entry_id);
/// @brief Removes an entry from the entry pool.
/// @param entry_id The entry id.
/// @return The result of the operation.
Result remove_entry(const char* entry_id);
/// @brief Lists the entries in the entry pool.
/// @param out_entries The pointer to the null-terminated output entries array. The caller is responsible for freeing the memory of the array and its elements.
/// @return The result of the operation.
Result list_entries(char*** out_entries);
/// @brief Removes all the entries from the entry pool.
/// @return The result of the operation.
Result clear_entries(void);
/// @brief Gets the path of the disk of the given entry.
/// @param entry_id The entry id.
/// @param out_path The pointer to the output path string. The caller is responsible for freeing the memory.
/// @return The result of the operation.
Result get_entry_disk_path(const char* entry_id, char** out_path);

View File

@ -122,7 +122,7 @@ int command_add_entry(int argc, char* argv[]) {
return result;
// Add the disk to the entry
// TODO
// If this fails, remove the entry
return EXIT_SUCCESS;