(mc_shell_recognize_path): clarify duplicate comments
[midnight-commander.git] / lib / filehighlight / internal.h
blob80c852a5943da5ad3aae69aa11d50baa6592f66b
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_array_free (mc_fhl_t *);
56 gboolean mc_fhl_init_from_standard_files (mc_fhl_t *);
58 /*** inline functions ****************************************************************************/
60 #endif /* MC__FILEHIGHLIGHT_INTERNAL_H */