summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-19 12:48:33 -0700
committerRussell Belfer <rb@github.com>2013-04-21 11:50:55 -0700
commit83cc70d9fec5f81d07f9fc4133c9515527efb9af (patch)
treea3ddac356c641e6accf8396d08afbebb7bb52336 /include/git2/indexer.h
parent83041c711cd7d9fccb7a1327e642ce33f0705370 (diff)
downloadlibgit2-83cc70d9fec5f81d07f9fc4133c9515527efb9af.tar.gz
Move odb_backend implementors stuff into git2/sys
This moves some of the odb_backend stuff that is related to the internals of an odb_backend implementation into include/git2/sys. Some of the stuff related to streaming I left in include/git2 because it seemed like it would be reasonably needed by a normal user who wanted to stream objects into and out of the ODB. Also, I added APIs for traversing the list of backends so that some of the tests would not need to access ODB internals.
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index dfe6ae5aa..262dcd154 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -8,31 +8,11 @@
#define _INCLUDE_git_indexer_h__
#include "common.h"
+#include "types.h"
#include "oid.h"
GIT_BEGIN_DECL
-/**
- * This is passed as the first argument to the callback to allow the
- * user to see the progress.
- */
-typedef struct git_transfer_progress {
- unsigned int total_objects;
- unsigned int indexed_objects;
- unsigned int received_objects;
- size_t received_bytes;
-} git_transfer_progress;
-
-
-/**
- * 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 int (*git_transfer_progress_callback)(const git_transfer_progress *stats, void *payload);
-
typedef struct git_indexer_stream git_indexer_stream;
/**