X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fmessage.c;h=bac44078646741153d1922cf70a3c1055b188b26;hb=refs%2Fheads%2Flibiconv-gedcom-1.14;hp=c756356eb1e852b249569e15e8f98220ed5f946c;hpb=989bc1d7262c6e767de09804fb530a5ebea55a5d;p=gedcom-parse.git diff --git a/gedcom/message.c b/gedcom/message.c index c756356..bac4407 100644 --- a/gedcom/message.c +++ b/gedcom/message.c @@ -31,19 +31,10 @@ 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. See - \ref Gedcom_msg_handler for the signature of the callback. + warnings or just messages coming from the parser. - For errors, the \c msg passed to the callback will have the format: - \code - Error on line : - \endcode - Note that the entire string will be properly internationalized, and - encoded in UTF-8 (Why UTF-8?). - Also, no newline is appended, so that - the application program can use it in any way it wants. Warnings are - similar, but use "Warning" instead of "Error". Messages are plain - text, without any prefix. + \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) {