1 #ifndef MC__FILEHIGHLIGHT_INTERNAL_H
2 #define MC__FILEHIGHLIGHT_INTERNAL_H
3
4 #include "lib/search.h"
5
6
7
8
9
10 typedef enum
11 {
12 MC_FLHGH_T_FTYPE,
13 MC_FLHGH_T_EXT,
14 MC_FLHGH_T_FREGEXP
15 } mc_flhgh_filter_type;
16
17 typedef enum
18 {
19 MC_FLHGH_FTYPE_T_FILE,
20 MC_FLHGH_FTYPE_T_FILE_EXE,
21 MC_FLHGH_FTYPE_T_DIR,
22 MC_FLHGH_FTYPE_T_LINK_DIR,
23 MC_FLHGH_FTYPE_T_LINK,
24 MC_FLHGH_FTYPE_T_HARDLINK,
25 MC_FLHGH_FTYPE_T_SYMLINK,
26 MC_FLHGH_FTYPE_T_STALE_LINK,
27 MC_FLHGH_FTYPE_T_DEVICE,
28 MC_FLHGH_FTYPE_T_DEVICE_BLOCK,
29 MC_FLHGH_FTYPE_T_DEVICE_CHAR,
30 MC_FLHGH_FTYPE_T_SPECIAL,
31 MC_FLHGH_FTYPE_T_SPECIAL_SOCKET,
32 MC_FLHGH_FTYPE_T_SPECIAL_FIFO,
33 MC_FLHGH_FTYPE_T_SPECIAL_DOOR,
34 } mc_flhgh_ftype_type;
35
36
37
38 typedef struct mc_fhl_filter_struct
39 {
40
41 int color_pair_index;
42 gchar *fgcolor;
43 gchar *bgcolor;
44 mc_flhgh_filter_type type;
45 mc_search_t *search_condition;
46 mc_flhgh_ftype_type file_type;
47
48 } mc_fhl_filter_t;
49
50
51
52
53
54 void mc_fhl_filter_free (gpointer data);
55 void mc_fhl_array_free (mc_fhl_t * fhl);
56
57 gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl);
58
59
60
61 #endif