internal.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef MC_EVENT_INTERNAL_H
  2. #define MC_EVENT_INTERNAL_H
  3. /*** typedefs(not structures) and defined constants ********************/
  4. /*** enums *************************************************************/
  5. /*** structures declarations (and typedefs of structures)***************/
  6. typedef struct mc_event_callback_struct
  7. {
  8. gpointer init_data;
  9. mc_event_callback_func_t callback;
  10. } mc_event_callback_t;
  11. /*** global variables defined in .c file *******************************/
  12. extern GTree *mc_event_grouplist;
  13. /*** declarations of public functions **********************************/
  14. GTree *mc_event_get_event_group_by_name (const gchar * event_group_name, gboolean create_new,
  15. GError ** mcerror);
  16. GPtrArray *mc_event_get_event_by_name (GTree * event_group, const gchar * event_name,
  17. gboolean create_new, GError ** mcerror);
  18. mc_event_callback_t *mc_event_is_callback_in_array (GPtrArray * callbacks,
  19. mc_event_callback_func_t event_callback,
  20. gpointer event_init_data);
  21. /*** inline functions ****************************************************************************/
  22. #endif /* MC_EVENT_INTERNAL_H */