Blame


1 6ab857d5 2024-01-23 op /*
2 d35e18b3 2024-02-04 op * Copyright (c) 2021, 2022, 2024 Omar Polo <op@omarpolo.com>
3 6ab857d5 2024-01-23 op *
4 6ab857d5 2024-01-23 op * Permission to use, copy, modify, and distribute this software for any
5 6ab857d5 2024-01-23 op * purpose with or without fee is hereby granted, provided that the above
6 6ab857d5 2024-01-23 op * copyright notice and this permission notice appear in all copies.
7 6ab857d5 2024-01-23 op *
8 6ab857d5 2024-01-23 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 6ab857d5 2024-01-23 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 6ab857d5 2024-01-23 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 6ab857d5 2024-01-23 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 6ab857d5 2024-01-23 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 6ab857d5 2024-01-23 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 6ab857d5 2024-01-23 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 6ab857d5 2024-01-23 op */
16 6ab857d5 2024-01-23 op
17 6ab857d5 2024-01-23 op #ifndef FS_H
18 6ab857d5 2024-01-23 op #define FS_H
19 6ab857d5 2024-01-23 op
20 6ab857d5 2024-01-23 op struct tab;
21 6ab857d5 2024-01-23 op struct tofu_entry;
22 6ab857d5 2024-01-23 op
23 6ab857d5 2024-01-23 op extern char config_path_base[PATH_MAX];
24 6ab857d5 2024-01-23 op extern char data_path_base[PATH_MAX];
25 6ab857d5 2024-01-23 op extern char cache_path_base[PATH_MAX];
26 6ab857d5 2024-01-23 op
27 6ab857d5 2024-01-23 op extern char ctlsock_path[PATH_MAX];
28 6ab857d5 2024-01-23 op extern char config_path[PATH_MAX];
29 6ab857d5 2024-01-23 op extern char lockfile_path[PATH_MAX];
30 6ab857d5 2024-01-23 op extern char bookmark_file[PATH_MAX];
31 6ab857d5 2024-01-23 op extern char known_hosts_file[PATH_MAX], known_hosts_tmp[PATH_MAX];
32 6ab857d5 2024-01-23 op extern char crashed_file[PATH_MAX];
33 6ab857d5 2024-01-23 op extern char session_file[PATH_MAX], session_file_tmp[PATH_MAX];
34 6ab857d5 2024-01-23 op extern char history_file[PATH_MAX], history_file_tmp[PATH_MAX];
35 f0e62b85 2024-02-15 op extern char cert_dir[PATH_MAX], cert_dir_tmp[PATH_MAX];
36 6541a7ed 2024-02-05 op extern char certs_file[PATH_MAX], certs_file_tmp[PATH_MAX];
37 6ab857d5 2024-01-23 op
38 6ab857d5 2024-01-23 op extern char cwd[PATH_MAX];
39 6ab857d5 2024-01-23 op
40 6ab857d5 2024-01-23 op int fs_init(void);
41 6ab857d5 2024-01-23 op void fs_load_url(struct tab *, const char *);
42 6ab857d5 2024-01-23 op
43 6ab857d5 2024-01-23 op #endif