summaryrefslogtreecommitdiff
path: root/include/git2/pack.h
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2019-06-13 20:17:01 +0200
committerEtienne Samson <samson.etienne@gmail.com>2019-06-15 16:15:50 +0200
commit764196fffb76b5ddefb378910877c737778cb500 (patch)
tree3571b27b97798edb755010bd9b6f5237e9c9c22c /include/git2/pack.h
parent2376fa6c65a80e23d24393328212a80765d7ba94 (diff)
downloadlibgit2-764196fffb76b5ddefb378910877c737778cb500.tar.gz
doc: add missing documentation comments
Diffstat (limited to 'include/git2/pack.h')
-rw-r--r--include/git2/pack.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/pack.h b/include/git2/pack.h
index 08d2caff1..922a3cd9d 100644
--- a/include/git2/pack.h
+++ b/include/git2/pack.h
@@ -179,6 +179,16 @@ GIT_EXTERN(int) git_packbuilder_write(
*/
GIT_EXTERN(const git_oid *) git_packbuilder_hash(git_packbuilder *pb);
+/**
+ * Callback used to iterate over packed objects
+ *
+ * @see git_packbuilder_foreach
+ *
+ * @param buf A pointer to the object's data
+ * @param size The size of the underlying object
+ * @param payload Payload passed to git_packbuilder_foreach
+ * @return non-zero to terminate the iteration
+ */
typedef int GIT_CALLBACK(git_packbuilder_foreach_cb)(void *buf, size_t size, void *payload);
/**