52 uint64_t offset,
void *data,
int err);
54 const struct SqshFile *file, FILE *stream,
void *data,
int err);
#define SQSH_NO_UNUSED
Warn if return value is unused.
int sqsh_threadpool_wait(struct SqshThreadpool *pool)
void(* sqsh_file_iterator_mt_cb)(const struct SqshFile *file, const struct SqshFileIterator *iterator, uint64_t offset, void *data, int err)
void(* sqsh_file_to_stream_mt_cb)(const struct SqshFile *file, FILE *stream, void *data, int err)
SQSH_NO_EXPORT int sqsh__threadpool_cleanup(struct SqshThreadpool *pool)
An iterator over the contents of a file.
int sqsh_file_to_stream(const struct SqshFile *file, FILE *stream)
writes data to a file descriptor.
void sqsh_file_iterator_mt(const struct SqshFile *file, struct SqshThreadpool *threadpool, sqsh_file_iterator_mt_cb cb, void *data)
creates a file descriptor from a file and calls a callback for each block.
SQSH_NO_UNUSED int sqsh_file_to_stream_mt(const struct SqshFile *file, struct SqshThreadpool *threadpool, FILE *stream, sqsh_file_to_stream_mt_cb cb, void *data)
writes data to a file descriptor.
int sqsh_threadpool_free(struct SqshThreadpool *pool)
creates a new threadpool.
struct SqshThreadpool * sqsh_threadpool_new(size_t threads, int *err)
creates a new threadpool.