252__attribute__((deprecated(
253 "Since 1.3.0. Use sqsh_xattr_iterator_value_size2() instead.")))
#define SQSH_NO_UNUSED
Warn if return value is unused.
An iterator over extended attributes.
int sqsh_xattr_iterator_free(struct SqshXattrIterator *iterator)
Frees the resources used by an xattr iterator.
uint32_t sqsh_xattr_iterator_value_size2(const struct SqshXattrIterator *iterator)
Retrieves the size of the value of the current xattr.
SQSH_NO_UNUSED char * sqsh_xattr_iterator_value_dup(const struct SqshXattrIterator *iterator)
creates a heap allocated copy of the value of the current entry.
SQSH_NO_UNUSED struct SqshXattrIterator * sqsh_xattr_iterator_new(const struct SqshFile *file, int *err)
Allocates and initializes a new xattr iterator.
uint16_t sqsh_xattr_iterator_name_size(const struct SqshXattrIterator *iterator)
Retrieves the size of the name of the current xattr.
uint16_t sqsh_xattr_iterator_type(const struct SqshXattrIterator *iterator)
Retrieves the type of the current xattr.
const char * sqsh_xattr_iterator_prefix(const struct SqshXattrIterator *iterator)
Retrieves the prefix of the current xattr.
const char * sqsh_xattr_iterator_value(const struct SqshXattrIterator *iterator)
Retrieves the value of the current xattr.
SQSH_NO_UNUSED char * sqsh_xattr_iterator_fullname_dup(const struct SqshXattrIterator *iterator)
creates a heap allocated copy of the full name of the current entry.
uint16_t sqsh_xattr_iterator_value_size(const struct SqshXattrIterator *iterator)
Retrieves the size of the value of the current xattr.
SQSH_NO_UNUSED int sqsh_xattr_iterator_fullname_cmp(const struct SqshXattrIterator *iterator, const char *name)
Compares the full name of the current xattr with a given 0-terminated name.
SQSH_NO_UNUSED int sqsh_xattr_iterator_lookup(struct SqshXattrIterator *iterator, const char *name)
Looks up an xattr by name.
const char * sqsh_xattr_iterator_name(const struct SqshXattrIterator *iterator)
Retrieves the name of the current xattr excluding the prefix.
bool sqsh_xattr_iterator_is_indirect(const struct SqshXattrIterator *iterator)
Checks if the current xattr is indirect.
SQSH_NO_UNUSED bool sqsh_xattr_iterator_next(struct SqshXattrIterator *iterator, int *err)
Advances the iterator to the next xattr.
uint16_t sqsh_xattr_iterator_prefix_size(const struct SqshXattrIterator *iterator)
Retrieves the size of the prefix of the current xattr.