]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive: constify the archive::vtable dispatch
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Feb 2020 16:11:38 +0000 (16:11 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 23 Oct 2021 18:26:18 +0000 (19:26 +0100)
commitee99f7fc02270749565a082512b10528c0c9ac98
tree52ac561473c39fdd4d6449cbccdaf84848825be3
parentdc321febde83dd0f31158e1be61a7aedda65e7a2
archive: constify the archive::vtable dispatch

Currently we have a constant dispatch/vtable that we populate at runtime
for unknown reason.

Remove the functions doing all the work and use a simple static const
struct archive_vtable.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
libarchive/archive_private.h
libarchive/archive_read.c
libarchive/archive_read_disk_posix.c
libarchive/archive_read_disk_windows.c
libarchive/archive_write.c
libarchive/archive_write_disk_posix.c
libarchive/archive_write_disk_windows.c