15main(
int argc,
char *argv[]) {
17 printf(
"Usage: %s <sqsh-file> <path>\n", argv[0]);
21 assert(archive != NULL);
25 for (
int i = 0; keys[i] != NULL; i++) {
27 printf(
"%s=%s\n", keys[i], value);
int main(int argc, char *argv[])
char * sqsh_easy_xattr_get(struct SqshArchive *archive, const char *path, const char *key, int *err)
retrieves the value of a xattr key of a file or directory.
char ** sqsh_easy_xattr_keys(struct SqshArchive *archive, const char *path, int *err)
retrieves all xattr keys of a file or directory.
SQSH_NO_UNUSED struct SqshArchive * sqsh_archive_open(const void *source, const struct SqshConfig *config, int *err)
initializes a archive context in heap.
int sqsh_archive_close(struct SqshArchive *archive)
Frees the resources used by a Sqsh instance.