summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/git2.h1
-rw-r--r--include/git2/indexer.h15
2 files changed, 16 insertions, 0 deletions
diff --git a/include/git2.h b/include/git2.h
index 35e48b240..96de524e7 100644
--- a/include/git2.h
+++ b/include/git2.h
@@ -60,5 +60,6 @@
#include "git2/net.h"
#include "git2/transport.h"
#include "git2/status.h"
+#include "git2/indexer.h"
#endif
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
new file mode 100644
index 000000000..be1752027
--- /dev/null
+++ b/include/git2/indexer.h
@@ -0,0 +1,15 @@
+#ifndef _INCLUDE_git_indexer_h__
+#define _INCLUDE_git_indexer_h__
+
+typedef struct git_pack_indexer {
+ struct pack_file *pack;
+ git_vector objects;
+ git_vector deltas;
+ struct stat st;
+} git_pack_indexer;
+
+GIT_EXTERN(int) git_pack_indexer_new(git_pack_indexer **out, const char *packname);
+GIT_EXTERN(void) git_pack_indexer_free(git_pack_indexer *idx)
+
+
+#endif