* along with wimlib; if not, see http://www.gnu.org/licenses/.
*/
-#include "wimlib_internal.h"
-#include "io.h"
-#include "lookup_table.h"
-#include "xml.h"
+#include "config.h"
#include <stdlib.h>
+#include <stdarg.h>
#ifdef WITH_NTFS_3G
#include <ntfs-3g/volume.h>
#endif
+#include "wimlib_internal.h"
+#include "io.h"
+#include "lookup_table.h"
+#include "xml.h"
+
+
static int print_metadata(WIMStruct *w)
{
print_security_data(wim_security_data(w));
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;
destroy_image_metadata(imd, NULL);
imd->root_dentry = NULL;
imd->security_data = NULL;
- imd->lgt = NULL;
}
}
if (!image_name_or_num)
return WIM_NO_IMAGE;
- if (strcmp(image_name_or_num, "all") == 0)
+ if (strcmp(image_name_or_num, "all") == 0
+ || strcmp(image_name_or_num, "*") == 0)
return WIM_ALL_IMAGES;
image = strtol(image_name_or_num, &p, 10);
if (p != image_name_or_num && *p == '\0') {
if (!w)
return WIMLIB_ERR_INVALID_PARAM;
if (w->hdr.part_number != 1) {
- ERROR("We cannot show the metadata from part %hu of a %hu-part split WIM",
+ ERROR("We cannot show the metadata from part %hu of a %hu-part split WIM.",
w->hdr.part_number, w->hdr.total_parts);
ERROR("Select the first part of the split WIM to see the metadata.");
return WIMLIB_ERR_SPLIT_UNSUPPORTED;