X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwimlib_internal.h;h=410281913c103431636feebaf9be3621e1dc2518;hp=8e1932166eec1551f881f59ca9c7c68b822b4363;hb=52cccded7706cd556f78ce7d2506937d2a216293;hpb=051a59e4c6d114fc7abfa14ff78436adab5defb9 diff --git a/src/wimlib_internal.h b/src/wimlib_internal.h index 8e193216..41028191 100644 --- a/src/wimlib_internal.h +++ b/src/wimlib_internal.h @@ -27,10 +27,13 @@ #ifndef _WIMLIB_INTERNAL_H #define _WIMLIB_INTERNAL_H +#include "config.h" #include "util.h" #include "list.h" +#ifdef WITH_FUSE #include +#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);