Commit 3d74702eec07f2208211a72581c115340517ea4b

Carlos Martín Nieto 2013-03-05T23:50:43

Make sure docurium can see git_packbuilder_foreach

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/include/git2/pack.h b/include/git2/pack.h
index b8cf77a..2f033be 100644
--- a/include/git2/pack.h
+++ b/include/git2/pack.h
@@ -104,6 +104,7 @@ GIT_EXTERN(int) git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid *
  */
 GIT_EXTERN(int) git_packbuilder_write(git_packbuilder *pb, const char *file);
 
+typedef int (*git_packbuilder_foreach_cb)(void *buf, size_t size, void *payload);
 /**
  * Create the new pack and pass each object to the callback
  *
@@ -112,7 +113,6 @@ GIT_EXTERN(int) git_packbuilder_write(git_packbuilder *pb, const char *file);
  * @param payload the callback's data
  * @return 0 or an error code
  */
-typedef int (*git_packbuilder_foreach_cb)(void *buf, size_t size, void *payload);
 GIT_EXTERN(int) git_packbuilder_foreach(git_packbuilder *pb, git_packbuilder_foreach_cb cb, void *payload);
 
 /**