Added some more signatures to implement
This commit is contained in:
parent
4d9e89e48f
commit
ab244698c5
20
src/entry.h
20
src/entry.h
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user