root/lib/filehighlight/internal.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


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

/* [previous][next][first][last][top][bottom][index][help]  */