]> wimlib.net Git - wimlib/blobdiff - src/extract.c
Refactor headers
[wimlib] / src / extract.c
similarity index 98%
rename from src/extract_image.c
rename to src/extract.c
index fad438f52b27eeb62347e8dcfcb4642c1f8e8e06..f1415632dee0f60bd4c58f705cb96117247d35e0 100644 (file)
@@ -1,7 +1,8 @@
 /*
- * 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,