+void family_end(Gedcom_ctxt self)
+{
+ printf("Family end, xreftag is %s\n", family_xreftags[(int)self]);
+}
+
+void subscribe_callbacks()
+{
+ subscribe_to_record(REC_HEAD, header_start, header_end);
+ subscribe_to_record(REC_FAM, family_start, family_end);
+}
+
+void gedcom_message_handler(Gedcom_msg_type type, char *msg)
+{
+ if (type == MESSAGE)
+ fprintf(stderr, "MESSAGE: ");
+ else if (type == WARNING)
+ fprintf(stderr, "WARNING: ");
+ else if (type == ERROR)
+ fprintf(stderr, "ERROR: ");
+ fprintf(stderr, msg);