]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
56ebfaf1 LP |
2 | #pragma once |
3 | ||
4 | /*** | |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright 2015 Lennart Poettering | |
56ebfaf1 LP |
8 | ***/ |
9 | ||
10 | #include <stdbool.h> | |
11 | ||
3d7415f4 | 12 | #include "macro.h" |
98c38001 | 13 | |
8f695058 LP |
14 | typedef enum ImportVerify { |
15 | IMPORT_VERIFY_NO, | |
7f444afa | 16 | IMPORT_VERIFY_CHECKSUM, |
8f695058 LP |
17 | IMPORT_VERIFY_SIGNATURE, |
18 | _IMPORT_VERIFY_MAX, | |
19 | _IMPORT_VERIFY_INVALID = -1, | |
20 | } ImportVerify; | |
21 | ||
85dbc41d LP |
22 | int import_url_last_component(const char *url, char **ret); |
23 | int import_url_change_last_component(const char *url, const char *suffix, char **ret); | |
8f695058 LP |
24 | |
25 | const char* import_verify_to_string(ImportVerify v) _const_; | |
26 | ImportVerify import_verify_from_string(const char *s) _pure_; | |
98c38001 | 27 | |
3d7415f4 LP |
28 | int tar_strip_suffixes(const char *name, char **ret); |
29 | int raw_strip_suffixes(const char *name, char **ret); | |
30 | ||
8c9cfc28 | 31 | int import_assign_pool_quota_and_warn(const char *path); |