Merge branch '2091_viewer_search'
[midnight-commander.git] / lib / filehighlight / internal.h
blob4b66254cd8dd9d2a1b000347ecafbccef2ed6fd1
1 #ifndef MC__FILEHIGHLIGHT_INTERNAL_H
2 #define MC__FILEHIGHLIGHT_INTERNAL_H
4 /*** typedefs(not structures) and defined constants **********************************************/
6 /*** enums ***************************************************************************************/
8 typedef enum {
9 MC_FLHGH_T_FTYPE,
10 MC_FLHGH_T_EXT,
11 MC_FLHGH_T_FREGEXP
12 } mc_flhgh_filter_type;
14 typedef enum {
15 MC_FLHGH_FTYPE_T_FILE,
16 MC_FLHGH_FTYPE_T_FILE_EXE,
17 MC_FLHGH_FTYPE_T_DIR,
18 MC_FLHGH_FTYPE_T_LINK_DIR,
19 MC_FLHGH_FTYPE_T_LINK,
20 MC_FLHGH_FTYPE_T_HARDLINK,
21 MC_FLHGH_FTYPE_T_SYMLINK,
22 MC_FLHGH_FTYPE_T_STALE_LINK,
23 MC_FLHGH_FTYPE_T_DEVICE,
24 MC_FLHGH_FTYPE_T_DEVICE_BLOCK,
25 MC_FLHGH_FTYPE_T_DEVICE_CHAR,
26 MC_FLHGH_FTYPE_T_SPECIAL,
27 MC_FLHGH_FTYPE_T_SPECIAL_SOCKET,
28 MC_FLHGH_FTYPE_T_SPECIAL_FIFO,
29 MC_FLHGH_FTYPE_T_SPECIAL_DOOR,
30 } mc_flhgh_ftype_type;
32 /*** structures declarations (and typedefs of structures)*****************************************/
34 typedef struct mc_fhl_filter_struct {
36 int color_pair_index;
37 gchar *fgcolor;
38 gchar *bgcolor;
39 mc_flhgh_filter_type type;
40 mc_search_t *search_condition;
41 mc_flhgh_ftype_type file_type;
43 } mc_fhl_filter_t;
45 /*** global variables defined in .c file *********************************************************/
47 /*** declarations of public functions ************************************************************/
50 void mc_fhl_array_free (mc_fhl_t *);
52 gboolean mc_fhl_init_from_standart_files (mc_fhl_t *);
55 #endif