chiark / gitweb /
import: rename download code from "import" to "pull"
[elogind.git] / src / import / pull-dkr.h
similarity index 63%
rename from src/import/import-dkr.h
rename to src/import/pull-dkr.h
index 633c767965dc678dff76b185a1af53f9f26fe923..4c4b10c7acb65987776684da97dce9876861a74d 100644 (file)
 #include "sd-event.h"
 #include "util.h"
 
 #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);