Files
RedBear-OS/local/recipes/tui/mc/source/lib/filehighlight/internal.h
T
vasilito cee25393d8 fix: boot process improvements — dependency cycle, INIT_NOTIFY, probing loop, and log spam fixes
- Fix P15-8-init-cycle-detection.patch: replace visiting+error with seen+silent-skip
  to eliminate 11 false-positive 'dependency cycle detected' errors on shared deps
- Fix P0-daemon-fix-init-notify-unwrap.patch: remove eprintln! for missing
  INIT_NOTIFY (expected for oneshot_async services, ~7 daemons affected)
- Fix driver-manager hotplug loop: add PERMANENTLY_SKIPPED static set shared
  between hotplug handler and DriverConfig::probe() to stop infinite re-probing
  of Fatal/NotSupported/deferred-exhausted device+driver pairs (e.g. ided)
- Fix driver-manager log_timeline: suppress repeated EPIPE/ENOENT errors with
  AtomicI32 dedup and AtomicBool one-shot guards for boot timeline JSON
- Add driver-manager SIGTERM handler, ACPI bus registration, --status mode,
  driver reap loop, graceful shutdown, and reduced deferred retries (30→3)
2026-05-17 12:34:02 +03:00

62 lines
1.7 KiB
C

#ifndef MC__FILEHIGHLIGHT_INTERNAL_H
#define MC__FILEHIGHLIGHT_INTERNAL_H
#include "lib/search.h" /* mc_search_t */
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
typedef enum
{
MC_FLHGH_T_FTYPE,
MC_FLHGH_T_EXT,
MC_FLHGH_T_FREGEXP
} mc_flhgh_filter_type;
typedef enum
{
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)*****************************************/
typedef struct mc_fhl_filter_struct
{
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_filter_free (gpointer data);
void mc_fhl_array_free (mc_fhl_t * fhl);
gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl);
/*** inline functions ****************************************************************************/
#endif /* MC__FILEHIGHLIGHT_INTERNAL_H */