pull: introduce pull-forward.h
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
/* 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,
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* 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);
|
||||
@@ -15,7 +15,6 @@
|
||||
#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"
|
||||
|
||||
+1
-10
@@ -1,19 +1,10 @@
|
||||
/* 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,
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#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"
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
/* 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);
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
/* 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);
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
/* 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);
|
||||
|
||||
Reference in New Issue
Block a user