MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / init_CPL_parser

Function init_CPL_parser

modules/cpl_c/cpl_parser.c:1539–1551  ·  view source on GitHub ↗

loads and parse the dtd file; a validating context is created */

Source from the content-addressed store, hash-verified

1537
1538/* loads and parse the dtd file; a validating context is created */
1539int init_CPL_parser( char* DTD_filename )
1540{
1541 dtd = xmlParseDTD( NULL, (unsigned char*)DTD_filename);
1542 if (!dtd) {
1543 LM_ERR("DTD not parsed successfully\n");
1544 return -1;
1545 }
1546 cvp.userData = (void *) stderr;
1547 cvp.error = (xmlValidityErrorFunc) /*err_print*/ fprintf;
1548 cvp.warning = (xmlValidityWarningFunc) /*err_print*/ fprintf;
1549
1550 return 1;
1551}
1552

Callers 1

cpl_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected