summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-07-28 23:35:39 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-08-03 14:02:41 +0200
commitb7c44096ae12c47085978a4992d4f8cdf7946db4 (patch)
treee27a123be645a8ebd855d96c38580032a7e9113f /include/git2/indexer.h
parentbcf21c556c2bbc46a93e81a19c5f9112dfb8f2c8 (diff)
downloadlibgit2-b7c44096ae12c47085978a4992d4f8cdf7946db4.tar.gz
Implement the indexer
Only v2 index files are supported. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index f32b1ef6b..1f59ee314 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -2,6 +2,7 @@
#define _INCLUDE_git_indexer_h__
#include "git2/common.h"
+#include "git2/oid.h"
typedef struct git_indexer_stats {
unsigned int total;
@@ -12,7 +13,8 @@ typedef struct git_indexer_stats {
typedef struct git_indexer git_indexer;
GIT_EXTERN(int) git_indexer_new(git_indexer **out, const char *packname);
-GIT_EXTERN(int) git_indexer_run(git_indexer *idx, int (*cb)(const git_indexer_stats *, void *), void *data);
+GIT_EXTERN(int) git_indexer_run(git_indexer *idx, git_indexer_stats *stats);
+GIT_EXTERN(const git_oid *) git_indexer_result(git_indexer *idx);
GIT_EXTERN(void) git_indexer_free(git_indexer *idx);