Allow elements out of context in GOM.
[gedcom-parse.git] / gom / family.h
index 3e218b4950b9a82a1c0491393b5a484910065506..d061be515b2e21e628be3d43094a5ffb8c9c3baa 100644 (file)
 
 void family_subscribe();
 void families_cleanup();
-struct family* make_family_record(char* xref);
-void family_add_event(Gom_ctxt ctxt, struct event* evt);
-void family_add_lss(Gom_ctxt ctxt, struct lds_event* lss);
-void family_add_citation(Gom_ctxt ctxt, struct source_citation* cit);
-void family_add_mm_link(Gom_ctxt ctxt, struct multimedia_link* link);
-void family_add_note(Gom_ctxt ctxt, struct note_sub* note);
-void family_add_user_ref(Gom_ctxt ctxt, struct user_ref_number* ref);
-void family_set_record_id(Gom_ctxt ctxt, char *rin);
-void family_set_change_date(Gom_ctxt ctxt, struct change_date* chan);
-void family_add_user_data(Gom_ctxt ctxt, struct user_data* data);
+int write_families(Gedcom_write_hndl hndl);
+
+DECLARE_MAKEFUNC(family);
+DECLARE_ADDFUNC2(family, event);
+DECLARE_ADDFUNC2(family, lds_event);
+DECLARE_ADDFUNC2(family, source_citation);
+DECLARE_ADDFUNC2(family, multimedia_link);
+DECLARE_ADDFUNC2(family, note_sub);
+DECLARE_ADDFUNC2(family, user_ref_number);
+DECLARE_ADDFUNC2(family, user_data);
+DECLARE_ADDFUNC2_NOLIST(family, change_date);
+DECLARE_ADDFUNC2_STR(family, record_id);
 
 #endif /* __FAMILY_H */