]> git.ipfire.org Git - thirdparty/libarchive.git/commit
reader: track read_filter "can_seek" with a flag
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 30 Mar 2020 21:54:21 +0000 (22:54 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 23 Oct 2021 18:26:23 +0000 (19:26 +0100)
commit4e7a6bd81187629e6f99ef8c5456a96c93be3d94
treee64f0333a659f6f53d890012ab037a3e68b2098a
parent7f3f47cba79721604290b4cc515aaac3f3f558fa
reader: track read_filter "can_seek" with a flag

Currently we the ::seek callback can be either NULL or client_seek_proxy.

Since we already explicitly use the latter, instead of ::seek just drop
the function pointer all together, in favour of a simple flag.

Alternatively one could use a ARCHIVE_FILTER_NONE check.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
libarchive/archive_read.c
libarchive/archive_read_private.h