8 #include "lib/global.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 /*** enums ***************************************************************************************/
14 /*** structures declarations (and typedefs of structures)*****************************************/
18 void (*hook_fn
) (void *);
23 /*** global variables defined in .c file *********************************************************/
25 /*** declarations of public functions ************************************************************/
27 void add_hook (hook_t
** hook_list
, void (*hook_fn
) (void *), void *data
);
28 void execute_hooks (hook_t
* hook_list
);
29 void delete_hook (hook_t
** hook_list
, void (*hook_fn
) (void *));
30 gboolean
hook_present (hook_t
* hook_list
, void (*hook_fn
) (void *));
32 /*** inline functions **************************************************/
34 #endif /* MC_HOOK_H */