/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "shared-forward.h"
#include "import-common.h"
#include "import-util.h"
-#include "pull-job.h"
-
-typedef struct CurlGlue CurlGlue;
-typedef struct PullJob PullJob;
+#include "pull-forward.h"
int pull_find_old_etags(
const char *url,
--- /dev/null
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include "shared-forward.h"
+
+typedef enum PullJobState PullJobState;
+
+typedef struct PullJob PullJob;
+
+typedef struct OciPull OciPull;
+typedef struct RawPull RawPull;
+typedef struct TarPull TarPull;
+
+typedef void (*PullJobFinished)(PullJob *job);
+typedef int (*PullJobOpenDisk)(PullJob *job);
+typedef int (*PullJobHeader)(PullJob *job, const char *header, size_t sz);
+typedef void (*PullJobProgress)(PullJob *job);
+typedef int (*PullJobNotFound)(PullJob *job, char **ret_new_url);
+
+typedef void (*OciPullFinished)(OciPull *pull, int error, void *userdata);
+typedef void (*RawPullFinished)(RawPull *p, int error, void *userdata);
+typedef void (*TarPullFinished)(TarPull *p, int error, void *userdata);
#include "io-util.h"
#include "log.h"
#include "parse-util.h"
-#include "pull-common.h"
#include "pull-job.h"
#include "string-util.h"
#include "strv.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include <curl/curl.h>
#include <sys/stat.h>
#include <sys/uio.h>
-#include "shared-forward.h"
-
-typedef struct PullJob PullJob;
-
-typedef void (*PullJobFinished)(PullJob *job);
-typedef int (*PullJobOpenDisk)(PullJob *job);
-typedef int (*PullJobHeader)(PullJob *job, const char *header, size_t sz);
-typedef void (*PullJobProgress)(PullJob *job);
-typedef int (*PullJobNotFound)(PullJob *job, char **ret_new_url);
+#include "pull-forward.h"
typedef enum PullJobState {
PULL_JOB_INIT,
#include "pidref.h"
#include "process-util.h"
#include "pull-common.h"
+#include "pull-job.h"
#include "pull-oci.h"
#include "rm-rf.h"
#include "set.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "shared-forward.h"
#include "import-common.h"
-
-typedef struct OciPull OciPull;
-
-typedef void (*OciPullFinished)(OciPull *pull, int error, void *userdata);
+#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);
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "shared-forward.h"
#include "import-common.h"
#include "import-util.h"
-
-typedef struct RawPull RawPull;
-
-typedef void (*RawPullFinished)(RawPull *p, int error, void *userdata);
+#include "pull-forward.h"
int raw_pull_new(RawPull **ret, sd_event *event, const char *image_root, RawPullFinished on_finished, void *userdata);
RawPull* raw_pull_unref(RawPull *p);
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "shared-forward.h"
#include "import-common.h"
#include "import-util.h"
-
-typedef struct TarPull TarPull;
-
-typedef void (*TarPullFinished)(TarPull *p, int error, void *userdata);
+#include "pull-forward.h"
int tar_pull_new(TarPull **ret, sd_event *event, const char *image_root, TarPullFinished on_finished, void *userdata);
TarPull* tar_pull_unref(TarPull *p);