1 /*
2  * ROX-Filer, filer for the ROX desktop project
3  * By Thomas Leonard, <tal197@users.sourceforge.net>.
4  *
5  * Extended filesystem attribute support, particularly for MIME types
6  */
7 
8 #ifndef _XTYPES_H
9 #define _XTYPES_H
10 
11 /* Know attribute names */
12 #define XATTR_MIME_TYPE "user.mime_type"
13 #define XATTR_HIDDEN    "user.hidden"
14 
15 /* If set, do not use extended attributes */
16 extern Option o_xattr_ignore;    /* Set up in xattr_init() */
17 
18 /* Prototypes */
19 void xattr_init(void);
20 
21 /* path may be NULL to test for support in libc */
22 int xattr_supported(const char *path);
23 
24 int xattr_have(const char *path);
25 gchar *xattr_get(const char *path, const char *attr, int *len);
26 int xattr_set(const char *path, const char *attr,
27 	      const char *value, int value_len);
28 
29 MIME_type *xtype_get(const char *path);
30 int xtype_set(const char *path, const MIME_type *type);
31 
32 #endif
33