Blame


1 ad242220 2018-09-08 stsp /*
2 ad242220 2018-09-08 stsp * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
3 ad242220 2018-09-08 stsp *
4 ad242220 2018-09-08 stsp * Permission to use, copy, modify, and distribute this software for any
5 ad242220 2018-09-08 stsp * purpose with or without fee is hereby granted, provided that the above
6 ad242220 2018-09-08 stsp * copyright notice and this permission notice appear in all copies.
7 ad242220 2018-09-08 stsp *
8 ad242220 2018-09-08 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 ad242220 2018-09-08 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 ad242220 2018-09-08 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 ad242220 2018-09-08 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 ad242220 2018-09-08 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 ad242220 2018-09-08 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 ad242220 2018-09-08 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 ad242220 2018-09-08 stsp */
16 ad242220 2018-09-08 stsp
17 ad242220 2018-09-08 stsp struct got_commit_object *got_object_commit_alloc_partial(void);
18 ad242220 2018-09-08 stsp struct got_tree_entry *got_alloc_tree_entry_partial(void);
19 ad242220 2018-09-08 stsp const struct got_error *got_object_read_header_privsep(struct got_object**,
20 ad242220 2018-09-08 stsp struct got_repository *repo, int);
21 ad242220 2018-09-08 stsp const struct got_error *got_object_read_blob_privsep(size_t *, int, int,
22 ad242220 2018-09-08 stsp struct got_repository *repo);
23 ad242220 2018-09-08 stsp const struct got_error *got_object_read_commit_privsep(
24 ad242220 2018-09-08 stsp struct got_commit_object **, struct got_object *, int,
25 ad242220 2018-09-08 stsp struct got_repository *);
26 ad242220 2018-09-08 stsp const struct got_error *got_object_read_tree_privsep(struct got_tree_object **,
27 ad242220 2018-09-08 stsp struct got_object *, int, struct got_repository *);
28 ad242220 2018-09-08 stsp
29 ad242220 2018-09-08 stsp const struct got_error *got_object_parse_commit(struct got_commit_object **,
30 ad242220 2018-09-08 stsp char *, size_t);
31 ad242220 2018-09-08 stsp const struct got_error *got_object_parse_tree(struct got_tree_object **,
32 ad242220 2018-09-08 stsp uint8_t *, size_t);
33 ad242220 2018-09-08 stsp const struct got_error *got_read_file_to_mem(uint8_t **, size_t *, FILE *);
34 ad242220 2018-09-08 stsp
35 ad242220 2018-09-08 stsp void got_object_tree_entry_close(struct got_tree_entry *);
36 876c234b 2018-09-10 stsp
37 876c234b 2018-09-10 stsp struct got_pack;
38 876c234b 2018-09-10 stsp struct got_packidx;
39 876c234b 2018-09-10 stsp
40 876c234b 2018-09-10 stsp const struct got_error *got_object_packed_read_privsep(struct got_object **,
41 876c234b 2018-09-10 stsp struct got_repository *, struct got_pack *, struct got_packidx *, int,
42 876c234b 2018-09-10 stsp struct got_object_id *);