diff options
| author | Russell Belfer <rb@github.com> | 2013-02-12 10:13:56 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-02-12 10:13:56 -0800 |
| commit | 9c258af094aec53b8e4bcaabe1e2f054ba385982 (patch) | |
| tree | 384be2f6ea9c70b02f60ab48cfa492a846d496f3 /include/git2 | |
| parent | 40a605104c2060c2bc5a08dfb62cafe473baeb21 (diff) | |
| parent | ea57f66b5786704448152ebd95139802826bef1d (diff) | |
| download | libgit2-9c258af094aec53b8e4bcaabe1e2f054ba385982.tar.gz | |
Merge pull request #1316 from ben/clone-cancel
Allow network operations to cancel
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/indexer.h | 8 |
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; |
