odb_mempack: use an out param

This commit is contained in:
Edward Thomson
2024-12-09 22:36:10 +00:00
parent b190162f3e
commit 4bb69b0827
3 changed files with 22 additions and 7 deletions

View File

@@ -104,10 +104,11 @@ GIT_EXTERN(int) git_mempack_reset(git_odb_backend *backend);
/**
* Get the total number of objects in mempack
*
* @param count The count of objects in the mempack
* @param backend The mempack backend
* @return the number of objects in the mempack, -1 on error
* @return 0 on success, or -1 on error
*/
GIT_EXTERN(int) git_mempack_object_count(git_odb_backend *backend);
GIT_EXTERN(int) git_mempack_object_count(size_t *count, git_odb_backend *backend);
GIT_END_DECL