summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-02-05 10:59:58 -0800
committerBen Straub <bs@github.com>2013-02-05 10:59:58 -0800
commitfe95ac1b6750a29d4a132d265ec1d050f49b69e8 (patch)
treed0cf8be4771619b04ab414f8320f3a9c6600bd21 /include/git2/indexer.h
parentde81aee3907e3737ad87e88e14b702f4b3bf12a6 (diff)
downloadlibgit2-fe95ac1b6750a29d4a132d265ec1d050f49b69e8.tar.gz
Allow progress callback to cancel fetch
This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index c428d43a8..0e62835ce 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -27,7 +27,7 @@ typedef struct git_transfer_progress {
/**
* Type for progress callbacks during indexing
*/
-typedef void (*git_transfer_progress_callback)(const git_transfer_progress *stats, void *payload);
+typedef int (*git_transfer_progress_callback)(const git_transfer_progress *stats, void *payload);
typedef struct git_indexer git_indexer;
typedef struct git_indexer_stream git_indexer_stream;