internal.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. {
  7. MC_FLHGH_T_FTYPE,
  8. MC_FLHGH_T_EXT,
  9. MC_FLHGH_T_FREGEXP
  10. } mc_flhgh_filter_type;
  11. typedef enum
  12. {
  13. MC_FLHGH_FTYPE_T_FILE,
  14. MC_FLHGH_FTYPE_T_FILE_EXE,
  15. MC_FLHGH_FTYPE_T_DIR,
  16. MC_FLHGH_FTYPE_T_LINK_DIR,
  17. MC_FLHGH_FTYPE_T_LINK,
  18. MC_FLHGH_FTYPE_T_HARDLINK,
  19. MC_FLHGH_FTYPE_T_SYMLINK,
  20. MC_FLHGH_FTYPE_T_STALE_LINK,
  21. MC_FLHGH_FTYPE_T_DEVICE,
  22. MC_FLHGH_FTYPE_T_DEVICE_BLOCK,
  23. MC_FLHGH_FTYPE_T_DEVICE_CHAR,
  24. MC_FLHGH_FTYPE_T_SPECIAL,
  25. MC_FLHGH_FTYPE_T_SPECIAL_SOCKET,
  26. MC_FLHGH_FTYPE_T_SPECIAL_FIFO,
  27. MC_FLHGH_FTYPE_T_SPECIAL_DOOR,
  28. } mc_flhgh_ftype_type;
  29. /*** structures declarations (and typedefs of structures)*****************************************/
  30. typedef struct mc_fhl_filter_struct
  31. {
  32. int color_pair_index;
  33. gchar *fgcolor;
  34. gchar *bgcolor;
  35. mc_flhgh_filter_type type;
  36. mc_search_t *search_condition;
  37. mc_flhgh_ftype_type file_type;
  38. } mc_fhl_filter_t;
  39. /*** global variables defined in .c file *********************************************************/
  40. /*** declarations of public functions ************************************************************/
  41. void mc_fhl_array_free (mc_fhl_t *);
  42. gboolean mc_fhl_init_from_standard_files (mc_fhl_t *);
  43. /*** inline functions ****************************************************************************/
  44. #endif /* MC__FILEHIGHLIGHT_INTERNAL_H */