DEBUG("Extracting image %d", image);
int ret;
- ret = wimlib_select_image(w, image);
+ ret = select_wim_image(w, image);
if (ret != 0)
return ret;
/* Change the current image to the new one. There should not be any
* ways for this to fail, since the image is valid and the dentry tree
* is already in memory. */
- ret = wimlib_select_image(w, w->hdr.image_count);
+ ret = select_wim_image(w, w->hdr.image_count);
wimlib_assert(ret == 0);
return ret;
out_free_metadata_lte:
src_wim->lookup_table = joined_tab;
}
- ret = wimlib_select_image(src_wim, src_image);
+ ret = select_wim_image(src_wim, src_image);
if (ret != 0) {
ERROR("Could not select image %d from the WIM `%s' "
"to export it", src_image, src_wim->filename);
/* Even if the dentry tree is not allocated, we must select it (and
* therefore allocate it) so that we can decrement the reference counts
* in the lookup table. */
- ret = wimlib_select_image(w, image);
+ ret = select_wim_image(w, image);
if (ret != 0)
return ret;
wim->lookup_table = joined_tab;
}
- ret = wimlib_select_image(wim, image);
+ ret = select_wim_image(wim, image);
if (ret != 0)
goto out;
w->lookup_table = joined_tab;
}
- ret = wimlib_select_image(w, image);
+ ret = select_wim_image(w, image);
if (ret != 0)
goto out;
end = image;
}
for (; i <= end; i++) {
- ret = wimlib_select_image(w, i);
+ ret = select_wim_image(w, i);
if (ret != 0)
return ret;
ret = visitor(w);
return w->hdr.image_count;
}
-int wimlib_select_image(WIMStruct *w, int image)
+int select_wim_image(WIMStruct *w, int image)
{
struct image_metadata *imd;
/* wim.c */
extern WIMStruct *new_wim_struct();
-extern int wimlib_select_image(WIMStruct *w, int image);
+extern int select_wim_image(WIMStruct *w, int image);
extern int wim_hdr_flags_compression_type(int wim_hdr_flags);
extern int for_image(WIMStruct *w, int image, int (*visitor)(WIMStruct *));