Sync 'ds/multi-pack-index' to v2.19.0-rc0
[gitweb.git] / midx.h
diff --git a/midx.h b/midx.h
index 377838c9ca2724b34b1b85eeb1402b8b402dfc22..e3b07f15862a75823e3a4ec81db8e87af86fc527 100644 (file)
--- a/midx.h
+++ b/midx.h
@@ -31,9 +31,14 @@ struct multi_pack_index {
 
 struct multi_pack_index *load_multi_pack_index(const char *object_dir);
 int bsearch_midx(const struct object_id *oid, struct multi_pack_index *m, uint32_t *result);
+struct object_id *nth_midxed_object_oid(struct object_id *oid,
+                                       struct multi_pack_index *m,
+                                       uint32_t n);
 int fill_midx_entry(const struct object_id *oid, struct pack_entry *e, struct multi_pack_index *m);
+int midx_contains_pack(struct multi_pack_index *m, const char *idx_name);
 int prepare_multi_pack_index_one(struct repository *r, const char *object_dir);
 
 int write_midx_file(const char *object_dir);
+void clear_midx_file(const char *object_dir);
 
 #endif