diff options
| author | Han-Wen Nienhuys <hanwen@google.com> | 2021-10-07 20:25:00 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-10-08 10:45:48 -0700 |
| commit | ef8a6c62687984f2562463286e60ec1c66242b5c (patch) | |
| tree | d4b9322abac1374099c652e77db52c14bf1a07c3 /reftable/system.h | |
| parent | 890044708dcc6144aac928f3592cb8fa64ac0580 (diff) | |
| download | git-ef8a6c62687984f2562463286e60ec1c66242b5c.tar.gz | |
reftable: utility functions
This commit provides basic utility classes for the reftable library.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/system.h')
| -rw-r--r-- | reftable/system.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/reftable/system.h b/reftable/system.h new file mode 100644 index 0000000000..4907306c0c --- /dev/null +++ b/reftable/system.h @@ -0,0 +1,32 @@ +/* +Copyright 2020 Google LLC + +Use of this source code is governed by a BSD-style +license that can be found in the LICENSE file or at +https://developers.google.com/open-source/licenses/bsd +*/ + +#ifndef SYSTEM_H +#define SYSTEM_H + +/* This header glues the reftable library to the rest of Git */ + +#include "git-compat-util.h" +#include "strbuf.h" +#include "hash.h" /* hash ID, sizes.*/ +#include "dir.h" /* remove_dir_recursively, for tests.*/ + +#include <zlib.h> + +#ifdef NO_UNCOMPRESS2 +/* + * This is uncompress2, which is only available in zlib >= 1.2.9 + * (released as of early 2017) + */ +int uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, + uLong *sourceLen); +#endif + +int hash_size(uint32_t id); + +#endif |
