Ticket #2704: added hotkeys for search types.
[midnight-commander.git] / lib / event.h
bloba347bb093de0740ea5232700b8d43f226e5d0228
1 #ifndef MC__EVENT_H
2 #define MC__EVENT_H
4 #include "event-types.h"
6 /*** typedefs(not structures) and defined constants **********************************************/
8 typedef gboolean (*mc_event_callback_func_t) (const gchar *, const gchar *, gpointer, gpointer);
10 /*** enums ***************************************************************************************/
12 /*** structures declarations (and typedefs of structures)*****************************************/
14 typedef struct
16 const char *event_group_name;
17 const char *event_name;
18 mc_event_callback_func_t cb;
19 gpointer init_data;
20 } event_init_t;
22 /*** global variables defined in .c file *********************************************************/
24 /*** declarations of public functions ************************************************************/
26 /* event.c: */
27 gboolean mc_event_init (GError **);
28 gboolean mc_event_deinit (GError **);
31 /* manage.c: */
32 gboolean mc_event_add (const gchar *, const gchar *, mc_event_callback_func_t, gpointer, GError **);
33 void mc_event_del (const gchar *, const gchar *, mc_event_callback_func_t, gpointer);
34 void mc_event_destroy (const gchar *, const gchar *);
35 void mc_event_group_del (const gchar *);
36 gboolean mc_event_present (const gchar *, const gchar *);
37 gboolean mc_event_mass_add (event_init_t *, GError **);
39 /* raise.c: */
40 gboolean mc_event_raise (const gchar *, const gchar *, gpointer);
43 /*** inline functions ****************************************************************************/
45 #endif /* MC__EVENT_H */