import-util.h revision 0d6e763b48cabe8899a20823b015c9a988e38659
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen#pragma once
551b849ce88d596dc52dda2f78229a932b339c78Lubos Kosco
551b849ce88d596dc52dda2f78229a932b339c78Lubos Kosco/***
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen This file is part of systemd.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye Copyright 2015 Lennart Poettering
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye systemd is free software; you can redistribute it and/or modify it
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye under the terms of the GNU Lesser General Public License as published by
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye the Free Software Foundation; either version 2.1 of the License, or
afb218f076cae538126a5f931299a82a114a075aKnut Anders Hatlen (at your option) any later version.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye systemd is distributed in the hope that it will be useful, but
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye WITHOUT ANY WARRANTY; without even the implied warranty of
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye Lesser General Public License for more details.
afb218f076cae538126a5f931299a82a114a075aKnut Anders Hatlen
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye You should have received a copy of the GNU Lesser General Public License
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye along with systemd; If not, see <http://www.gnu.org/licenses/>.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye***/
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#include <stdbool.h>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyebool http_etag_is_valid(const char *etag);
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeint import_make_local_copy(const char *final, const char *root, const char *local, bool force_local);
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlenint import_find_old_etags(const char *url, const char *root, int dt, const char *prefix, const char *suffix, char ***etags);
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeint import_make_read_only_fd(int fd);
2ee41fb5c7467f453a1282e3afdfacdd4aa4e6b8Trond Norbyeint import_make_read_only(const char *path);
2ee41fb5c7467f453a1282e3afdfacdd4aa4e6b8Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeint import_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret);
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye