typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
dt_import_onconflict_t
Behaviour when a copy-on-import destination path already exists.
@ DT_IMPORT_ONCONFLICT_UNIQUE
@ DT_IMPORT_ONCONFLICT_SKIP
@ DT_IMPORT_ONCONFLICT_OVERWRITE
gchar * dt_build_filename_from_pattern(const char *const filename, const int index, dt_image_t *img, dt_control_import_t *data)
Build a full path for a given image file, given a pattern.
int dt_control_import(dt_control_import_t data)
Process a list of images to import with or without copying the files on an arbitrary hard-drive.
void dt_control_import_data_free(dt_control_import_t *data)
dt_import_onconflict_t on_conflict
GDestroyNotify callback_data_free
void(* file_imported)(const char *source, gboolean success, gpointer user_data)
Optional per-file completion method.
char * target_file_pattern
char * target_subfolder_pattern