diff options
| author | Vicent Martà <vicent@github.com> | 2012-07-12 09:42:54 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-07-12 09:42:54 -0700 |
| commit | dd4345b4247f067e282ccbcde0f0b36d3d571470 (patch) | |
| tree | 7db054c78dd6335c3308fb7ea02e82cf6c178720 /include/git2/odb_backend.h | |
| parent | 0cf6b2f29ebf9d6342bd205197938e881ccc246f (diff) | |
| parent | 521aedad307c6f72d6f6d660943508b2b015f6dd (diff) | |
| download | libgit2-dd4345b4247f067e282ccbcde0f0b36d3d571470.tar.gz | |
Merge pull request #789 from carlosmn/odb-foreach
odb: add git_odb_foreach()
Diffstat (limited to 'include/git2/odb_backend.h')
| -rw-r--r-- | include/git2/odb_backend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h index f4620f5f4..3f67202d1 100644 --- a/include/git2/odb_backend.h +++ b/include/git2/odb_backend.h @@ -71,6 +71,12 @@ struct git_odb_backend { struct git_odb_backend *, const git_oid *); + int (*foreach)( + struct git_odb_backend *, + int (*cb)(git_oid *oid, void *data), + void *data + ); + void (* free)(struct git_odb_backend *); }; |
