* xmlXPathSetErrorHandler: * @ctxt: the XPath context * @handler: error handler * @data: user data which will be passed to the handler * * Register a callback function that will be called on errors and * warnings. If handler is NULL, the error handler will be deactivated. * * Available since 2.13.0. */
| 5168 | * Available since 2.13.0. |
| 5169 | */ |
| 5170 | void |
| 5171 | xmlXPathSetErrorHandler(xmlXPathContextPtr ctxt, |
| 5172 | xmlStructuredErrorFunc handler, void *data) { |
| 5173 | if (ctxt == NULL) |
| 5174 | return; |
| 5175 | |
| 5176 | ctxt->error = handler; |
| 5177 | ctxt->userData = data; |
| 5178 | } |
| 5179 | |
| 5180 | /************************************************************************ |
| 5181 | * * |
no outgoing calls
no test coverage detected