-void event_add_place(Gom_ctxt ctxt, struct place* place)
-{
- struct event *evt = SAFE_CTXT_CAST(event, ctxt);
- if (evt)
- evt->place = place;
-}
-
-void event_add_address(Gom_ctxt ctxt, struct address* address)
-{
- struct event *evt = SAFE_CTXT_CAST(event, ctxt);
- if (evt)
- evt->address = address;
-}
-
-void event_add_phone(Gom_ctxt ctxt, char *phone)
-{
- struct event *evt = SAFE_CTXT_CAST(event, ctxt);
- if (evt) {
- int i = 0;
- while (i<2 && evt->phone[i]) i++;
- if (! evt->phone[i]) {
- evt->phone[i] = strdup(phone);
- if (! evt->phone[i]) MEMORY_ERROR;
- }
- }
-}
-
-void event_add_citation(Gom_ctxt ctxt, struct source_citation* cit)
-{
- struct event *evt = SAFE_CTXT_CAST(event, ctxt);
- if (evt)
- LINK_CHAIN_ELT(source_citation, evt->citation, cit);
-}
-
-void event_add_mm_link(Gom_ctxt ctxt, struct multimedia_link* mm)
-{
- struct event *evt = SAFE_CTXT_CAST(event, ctxt);
- if (evt)
- LINK_CHAIN_ELT(multimedia_link, evt->mm_link, mm);
-}
-
-void event_add_note(Gom_ctxt ctxt, struct note_sub* note)
-{
- struct event *evt = SAFE_CTXT_CAST(event, ctxt);
- if (evt)
- LINK_CHAIN_ELT(note_sub, evt->note, note);
-}
-
-void event_add_user_data(Gom_ctxt ctxt, struct user_data* data)
-{
- struct event *obj = SAFE_CTXT_CAST(event, ctxt);
- if (obj)
- LINK_CHAIN_ELT(user_data, obj->extra, data);
-}
-