Better interface for encoding.
[gedcom-parse.git] / gedcom.h
index 742473c09eba5640ce9b3c9049345a464f8d2097..82836e84ff9f28568dd9017662bffccc9fed79f0 100644 (file)
--- a/gedcom.h
+++ b/gedcom.h
@@ -1,10 +1,16 @@
 /* $Id$ */
 /* $Name$ */
+#ifndef __GEDCOM_H
+#define __GEDCOM_H
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
+#include <errno.h>
 
-#define MAXGEDCOMLEVEL 99
+#define MAXGEDCLEVEL 99
+#define MAXGEDCLINELEN 256
+#define MAXGEDCTAGLEN 31
 #define MAXSTDTAGLENGTH 4
 #define GEDCOMTAGOFFSET 257
 
@@ -15,8 +21,18 @@ typedef enum _MECH {
   IGNORE_ERRORS
 } MECHANISM;
 
+
 int        gedcom_error(char* s, ...);
-void       gedcom_enable_debug();
+int        gedcom_warning(char* s, ...);
+int        gedcom_message(char* s, ...);
+int        gedcom_debug_print(char* s, ...);
+void       gedcom_set_debug_level(int level);
 void       gedcom_set_error_handling(MECHANISM mechanism);
+void       gedcom_set_compat_handling(int enable_compat);
+
 int        gedcom_parse();
+
+int        gedcom_lex();
+
 extern int line_no;
+#endif /* __GEDCOM_H */