r3768: Updated years.
[rox-filer.git] / ROX-Filer / src / xtypes.h
blob968271a1504a8731d8b1cd39f9d37fc7b15a7678
1 /*
2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
5 * Extended filesystem attribute support for MIME types
6 */
8 #ifndef _XTYPES_H
9 #define _XTYPES_H
11 #if defined(HAVE_GETXATTR)
12 #define ATTR_MAN_PAGE "See the attr(5) man page for full details."
13 #elif defined(HAVE_ATTROPEN)
14 #define ATTR_MAN_PAGE "See the fsattr(5) man page for full details."
15 #else
16 #define ATTR_MAN_PAGE "You do not appear to have OS support."
17 #endif
19 /* Prototypes */
20 MIME_type *xtype_get(const char *path);
21 int xtype_set(const char *path, const MIME_type *type);
22 void xtype_init(void);
24 int xtype_have_attr(const char *path);
26 /* path may be NULL to test for support in libc */
27 int xtype_supported(const char *path);
29 #endif