* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "wimlib.h"
#include "config.h"
+
+#include "wimlib.h"
+
+#include <errno.h>
#include <getopt.h>
-#include <stdlib.h>
-#include <stdarg.h>
#include <glob.h>
-#include <string.h>
-#include <errno.h>
+#include <inttypes.h>
#include <libgen.h>
#include <limits.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <inttypes.h>
#define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0]))
#define for_opt(c, opts) while ((c = getopt_long_only(argc, (char**)argv, "", \
opts, NULL)) != -1)
-
enum imagex_op_type {
APPEND,
APPLY,
case WIMLIB_PROGRESS_MSG_SCAN_BEGIN:
printf("Scanning `%s'...\n", info->scan.source);
break;
+ case WIMLIB_PROGRESS_MSG_SCAN_DENTRY:
+ if (info->scan.excluded)
+ printf("Excluding `%s' from capture\n", info->scan.cur_path);
+ else
+ printf("Scanning `%s'\n", info->scan.cur_path);
+ break;
/*case WIMLIB_PROGRESS_MSG_SCAN_END:*/
/*break;*/
case WIMLIB_PROGRESS_MSG_VERIFY_INTEGRITY:
if (info->extract.completed_bytes == info->extract.total_bytes)
putchar('\n');
break;
+ case WIMLIB_PROGRESS_MSG_EXTRACT_DENTRY:
+ puts(info->extract.cur_path);
+ break;
case WIMLIB_PROGRESS_MSG_JOIN_STREAMS:
percent_done = TO_PERCENT(info->join.completed_bytes,
info->join.total_bytes);
goto out;
}
-#ifdef WITH_NTFS_3G
struct stat stbuf;
ret = stat(target, &stbuf);
goto out;
}
}
-#endif
ret = wimlib_extract_image(w, image, target, extract_flags,
additional_swms, num_additional_swms,
if (ret != 0)
goto out;
-#ifdef WITH_NTFS_3G
struct stat stbuf;
ret = stat(source, &stbuf);
goto out;
}
}
-#endif
+
ret = wimlib_add_image(w, source, name, config_str, config_len,
add_image_flags, imagex_progress_func);