#include "rox-clib.h"
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <gtk/gtk.h>
#include "rox.h"
#include "mime.h"
#include "xattr.h"
Functions | |
void | rox_xattr_init (void) |
int | rox_xattr_supported (const char *path) |
int | rox_xattr_have (const char *path) |
gchar * | rox_xattr_get (const char *path, const char *attr, int *len) |
int | rox_xattr_set (const char *path, const char *attr, const char *value, int value_len) |
GList * | rox_xattr_list (const char *path) |
int | rox_xattr_delete (const char *path, const char *attr) |
gboolean | rox_xattr_name_valid (const char *attr) |
gboolean | rox_xattr_binary_value_supported (void) |
ROXMIMEType * | rox_xattr_type_get (const char *path) |
int | rox_xattr_type_set (const char *path, const ROXMIMEType *type) |
This provides an abstract interface to the supported extended attribute API. Both getxattr() and attropen() are supported, as is a fallback no-op implementation.
|
|
|
Remove an extended attributes from a file.
|
|
Get the value of an extended attribute. The returned value should be freed with g_free() when done.
|
|
Check for the presence of extended attributes on a file.
|
|
Initialize the extended attrubute system. |
|
Return a list of extended attributes set on a file.
|
|
Check validity of an extended attribute name. Some implementations of extended attributes enforce restrictions on valid attribute names. This checks the name against the current rules.
|
|
Set the value of an extended attribute.
|
|
Check for extended attribute support on the system or a specific file.
|
|
Convinience function to check a file for the ROX_XATTR_MIME_TYPE attribute and return the appropriate ROXMIMEType.
|
|
Convinience function to set the ROX_XATTR_MIME_TYPE attribute on a file.
|