r246: Added support for i18n. No translations yet, though!
[rox-filer/ma.git] / ROX-Filer / src / find.h
blob034282a0a54ca35e868f4dbed803c93ff4469799
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@ecs.soton.ac.uk>.
6 */
8 #include <glib.h>
9 #include <sys/stat.h>
11 typedef struct _FindCondition FindCondition;
12 typedef struct _FindInfo FindInfo;
13 typedef gboolean (*FindTest)(FindCondition *condition, FindInfo *info);
14 typedef void (*FindFree)(FindCondition *condition);
16 struct _FindCondition
18 FindTest test;
19 FindFree free;
20 /* These next three depend on the first two... */
21 gpointer data1;
22 gpointer data2;
23 gint value;
26 struct _FindInfo
28 guchar *fullpath;
29 guchar *leaf;
30 struct stat stats;
31 time_t now;
32 gboolean prune;
35 FindCondition *find_compile(guchar *string);
36 gboolean find_test_condition(FindCondition *condition, FindInfo *info);
37 void find_condition_free(FindCondition *condition);