From f08bf1b4ba225219726e65ba65f41f11120933d8 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 1 Sep 2002 14:00:47 +0000 Subject: [PATCH] Add a function to retrieve an xref by its key. An xref's type is not always known -> XREF_ANY added. --- include/gedcom.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/gedcom.h.in b/include/gedcom.h.in index ddc18ed..8a2fb5a 100644 --- a/include/gedcom.h.in +++ b/include/gedcom.h.in @@ -328,7 +328,8 @@ typedef enum _XREF_TYPE { XREF_SOUR, XREF_SUBM, XREF_SUBN, - XREF_USER + XREF_USER, + XREF_ANY } Xref_type; struct xref_value { @@ -486,6 +487,7 @@ void gedcom_subscribe_to_element(Gedcom_elt elt, /* Separate value parsing functions */ struct date_value gedcom_parse_date(char* line_value); struct age_value gedcom_parse_age(char* line_value); +struct xref_value *gedcom_get_by_xref(char *key); __END_DECLS -- 2.30.2