1 #ifndef MC__FILEHIGHLIGHT_H
2 #define MC__FILEHIGHLIGHT_H
3
4 #include "lib/mcconfig.h" // mc_config_t
5 #include "lib/file-entry.h"
6
7 /*** typedefs(not structures) and defined constants **********************************************/
8
9 /*** enums ***************************************************************************************/
10
11 /*** structures declarations (and typedefs of structures)*****************************************/
12
13 typedef struct mc_fhl_struct
14 {
15 mc_config_t *config;
16 GPtrArray *filters;
17 } mc_fhl_t;
18
19 /*** global variables defined in .c file *********************************************************/
20
21 /*** declarations of public functions ************************************************************/
22
23 mc_fhl_t *mc_fhl_new (gboolean need_auto_fill);
24 void mc_fhl_free (mc_fhl_t **fhl);
25
26 int mc_fhl_get_color (const mc_fhl_t *fhl, const file_entry_t *fe);
27
28 gboolean mc_fhl_read_ini_file (mc_fhl_t *fhl, const gchar *filename);
29 gboolean mc_fhl_parse_ini_file (mc_fhl_t *fhl);
30 void mc_fhl_clear (mc_fhl_t *fhl);
31
32 /*** inline functions ****************************************************************************/
33
34 #endif