Blame


1 142012ed 2022-10-20 thomas /*
2 142012ed 2022-10-20 thomas * Copyright (c) 2022 Stefan Sperling <stsp@openbsd.org>
3 142012ed 2022-10-20 thomas *
4 142012ed 2022-10-20 thomas * Permission to use, copy, modify, and distribute this software for any
5 142012ed 2022-10-20 thomas * purpose with or without fee is hereby granted, provided that the above
6 142012ed 2022-10-20 thomas * copyright notice and this permission notice appear in all copies.
7 142012ed 2022-10-20 thomas *
8 142012ed 2022-10-20 thomas * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 142012ed 2022-10-20 thomas * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 142012ed 2022-10-20 thomas * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 142012ed 2022-10-20 thomas * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 142012ed 2022-10-20 thomas * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 142012ed 2022-10-20 thomas * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 142012ed 2022-10-20 thomas * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 142012ed 2022-10-20 thomas */
16 142012ed 2022-10-20 thomas
17 142012ed 2022-10-20 thomas typedef const struct got_error *(got_pack_index_progress_cb)(void *,
18 eebe1fbb 2022-10-20 thomas uint32_t nobj_total, uint32_t nobj_indexed, uint32_t nobj_loose,
19 eebe1fbb 2022-10-20 thomas uint32_t nobj_resolved);
20 142012ed 2022-10-20 thomas
21 b16893ba 2023-02-24 thomas const struct got_error *got_pack_hwrite(int, void *, int, struct got_hash *);
22 3efd8e31 2022-10-23 thomas
23 142012ed 2022-10-20 thomas const struct got_error *
24 142012ed 2022-10-20 thomas got_pack_index(struct got_pack *pack, int idxfd,
25 142012ed 2022-10-20 thomas FILE *tmpfile, FILE *delta_base_file, FILE *delta_accum_file,
26 142012ed 2022-10-20 thomas uint8_t *pack_sha1_expected,
27 aecd2225 2022-10-20 thomas got_pack_index_progress_cb progress_cb, void *progress_arg,
28 aecd2225 2022-10-20 thomas struct got_ratelimit *rl);