/*
- * extract_image.c
+ * extract.c
*
- * Support for extracting WIM files.
+ * Support for extracting WIM images, or files or directories contained in a WIM
+ * image.
*/
/*
* along with wimlib; if not, see http://www.gnu.org/licenses/.
*/
-#include "config.h"
-
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <unistd.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+#include "wimlib/apply.h"
+#include "wimlib/dentry.h"
+#include "wimlib/error.h"
+#include "wimlib/lookup_table.h"
+#include "wimlib/paths.h"
+#include "wimlib/resource.h"
+#include "wimlib/swm.h"
#ifdef __WIN32__
-# include "win32.h"
+# include "wimlib/win32.h" /* for realpath() equivalent */
#endif
+#include "wimlib/xml.h"
-#include "wimlib_internal.h"
-#include "dentry.h"
-#include "lookup_table.h"
-#include "xml.h"
-
+#include <errno.h>
+#include <limits.h>
#ifdef WITH_NTFS_3G
-# include <ntfs-3g/volume.h>
+# include <ntfs-3g/volume.h> /* for ntfs_mount(), ntfs_umount() */
#endif
+#include <stdlib.h>
+#include <sys/stat.h>
+#include <unistd.h>
static int
do_apply_op(struct wim_dentry *dentry, struct apply_args *args,