Blame


1 f7d653fc 2023-07-09 op /*
2 f7d653fc 2023-07-09 op * Copyright (c) 2023 Omar Polo <op@openbsd.org>
3 f7d653fc 2023-07-09 op *
4 f7d653fc 2023-07-09 op * Permission to use, copy, modify, and distribute this software for any
5 f7d653fc 2023-07-09 op * purpose with or without fee is hereby granted, provided that the above
6 f7d653fc 2023-07-09 op * copyright notice and this permission notice appear in all copies.
7 f7d653fc 2023-07-09 op *
8 f7d653fc 2023-07-09 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 f7d653fc 2023-07-09 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 f7d653fc 2023-07-09 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 f7d653fc 2023-07-09 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 f7d653fc 2023-07-09 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 f7d653fc 2023-07-09 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 f7d653fc 2023-07-09 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 f7d653fc 2023-07-09 op */
16 f7d653fc 2023-07-09 op
17 f7d653fc 2023-07-09 op /* A callback function which gets invoked with progress information. */
18 f7d653fc 2023-07-09 op typedef const struct got_error *(*got_load_progress_cb)(void *, off_t,
19 f7d653fc 2023-07-09 op int, int, int, int);
20 f7d653fc 2023-07-09 op
21 f7d653fc 2023-07-09 op /*
22 f7d653fc 2023-07-09 op * Load a bundle in the repository.
23 f7d653fc 2023-07-09 op */
24 f7d653fc 2023-07-09 op const struct got_error *
25 f7d653fc 2023-07-09 op got_repo_load(FILE *, struct got_pathlist_head *, struct got_repository *,
26 f7d653fc 2023-07-09 op int, int, got_load_progress_cb, void *, got_cancel_cb, void *);