X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fimport%2Fpull-dkr.h;fp=src%2Fimport%2Fimport-dkr.h;h=4c4b10c7acb65987776684da97dce9876861a74d;hp=633c767965dc678dff76b185a1af53f9f26fe923;hb=dc2c282b6aac820a3c27d8a7a68c0386300db663;hpb=cc22955cfefb4bd6e7a135f1ec95fb5a07ba9ce3 diff --git a/src/import/import-dkr.h b/src/import/pull-dkr.h similarity index 63% rename from src/import/import-dkr.h rename to src/import/pull-dkr.h index 633c76796..4c4b10c7a 100644 --- a/src/import/import-dkr.h +++ b/src/import/pull-dkr.h @@ -24,13 +24,13 @@ #include "sd-event.h" #include "util.h" -typedef struct DkrImport DkrImport; +typedef struct DkrPull DkrPull; -typedef void (*DkrImportFinished)(DkrImport *import, int error, void *userdata); +typedef void (*DkrPullFinished)(DkrPull *pull, int error, void *userdata); -int dkr_import_new(DkrImport **import, sd_event *event, const char *index_url, const char *image_root, DkrImportFinished on_finished, void *userdata); -DkrImport* dkr_import_unref(DkrImport *import); +int dkr_pull_new(DkrPull **pull, sd_event *event, const char *index_url, const char *image_root, DkrPullFinished on_finished, void *userdata); +DkrPull* dkr_pull_unref(DkrPull *pull); -DEFINE_TRIVIAL_CLEANUP_FUNC(DkrImport*, dkr_import_unref); +DEFINE_TRIVIAL_CLEANUP_FUNC(DkrPull*, dkr_pull_unref); -int dkr_import_pull(DkrImport *import, const char *name, const char *tag, const char *local, bool force_local); +int dkr_pull_start(DkrPull *pull, const char *name, const char *tag, const char *local, bool force_local);