From: Peter Verthez Date: Sun, 1 Sep 2002 14:00:47 +0000 (+0000) Subject: Add a function to retrieve an xref by its key. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=f08bf1b4ba225219726e65ba65f41f11120933d8;hp=5ae8605423ad98b85bebd61f9ecf97daa746d534;p=gedcom-parse.git Add a function to retrieve an xref by its key. An xref's type is not always known -> XREF_ANY added. --- 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