summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index c428d43a8..151f5b4e7 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -25,9 +25,13 @@ typedef struct git_transfer_progress {
/**
- * Type for progress callbacks during indexing
+ * Type for progress callbacks during indexing. Return a value less than zero
+ * to cancel the transfer.
+ *
+ * @param stats Structure containing information about the state of the transfer
+ * @param payload Payload provided by caller
*/
-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;