* xmlSetGenericErrorFunc: * @ctx: the new error handling context * @handler: the new handler function * * DEPRECATED: See xmlSetStructuredErrorFunc for alternatives. * * Set the global "generic" handler and context for error messages. * The generic error handler will only receive fragments of error * messages which should be concatenated or printed to a stream. * * If handler is NULL,
| 242 | * each thread. |
| 243 | */ |
| 244 | void |
| 245 | xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler) { |
| 246 | xmlGenericErrorContext = ctx; |
| 247 | if (handler != NULL) |
| 248 | xmlGenericError = handler; |
| 249 | else |
| 250 | xmlGenericError = xmlGenericErrorDefaultFunc; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * xmlSetStructuredErrorFunc: |