X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-3g_apply.c;fp=src%2Fntfs-apply.c;h=0ec4702fc736f859b2b552641e5e8d3fc64c0ce8;hp=0297e7245f9037d18eb46dcb22b004e93fcdd4e9;hb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;hpb=726f9bbd0bd664294fce8a50be1d5b6881df8d16 diff --git a/src/ntfs-apply.c b/src/ntfs-3g_apply.c similarity index 96% rename from src/ntfs-apply.c rename to src/ntfs-3g_apply.c index 0297e724..0ec4702f 100644 --- a/src/ntfs-apply.c +++ b/src/ntfs-3g_apply.c @@ -1,9 +1,9 @@ /* - * ntfs-apply.c + * ntfs-3g_apply.c * - * Apply a WIM image to a NTFS volume. Restore as much information as possible, - * including security data, file attributes, DOS names, and alternate data - * streams. + * Apply a WIM image directly to a NTFS volume using libntfs-3g. Restore as + * much information as possible, including security data, file attributes, DOS + * names, and alternate data streams. */ /* @@ -25,23 +25,33 @@ * along with wimlib; if not, see http://www.gnu.org/licenses/. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif -#include "config.h" +#ifdef WITH_NTFS_3G -#include -#include - -#include "wimlib_internal.h" -#include "buffer_io.h" -#include "dentry.h" -#include "lookup_table.h" +#include +#include +#include /* NTFS-3g headers are missing include */ #include -#include /* security.h before xattrs.h */ +#include #include +#include +#include #include -#include -#include + +#include "wimlib/apply.h" +#include "wimlib/buffer_io.h" +#include "wimlib/dentry.h" +#include "wimlib/encoding.h" +#include "wimlib/error.h" +#include "wimlib/lookup_table.h" +#include "wimlib/metadata.h" +#include "wimlib/ntfs_3g.h" +#include "wimlib/reparse.h" +#include "wimlib/security.h" struct ntfs_attr_extract_ctx { u64 offset; @@ -672,7 +682,9 @@ apply_dentry_timestamps_ntfs(struct wim_dentry *dentry, void *arg) } void -libntfs3g_global_init() +libntfs3g_global_init(void) { ntfs_set_char_encoding(setlocale(LC_ALL, "")); } + +#endif /* WITH_NTFS_3G */