internal.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef MC__FILEHIGHLIGHT_INTERNAL_H
  2. #define MC__FILEHIGHLIGHT_INTERNAL_H
  3. /*** typedefs(not structures) and defined constants **********************************************/
  4. /*** enums ***************************************************************************************/
  5. typedef enum {
  6. MC_FLHGH_T_FTYPE,
  7. MC_FLHGH_T_EXT,
  8. MC_FLHGH_T_FREGEXP
  9. } mc_flhgh_filter_type;
  10. typedef enum {
  11. MC_FLHGH_FTYPE_T_FILE,
  12. MC_FLHGH_FTYPE_T_FILE_EXE,
  13. MC_FLHGH_FTYPE_T_DIR,
  14. MC_FLHGH_FTYPE_T_LINK_DIR,
  15. MC_FLHGH_FTYPE_T_LINK,
  16. MC_FLHGH_FTYPE_T_HARDLINK,
  17. MC_FLHGH_FTYPE_T_SYMLINK,
  18. MC_FLHGH_FTYPE_T_STALE_LINK,
  19. MC_FLHGH_FTYPE_T_DEVICE,
  20. MC_FLHGH_FTYPE_T_DEVICE_BLOCK,
  21. MC_FLHGH_FTYPE_T_DEVICE_CHAR,
  22. MC_FLHGH_FTYPE_T_SPECIAL,
  23. MC_FLHGH_FTYPE_T_SPECIAL_SOCKET,
  24. MC_FLHGH_FTYPE_T_SPECIAL_FIFO,
  25. MC_FLHGH_FTYPE_T_SPECIAL_DOOR,
  26. } mc_flhgh_ftype_type;
  27. /*** structures declarations (and typedefs of structures)*****************************************/
  28. typedef struct mc_fhl_filter_struct {
  29. int color_pair_index;
  30. gchar *fgcolor;
  31. gchar *bgcolor;
  32. mc_flhgh_filter_type type;
  33. mc_search_t *search_condition;
  34. mc_flhgh_ftype_type file_type;
  35. } mc_fhl_filter_t;
  36. /*** global variables defined in .c file *********************************************************/
  37. /*** declarations of public functions ************************************************************/
  38. void mc_fhl_array_free (mc_fhl_t *);
  39. gboolean mc_fhl_init_from_standart_files (mc_fhl_t *);
  40. #endif