Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

struct rdf_license_t* rdf_get_license ( SPDocument document ) [read]

Attempts to match and retrieve a known RDF/License from the document XML.

Returns:
A pointer to the static RDF license structure

Definition at line 921 of file rdf.cpp.

{
    Inkscape::XML::Node const *repr = rdf_get_xml_repr ( document, XML_TAG_NAME_LICENSE, FALSE );
    if (repr) {
        for (struct rdf_license_t * license = rdf_licenses;
             license->name; license++ ) {
            if ( rdf_match_license ( repr, license ) ) return license;
        }
    }
#ifdef DEBUG_MATCH
    else {
        printf("no license XML\n");
    }
#endif
    return NULL;
}

Generated by  Doxygen 1.6.0   Back to index