internal.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  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, gpointer event_init_data);
  20. /*** inline functions ****************************************************************************/
  21. #endif /* MC_EVENT_INTERNAL_H */