core/event: Add utility functions for checking equality
This adds: - `gcal_event_alarms_equal()` - `gcal_event_schedule_equal()` - `gcal_event_strings_equal()` We aren't going to make use of it yet, but eventually these functions will be used for the event editor dialog, as well as writing tests for. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/783>
This commit is contained in:
@@ -142,6 +142,15 @@ GListModel * gcal_event_get_attendees (GcalEvent
|
||||
|
||||
GcalEventOrganizer * gcal_event_get_organizer (GcalEvent *self);
|
||||
|
||||
gboolean gcal_event_alarms_equal (GcalEvent *event1,
|
||||
GcalEvent *event2);
|
||||
|
||||
gboolean gcal_event_schedule_equal (GcalEvent *event1,
|
||||
GcalEvent *event2);
|
||||
|
||||
gboolean gcal_event_strings_equal (GcalEvent *event1,
|
||||
GcalEvent *event2);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* GCAL_EVENT_H */
|
||||
|
||||
Reference in New Issue
Block a user