Increase library version
[gedcom-parse.git] / gedcom / message.c
index 6943f6078c9b2b2fb6836eac1e25deaffc9cf159..bac44078646741153d1922cf70a3c1055b188b26 100644 (file)
 
 void cleanup_mess_buffer();
 
-struct safe_buffer mess_buffer = { NULL, 0, cleanup_mess_buffer };
+struct safe_buffer mess_buffer = { NULL, 0, NULL, 0, cleanup_mess_buffer };
 Gedcom_msg_handler msg_handler = NULL;
 
+/** This function registers a callback that is called if there are errors,
+    warnings or just messages coming from the parser.
+
+    \param func The callback to be called on errors, warnings or messages; see
+    \ref Gedcom_msg_handler for the signature of the callback.
+*/
 void gedcom_set_message_handler(Gedcom_msg_handler func)
 {
   msg_handler = func;