X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fresource.h;h=ae0775536b726e138000cfc4fd77dcbbd8feba48;hp=b2ba851b3a7819e1b95ac6ce2d642f9462a5b279;hb=50407ddd59aa2d0906225a4526eaefbf6da8450f;hpb=e907ce852350789d630ec81757c0178841b88e78 diff --git a/include/wimlib/resource.h b/include/wimlib/resource.h index b2ba851b..ae077553 100644 --- a/include/wimlib/resource.h +++ b/include/wimlib/resource.h @@ -216,10 +216,9 @@ skip_wim_stream(struct wim_lookup_table_entry *lte); * @lte: * Stream that is about to be read. * - * @is_partial_res: - * Set to true if the stream is just one of several being read from a - * single pack and therefore would be extra expensive to read - * independently. + * @flags: + * Bitwise OR of BEGIN_STREAM_FLAG_PARTIAL_RESOURCE and/or + * BEGIN_STREAM_FLAG_WHOLE_STREAM. * * @ctx: * User-provided context. @@ -230,9 +229,17 @@ skip_wim_stream(struct wim_lookup_table_entry *lte); * (without calling @consume_chunk or @end_stream). */ typedef int (*read_stream_list_begin_stream_t)(struct wim_lookup_table_entry *lte, - bool is_partial_res, + u32 flags, void *ctx); +/* Set to true if the stream is just one of several being read from a single + * pack and therefore would be extra expensive to read independently. */ +#define BEGIN_STREAM_FLAG_PARTIAL_RESOURCE 0x00000001 + +/* This is purely advisory and indicates that the entire stream data will be + * provided in one call to consume_chunk(). */ +#define BEGIN_STREAM_FLAG_WHOLE_STREAM 0x00000002 + #define BEGIN_STREAM_STATUS_SKIP_STREAM -1 /*