internal.h 1.7 KB

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