#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;
/* 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;
int add_flags;
int write_flags;
bool write_metadata;
+ void *private;
};
#ifdef WITH_NTFS_3G
struct _ntfs_volume *ntfs_vol;
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);