Only try to delete address if present.
[gedcom-parse.git] / gom / note.h
index b47b3b016e09e122042cf73a5eb8cf1599651bdb..a8f54c59ee301d6332ce3e6272050ddb0daadd30 100644 (file)
 
 void note_subscribe();
 void notes_cleanup();
-struct note* make_note_record(char* xref);
-void note_add_to_note(NL_TYPE type, Gom_ctxt ctxt, char* str);
-void note_add_citation(Gom_ctxt ctxt, struct source_citation* cit);
-void note_add_user_ref(Gom_ctxt ctxt, struct user_ref_number* ref);
-void note_set_record_id(Gom_ctxt ctxt, char *rin);
-void note_set_change_date(Gom_ctxt ctxt, struct change_date* chan);
-void note_add_user_data(Gom_ctxt ctxt, struct user_data* data);
+int write_notes(Gedcom_write_hndl hndl);
+
+DECLARE_MAKEFUNC(note);
+DECLARE_ADDFUNC2(note, source_citation);
+DECLARE_ADDFUNC2(note, user_ref_number);
+DECLARE_ADDFUNC2(note, user_data);
+DECLARE_ADDFUNC2_NOLIST(note, change_date);
+DECLARE_ADDFUNC2_STR(note, record_id);
 
 #endif /* __NOTE_H */