2009-09-02 03:07:50 +04:00
|
|
|
#ifndef MC__FILEHIGHLIGHT_INTERNAL_H
|
|
|
|
#define MC__FILEHIGHLIGHT_INTERNAL_H
|
|
|
|
|
2016-01-08 16:50:53 +03:00
|
|
|
#include "lib/search.h" /* mc_search_t */
|
|
|
|
|
2009-09-02 03:07:50 +04:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
typedef enum
|
|
|
|
{
|
2009-09-02 03:07:50 +04:00
|
|
|
MC_FLHGH_T_FTYPE,
|
|
|
|
MC_FLHGH_T_EXT,
|
|
|
|
MC_FLHGH_T_FREGEXP
|
|
|
|
} mc_flhgh_filter_type;
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
typedef enum
|
|
|
|
{
|
2009-09-02 03:07:50 +04:00
|
|
|
MC_FLHGH_FTYPE_T_FILE,
|
|
|
|
MC_FLHGH_FTYPE_T_FILE_EXE,
|
|
|
|
MC_FLHGH_FTYPE_T_DIR,
|
|
|
|
MC_FLHGH_FTYPE_T_LINK_DIR,
|
|
|
|
MC_FLHGH_FTYPE_T_LINK,
|
|
|
|
MC_FLHGH_FTYPE_T_HARDLINK,
|
|
|
|
MC_FLHGH_FTYPE_T_SYMLINK,
|
|
|
|
MC_FLHGH_FTYPE_T_STALE_LINK,
|
|
|
|
MC_FLHGH_FTYPE_T_DEVICE,
|
|
|
|
MC_FLHGH_FTYPE_T_DEVICE_BLOCK,
|
|
|
|
MC_FLHGH_FTYPE_T_DEVICE_CHAR,
|
|
|
|
MC_FLHGH_FTYPE_T_SPECIAL,
|
|
|
|
MC_FLHGH_FTYPE_T_SPECIAL_SOCKET,
|
|
|
|
MC_FLHGH_FTYPE_T_SPECIAL_FIFO,
|
|
|
|
MC_FLHGH_FTYPE_T_SPECIAL_DOOR,
|
|
|
|
} mc_flhgh_ftype_type;
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
typedef struct mc_fhl_filter_struct
|
|
|
|
{
|
2009-09-02 03:07:50 +04:00
|
|
|
|
|
|
|
int color_pair_index;
|
|
|
|
gchar *fgcolor;
|
|
|
|
gchar *bgcolor;
|
|
|
|
mc_flhgh_filter_type type;
|
|
|
|
mc_search_t *search_condition;
|
|
|
|
mc_flhgh_ftype_type file_type;
|
|
|
|
|
|
|
|
} mc_fhl_filter_t;
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
|
|
|
void mc_fhl_array_free (mc_fhl_t *);
|
|
|
|
|
2010-11-04 14:56:10 +03:00
|
|
|
gboolean mc_fhl_init_from_standard_files (mc_fhl_t *);
|
2009-09-02 03:07:50 +04:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2010-11-08 21:50:15 +03:00
|
|
|
|
|
|
|
#endif /* MC__FILEHIGHLIGHT_INTERNAL_H */
|