filehighlight.h 1.1 KB

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