Added reading date from the GEDCOM file and storing it in individual.
[familia.git] / src / gedcom / familia_gedcom.h
index 0cd88a9cc80539ccd4ecfb059840e22620ae3916..d0601710ce3b1f139b368e6b539f179ce6af6768 100644 (file)
 
 #include <gedcom.h>
 
+#include "../storage/storage.h"
+
 /**
  * @file familia_gedcom.h
  * @brief GEDCOM Parser integration code.
  */
 
+/**
+ * Familia - Gedcom context.
+ * Used for passing current object/value between different states.
+ */
+struct fged_ctxt {
+       /** Currently parsed object, stored in storage */
+       void * object;
+
+       /** Type of current object */
+       enum familia_storage_type type;
+};
+
+enum fged_timestamp_type {
+       UNSET,
+
+       BIRTH,
+       
+};
+
+/**
+ * Familia - Gedcom timestampable context.
+ */
+struct fged_timestampable_ctxt {
+       /** Parent context */
+       struct familia_gedcom_parser_ctxt * ctxt;
+
+       /** Type of the timestamp */
+       enum fged_timestamp_type type;
+};
+
 /**
  * Initializes integration with gedcom-parse library
  */