Blame


1 79b11c62 2018-03-09 stsp /*
2 79b11c62 2018-03-09 stsp * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
3 79b11c62 2018-03-09 stsp *
4 79b11c62 2018-03-09 stsp * Permission to use, copy, modify, and distribute this software for any
5 79b11c62 2018-03-09 stsp * purpose with or without fee is hereby granted, provided that the above
6 79b11c62 2018-03-09 stsp * copyright notice and this permission notice appear in all copies.
7 79b11c62 2018-03-09 stsp *
8 79b11c62 2018-03-09 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 79b11c62 2018-03-09 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 79b11c62 2018-03-09 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 79b11c62 2018-03-09 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 79b11c62 2018-03-09 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 79b11c62 2018-03-09 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 79b11c62 2018-03-09 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 79b11c62 2018-03-09 stsp */
16 79b11c62 2018-03-09 stsp
17 79b11c62 2018-03-09 stsp #define GOT_PACKIDX_CACHE_SIZE 64
18 79b11c62 2018-03-09 stsp
19 79b11c62 2018-03-09 stsp struct got_repository {
20 79b11c62 2018-03-09 stsp char *path;
21 79b11c62 2018-03-09 stsp
22 79b11c62 2018-03-09 stsp /* The pack index cache speeds up search for packed objects. */
23 79b11c62 2018-03-09 stsp struct got_packidx_v2_hdr *packidx_cache[GOT_PACKIDX_CACHE_SIZE];
24 79b11c62 2018-03-09 stsp };
25 79b11c62 2018-03-09 stsp