import-dkr.h revision 91f4347ef7bde17418b365ed3a97a752fe65bd50
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer This file is part of systemd.
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer Copyright 2014 Lennart Poettering
0d6e798a784ef0ba6b95512e4453067b2f84a91aHarald Hoyer systemd is free software; you can redistribute it and/or modify it
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer under the terms of the GNU Lesser General Public License as published by
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier the Free Software Foundation; either version 2.1 of the License, or
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier (at your option) any later version.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier systemd is distributed in the hope that it will be useful, but
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier WITHOUT ANY WARRANTY; without even the implied warranty of
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier Lesser General Public License for more details.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier You should have received a copy of the GNU Lesser General Public License
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier along with systemd; If not, see <http://www.gnu.org/licenses/>.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevaliertypedef void (*dkr_import_on_finished)(DkrImport *import, int error, void *userdata);
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierint dkr_import_new(DkrImport **import, sd_event *event, dkr_import_on_finished on_finished, void *userdata);
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierDkrImport* dkr_import_unref(DkrImport *import);
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierDEFINE_TRIVIAL_CLEANUP_FUNC(DkrImport*, dkr_import_unref);
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierint dkr_import_pull(DkrImport *import, const char *index_url, const char *name, const char *tag, const char *local, bool force_local);
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierint dkr_import_cancel(DkrImport *import, const char *name);