]> wimlib.net Git - wimlib/blobdiff - include/wimlib/blob_table.h
Improved reporting of concurrent modifications and corruptions
[wimlib] / include / wimlib / blob_table.h
index abc0c10f578f2609d8a74326b63ebb5d1947a9f4..0999660026ebde5c297d2a04684ec922f1683657 100644 (file)
@@ -387,6 +387,17 @@ blob_set_is_located_in_attached_buffer(struct blob_descriptor *blob,
        blob->size = size;
 }
 
+static inline bool
+blob_is_in_file(const struct blob_descriptor *blob)
+{
+       return blob->blob_location == BLOB_IN_FILE_ON_DISK
+#ifdef __WIN32__
+           || blob->blob_location == BLOB_IN_WINNT_FILE_ON_DISK
+           || blob->blob_location == BLOB_WIN32_ENCRYPTED
+#endif
+          ;
+}
+
 extern struct blob_descriptor *
 new_blob_from_data_buffer(const void *buffer, size_t size,
                          struct blob_table *blob_table);