import-util.h revision 85dbc41dc67ff49fd8a843dbac5b8b5cb0b61155
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen This file is part of systemd.
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen Copyright 2015 Lennart Poettering
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen systemd is free software; you can redistribute it and/or modify it
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen under the terms of the GNU Lesser General Public License as published by
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen the Free Software Foundation; either version 2.1 of the License, or
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen (at your option) any later version.
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen systemd is distributed in the hope that it will be useful, but
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen WITHOUT ANY WARRANTY; without even the implied warranty of
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen Lesser General Public License for more details.
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen You should have received a copy of the GNU Lesser General Public License
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensen along with systemd; If not, see <http://www.gnu.org/licenses/>.
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poetteringbool http_etag_is_valid(const char *etag);
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poetteringint import_make_local_copy(const char *final, const char *root, const char *local, bool force_local);
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensenint import_find_old_etags(const char *url, const char *root, int dt, const char *prefix, const char *suffix, char ***etags);
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensenint import_make_read_only(const char *path);
3b3154df7e2773332bb814e167187367a0ccae4aLennart Poetteringint import_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret);
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensenint import_url_last_component(const char *url, char **ret);
40b71e89bae4e51768db4dc50ec64c1e9c96eec4Sebastian Thorarensenint import_url_change_last_component(const char *url, const char *suffix, char **ret);