Lines Matching defs:lib
161 void *data; /* data lib or specific pointer */
976 xmlRelaxNGTypeLibraryPtr lib;
978 lib = (xmlRelaxNGTypeLibraryPtr) define->data;
979 if ((lib != NULL) && (lib->freef != NULL))
980 lib->freef(lib->data, (void *) define->attrs);
2723 * @lib: the type library structure
2729 xmlRelaxNGFreeTypeLibrary(xmlRelaxNGTypeLibraryPtr lib,
2732 if (lib == NULL)
2734 if (lib->namespace != NULL)
2735 xmlFree((xmlChar *) lib->namespace);
2736 xmlFree(lib);
2759 xmlRelaxNGTypeLibraryPtr lib;
2771 lib =
2774 if (lib == NULL) {
2778 memset(lib, 0, sizeof(xmlRelaxNGTypeLibrary));
2779 lib->namespace = xmlStrdup(namespace);
2780 lib->data = data;
2781 lib->have = have;
2782 lib->comp = comp;
2783 lib->check = check;
2784 lib->facet = facet;
2785 lib->freef = freef;
2786 ret = xmlHashAddEntry(xmlRelaxNGRegisteredTypes, namespace, lib);
2791 xmlRelaxNGFreeTypeLibrary(lib, namespace);
3523 xmlRelaxNGTypeLibraryPtr lib = NULL;
3548 lib = (xmlRelaxNGTypeLibraryPtr)
3550 if (lib == NULL) {
3556 def->data = lib;
3557 if (lib->have == NULL) {
3562 success = lib->have(lib->data, def->name);
3584 } else if ((lib != NULL) && (lib->check != NULL) && (success == 1)) {
3588 lib->check(lib->data, def->name, def->value, &val, node);
3616 xmlRelaxNGTypeLibraryPtr lib;
3647 lib
3649 if (lib == NULL) {
3655 def->data = lib;
3656 if (lib->have == NULL) {
3661 tmp = lib->have(lib->data, def->name);
3710 if (lib != NULL) {
8591 xmlRelaxNGTypeLibraryPtr lib;
8598 lib = (xmlRelaxNGTypeLibraryPtr) define->data;
8599 if (lib->check != NULL) {
8603 lib->check(lib->data, define->name, value, &result, node);
8605 ret = lib->check(lib->data, define->name, value, NULL, node);
8611 if ((result != NULL) && (lib != NULL) && (lib->freef != NULL))
8612 lib->freef(lib->data, result);
8624 if (lib->facet != NULL) {
8625 tmp = lib->facet(lib->data, define->name, cur->name,
8643 if ((result != NULL) && (lib != NULL) && (lib->freef != NULL))
8644 lib->freef(lib->data, result);
8736 xmlRelaxNGTypeLibraryPtr lib;
8738 lib = (xmlRelaxNGTypeLibraryPtr) define->data;
8739 if ((lib != NULL) && (lib->comp != NULL)) {
8740 ret = lib->comp(lib->data, define->name,