Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-27 21:49:16 +0400
committerBen Straub <bs@github.com>2012-11-28 01:18:30 +0400
commit2e76b5fc84b7aa3877ef6b8251b7ba15eac1b2de (patch)
tree8ed9bae64f9557c0560734ccfb7c1b87a688a853 /src/odb.c
parentde5596bfd683273d60e8865626a064c6c1ece321 (diff)
API updates for odb.h
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odb.c b/src/odb.c
index 9c602d1d2..e622eb076 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -683,14 +683,14 @@ int git_odb_read_prefix(
return 0;
}
-int git_odb_foreach(git_odb *db, int (*cb)(git_oid *oid, void *data), void *data)
+int git_odb_foreach(git_odb *db, git_odb_foreach_cb cb, void *payload)
{
unsigned int i;
backend_internal *internal;
git_vector_foreach(&db->backends, i, internal) {
git_odb_backend *b = internal->backend;
- int error = b->foreach(b, cb, data);
+ int error = b->foreach(b, cb, payload);
if (error < 0)
return error;
}