-#ifndef __EXTERNAL_H
-#define __EXTERNAL_H
+/* External header for the Gedcom parser library.
+ Copyright (C) 2001 The Genes Development Team
+ This file is part of the Gedcom parser library.
+ Contributed by Peter Verthez <Peter.Verthez@advalvas.be>, 2001.
+
+ The Gedcom parser library is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The Gedcom parser library is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the Gedcom parser library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+/* $Id$ */
+/* $Name$ */
+
+#ifndef __GEDCOM_H
+#define __GEDCOM_H
#include <stdio.h>
+__BEGIN_DECLS
+
typedef enum _REC {
REC_HEAD,
REC_FAM,
REC_SUBN,
REC_SUBM,
REC_USER,
- LAST_REC
+ NR_OF_RECS /* Just a final value to be used in array boundaries */
} Gedcom_rec;
typedef enum _ELT {
ELT_HEAD_PLAC,
ELT_HEAD_PLAC_FORM,
ELT_HEAD_NOTE,
+
+ ELT_FAM_HUSB,
+ ELT_FAM_WIFE,
+ ELT_FAM_CHIL,
+ ELT_FAM_NCHI,
+ ELT_FAM_SUBM,
+
+ ELT_INDI_RESN,
+ ELT_INDI_SEX,
+ ELT_INDI_SUBM,
+ ELT_INDI_ALIA,
+ ELT_INDI_ANCI,
+ ELT_INDI_DESI,
+ ELT_INDI_RFN,
+ ELT_INDI_AFN,
+
+ ELT_OBJE_FORM,
+ ELT_OBJE_TITL,
+ ELT_OBJE_BLOB,
+ ELT_OBJE_BLOB_CONT,
+ ELT_OBJE_OBJE,
+
+ ELT_REPO_NAME,
+
ELT_USER,
- LAST_ELT
+
+ NR_OF_ELTS /* Just a final value to be used in array boundaries */
} Gedcom_elt;
typedef enum _MECH {
Gedcom_elt_start_cb cb_start,
Gedcom_elt_end_cb cb_end);
-#endif /* __EXTERNAL_H */
+__END_DECLS
+
+#endif /* __GEDCOM_H */