Skip to content

Commit

Permalink
Merge pull request #89 from larsewi/harmony
Browse files Browse the repository at this point in the history
CFE-4195: Added doc strings to head.h
  • Loading branch information
larsewi authored Jan 21, 2025
2 parents 612a3d3 + 92e11be commit f664b54
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/head.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@

#include <stdbool.h>

/**
* @brief Get the reference stored in the HEAD file
* @param name The name of the HEAD file
* @param work_dir The leech working directory
* @return The reference (block identifier) of the head of the chain or NULL in
* case of failure
* @note The HEAD file should always contain a reference to the head of the
* chain
*/
char *LCH_HeadGet(const char *name, const char *work_dir);

/**
* @brief Set the reference stored in the HEAD file
* @param name The name of the HEAD file
* @param work_dir The leech working directory
* @param block_id The reference (block identifier)
* @return False in case of failure
* @note The HEAD file should always contain a reference to the head of the
* chain
*/
bool LCH_HeadSet(const char *name, const char *work_dir, const char *block_id);

#endif // _LEECH_HEAD_H

0 comments on commit f664b54

Please sign in to comment.