2009-09-02 03:07:50 +04:00
|
|
|
#ifndef MC__FILEHIGHLIGHT_H
|
|
|
|
#define MC__FILEHIGHLIGHT_H
|
|
|
|
|
2016-01-08 16:50:53 +03:00
|
|
|
#include "lib/mcconfig.h" /* mc_config_t */
|
|
|
|
#include "lib/util.h" /* file_entry_t */
|
2009-09-02 03:07:50 +04:00
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
typedef struct mc_fhl_struct
|
|
|
|
{
|
2009-09-02 03:07:50 +04:00
|
|
|
mc_config_t *config;
|
|
|
|
GPtrArray *filters;
|
|
|
|
} mc_fhl_t;
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
mc_fhl_t *mc_fhl_new (gboolean need_auto_fill);
|
|
|
|
void mc_fhl_free (mc_fhl_t ** fhl);
|
2009-09-02 03:07:50 +04:00
|
|
|
|
2021-12-04 07:34:07 +03:00
|
|
|
int mc_fhl_get_color (const mc_fhl_t * fhl, const file_entry_t * fe);
|
2009-09-02 03:07:50 +04:00
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
gboolean mc_fhl_read_ini_file (mc_fhl_t * fhl, const gchar * filename);
|
|
|
|
gboolean mc_fhl_parse_ini_file (mc_fhl_t * fhl);
|
|
|
|
void mc_fhl_clear (mc_fhl_t * fhl);
|
2009-09-02 03:07:50 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2010-11-08 21:50:15 +03:00
|
|
|
|
|
|
|
#endif /* MC__FILEHIGHLIGHT_H */
|