From 0dfc7e7f21a7dcb0087b7ddebae1cc36768f3851 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 22 Sep 2002 18:46:56 +0000 Subject: [PATCH] Added functions to add, delete, link and unlink cross-references. --- include/gedcom.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/gedcom.h.in b/include/gedcom.h.in index 223dc0f..6482c97 100644 --- a/include/gedcom.h.in +++ b/include/gedcom.h.in @@ -472,6 +472,7 @@ typedef void void gedcom_init(); int gedcom_parse_file(const char* file_name); +int gedcom_new_model(); void gedcom_set_debug_level(int level, FILE* trace_output); void gedcom_set_error_handling(Gedcom_err_mech mechanism); void gedcom_set_compat_handling(int enable_compat); @@ -488,7 +489,14 @@ void gedcom_subscribe_to_element(Gedcom_elt elt, /* Separate value parsing functions */ struct date_value gedcom_parse_date(const char* line_value); struct age_value gedcom_parse_age(const char* line_value); + +/* Handling cross-references */ struct xref_value *gedcom_get_by_xref(const char *key); +struct xref_value *gedcom_add_xref(Xref_type type, const char* xrefstr, + Gedcom_ctxt object); +struct xref_value *gedcom_link_xref(Xref_type type, const char* xrefstr); +struct xref_value *gedcom_unlink_xref(Xref_type type, const char* xrefstr); +int gedcom_delete_xref(const char* xrefstr); /* For use in gom */ int gedcom_error(const char* s, ...); -- 2.30.2