Blame


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