Calendar manipulation routines from Scott E. Lee.
[gedcom-parse.git] / include / gedcom.h
index afaec3b121b5dc715bfe6204a36a792312b0974b..53d168b24fdc613273677f94553f70e036a6ac65 100644 (file)
@@ -1,8 +1,33 @@
-#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,
@@ -14,7 +39,7 @@ typedef enum _REC {
   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 {
@@ -41,8 +66,33 @@ 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 {
@@ -97,4 +147,6 @@ void    gedcom_subscribe_to_element(Gedcom_elt elt,
                                    Gedcom_elt_start_cb cb_start,
                                    Gedcom_elt_end_cb cb_end);
 
-#endif /* __EXTERNAL_H */
+__END_DECLS
+
+#endif /* __GEDCOM_H */