#ifndef LIBXATTR_H
#define LIBXATTR_H
#include <sys/types.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void*(*libxattr_malloc_func)(void *pool, size_t size);
typedef void(*libxattr_free_func)(void *pool, void *ptr);
char ** xattr_list(const char *path, ssize_t *nelm);
char * xattr_get(const char *path, const char *attr, ssize_t *len);
char * xattr_get_alloc(
void *pool,
libxattr_malloc_func malloc_func,
libxattr_free_func free_func,
const char *path,
const char *attr,
ssize_t *len);
int xattr_set(const char *path, const char *name, const void *value, size_t len);
int xattr_remove(const char *path, const char *name);
void xattr_free_list(char **attrnames, ssize_t nelm);
#ifdef __cplusplus
}
#endif
#endif