Code

15d3b6b984f37735686a63eeb4eb64e7d95cb3d2
[git.git] / sha1-array.h
1 #ifndef SHA1_ARRAY_H
2 #define SHA1_ARRAY_H
4 struct sha1_array {
5         unsigned char (*sha1)[20];
6         int nr;
7         int alloc;
8         int sorted;
9 };
11 #define SHA1_ARRAY_INIT { NULL, 0, 0, 0 }
13 void sha1_array_append(struct sha1_array *array, const unsigned char *sha1);
14 void sha1_array_sort(struct sha1_array *array);
15 int sha1_array_lookup(struct sha1_array *array, const unsigned char *sha1);
16 void sha1_array_clear(struct sha1_array *array);
18 #endif /* SHA1_ARRAY_H */