]> wimlib.net Git - wimlib/blobdiff - src/wimlib_internal.h
Calculate SHA1 md of NTFS reparse points correctly
[wimlib] / src / wimlib_internal.h
index 8e1932166eec1551f881f59ca9c7c68b822b4363..410281913c103431636feebaf9be3621e1dc2518 100644 (file)
 #ifndef _WIMLIB_INTERNAL_H
 #define _WIMLIB_INTERNAL_H
 
+#include "config.h"
 #include "util.h"
 #include "list.h"
 
+#ifdef WITH_FUSE
 #include <pthread.h>
+#endif
 
 struct stat;
 struct dentry;
@@ -259,9 +262,11 @@ typedef struct WIMStruct {
        /* A pointer to the file indicated by @filename, opened for reading. */
        FILE  *fp;
 
+#ifdef WITH_FUSE
        FILE **fp_tab;
        size_t num_allocated_fps;
        pthread_mutex_t fp_tab_mutex;
+#endif
 
        /* FILE pointer for the WIM file that is being written. */
        FILE  *out_fp;
@@ -293,6 +298,7 @@ typedef struct WIMStruct {
                int add_flags;
                int write_flags;
                bool write_metadata;
+               void *private;
        };
 #ifdef WITH_NTFS_3G
        struct _ntfs_volume *ntfs_vol;
@@ -440,6 +446,11 @@ extern int read_wim_resource(const struct lookup_table_entry *lte, u8 buf[],
 extern int read_full_wim_resource(const struct lookup_table_entry *lte,
                                  u8 buf[], int flags);
 
+extern int write_wim_resource(struct lookup_table_entry *lte,
+                             FILE *out_fp, int out_ctype,
+                             struct resource_entry *out_res_entry,
+                             int flags);
+
 extern int extract_wim_resource_to_fd(const struct lookup_table_entry *lte,
                                      int fd, u64 size);