/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include "import-common.h"
#include "pull-forward.h"

int oci_pull_new(OciPull **ret, sd_event *event, const char *image_root, OciPullFinished on_finished, void *userdata);
OciPull* oci_pull_unref(OciPull *i);

DEFINE_TRIVIAL_CLEANUP_FUNC(OciPull*, oci_pull_unref);

int oci_pull_start(OciPull *i, const char *ref, const char *local, ImportFlags flags);
