X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fevent.h;h=aa519cbda0f14fc8bb08e757b047ef7cfcca0409;hb=28297bd9b57fa7d8c3600d040cc08e5e73a62c27;hp=6835dbd4ede074376b00b2e54129c3ef0f65dcb0;hpb=082066d0c776403b70c366f9a7d1333c7a9fac15;p=gedcom-parse.git diff --git a/gom/event.h b/gom/event.h index 6835dbd..aa519cb 100644 --- a/gom/event.h +++ b/gom/event.h @@ -34,15 +34,18 @@ typedef enum _EVT_TYPE { } EventType; void event_subscribe(); -void event_cleanup(struct event* evt); -void event_add_place(Gom_ctxt ctxt, struct place* place); -void event_add_address(Gom_ctxt ctxt, struct address* address); -void event_add_phone(Gom_ctxt ctxt, char *phone); -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); +DECLARE_SUB_MAKEFUNC(event); + +DECLARE_CLEANFUNC(event); +DECLARE_ADDFUNC2(event, source_citation); +DECLARE_ADDFUNC2(event, multimedia_link); +DECLARE_ADDFUNC2(event, note_sub); +DECLARE_ADDFUNC2(event, user_data); +DECLARE_ADDFUNC2_NOLIST(event, place); +DECLARE_ADDFUNC2_NOLIST(event, address); +DECLARE_ADDFUNC2_STRN(event, phone); + #endif /* __EVENT_H */