AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

Add a replacement for sqfs_writer_t in libsquashfs #91

Open AgentD opened 2 years ago

AgentD commented 2 years ago

The libcommon.a helper library currently contains an sqfs_writer_t implementation that uses libsquashfs and libfstree together to provide a simple, high level interface for creating squashfs images.

It would benefit users of libsquashfs to build a somewhat more generic replacement into libsquashfs.

There are still a few points that need to be ironed out for the interface design:

Of course, some of the later points are not yet relevant as long as simple editing, or a high-level reader is not planned, but should be kept in mind to make API extensible enough.

This move has so far not been done for two reasons:

AgentD commented 2 years ago

An appropriate API for the writer would probably be shaped something like this: