Merge branch 'ab/checkout-branch-info-leakfix'
[git/debian.git] / reftable / system.h
blob4907306c0c5d4e13ef13ea9f89c9529a6b7a3cda
1 /*
2 Copyright 2020 Google LLC
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
9 #ifndef SYSTEM_H
10 #define SYSTEM_H
12 /* This header glues the reftable library to the rest of Git */
14 #include "git-compat-util.h"
15 #include "strbuf.h"
16 #include "hash.h" /* hash ID, sizes.*/
17 #include "dir.h" /* remove_dir_recursively, for tests.*/
19 #include <zlib.h>
21 #ifdef NO_UNCOMPRESS2
23 * This is uncompress2, which is only available in zlib >= 1.2.9
24 * (released as of early 2017)
26 int uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source,
27 uLong *sourceLen);
28 #endif
30 int hash_size(uint32_t id);
32 #endif