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;