X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fevent.h;h=6835dbd4ede074376b00b2e54129c3ef0f65dcb0;hb=082066d0c776403b70c366f9a7d1333c7a9fac15;hp=ef799d251d703f6645d69e437c01eeb69f42580d;hpb=8a73dd117ad3bf06a89595f7cd8fdef45c231a6e;p=gedcom-parse.git diff --git a/gom/event.h b/gom/event.h index ef799d2..6835dbd 100644 --- a/gom/event.h +++ b/gom/event.h @@ -27,6 +27,12 @@ #include "gom.h" #include "gom_internal.h" +typedef enum _EVT_TYPE { + EVT_TYPE_FAMILY, + EVT_TYPE_INDIV_ATTR, + EVT_TYPE_INDIV_EVT +} EventType; + void event_subscribe(); void event_cleanup(struct event* evt); void event_add_place(Gom_ctxt ctxt, struct place* place); @@ -36,5 +42,7 @@ void event_add_citation(Gom_ctxt ctxt, struct source_citation* cit); void event_add_mm_link(Gom_ctxt ctxt, struct multimedia_link* mm); void event_add_note(Gom_ctxt ctxt, struct note_sub* note); void event_add_user_data(Gom_ctxt ctxt, struct user_data* data); +int write_events(Gedcom_write_hndl hndl, int parent, EventType evt_type, + struct event* evt); #endif /* __EVENT_H */