Merge branch '4535_tmpdir_name'
[midnight-commander.git] / lib / filehighlight / internal.h
blob3cf718dab60cf0efc8d346b6c5adb79104b5b651
1 #ifndef MC__FILEHIGHLIGHT_INTERNAL_H
2 #define MC__FILEHIGHLIGHT_INTERNAL_H
4 #include "lib/search.h" /* mc_search_t */
6 /*** typedefs(not structures) and defined constants **********************************************/
8 /*** enums ***************************************************************************************/
10 typedef enum
12 MC_FLHGH_T_FTYPE,
13 MC_FLHGH_T_EXT,
14 MC_FLHGH_T_FREGEXP
15 } mc_flhgh_filter_type;
17 typedef enum
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;
36 /*** structures declarations (and typedefs of structures)*****************************************/
38 typedef struct mc_fhl_filter_struct
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;
48 } mc_fhl_filter_t;
50 /*** global variables defined in .c file *********************************************************/
52 /*** declarations of public functions ************************************************************/
54 void mc_fhl_filter_free (gpointer data);
55 void mc_fhl_array_free (mc_fhl_t * fhl);
57 gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl);
59 /*** inline functions ****************************************************************************/
61 #endif /* MC__FILEHIGHLIGHT_INTERNAL_H */