Files
RedBear-OS/recipes/wip/files/mc/source/lib/hook.h
T
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

35 lines
1.1 KiB
C

/** \file lib/hook.h
* \brief Header: hooks
*/
#ifndef MC_HOOK_H
#define MC_HOOK_H
#include "lib/global.h"
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
typedef struct hook_t
{
void (*hook_fn) (void *);
void *hook_data;
struct hook_t *next;
} hook_t;
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
void add_hook (hook_t ** hook_list, void (*hook_fn) (void *), void *data);
void execute_hooks (hook_t * hook_list);
void delete_hook (hook_t ** hook_list, void (*hook_fn) (void *));
gboolean hook_present (hook_t * hook_list, void (*hook_fn) (void *));
/*** inline functions **************************************************/
#endif /* MC_HOOK_H */