• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_manifest/lib/

Lines Matching +defs:child +defs:name

318 // returns the current node's element name and namespace URI
320 static void copyNodeNamespaceAndName(CFDictionaryRef namespaces, CFXMLNodeRef node, CFStringRef* namespace, CFStringRef* name) {
323 *name = NULL;
331 *name = CFRetain(CFArrayGetValueAtIndex(parts, 0));
336 *name = CFRetain(CFArrayGetValueAtIndex(parts, 1));
371 // name and namespace URI
372 static CFArrayRef copyChildrenWithName(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
384 if (ns && n && CFEqual(ns, namespace) && CFEqual(n, name)) {
398 // convenience function to find the first child element
399 // with the given element name and namespace URI
400 static CFXMLTreeRef getChildWithName(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
402 CFArrayRef array = copyChildrenWithName(tree, inNamespaces, namespace, name);
410 // returns the string value of the specified child node
411 static CFStringRef copyChildWithNameAsString(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
413 CFXMLTreeRef child = getChildWithName(tree, inNamespaces, namespace, name);
414 if (child) result = copyTreeString(child);
418 // returns the integer value of the specified child node
419 static CFNumberRef copyChildWithNameAsInteger(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
421 CFXMLTreeRef child = getChildWithName(tree, inNamespaces, namespace, name);
422 if (child) {
423 CFStringRef str = copyTreeString(child);
433 // returns an array of URLs aggregated from the child
434 // nodes matching the given name and namespace URI.
435 static CFArrayRef copyChildrenWithNameAsURLs(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
437 CFArrayRef children = copyChildrenWithName(tree, inNamespaces, namespace, name);
441 CFXMLTreeRef child = (CFXMLTreeRef)CFArrayGetValueAtIndex(children, i);
442 CFStringRef str = copyTreeString(child);
457 // returns the base 64 decoded value of the specified child node
458 static CFDataRef copyChildWithNameAsData(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
460 CFXMLTreeRef child = getChildWithName(tree, inNamespaces, namespace, name);
461 if (child) {
462 CFStringRef str = copyTreeString(child);
481 // returns the CFDate value of the specified child node
483 static CFDateRef copyChildWithNameAsDate(CFXMLTreeRef tree, CFDictionaryRef inNamespaces, CFStringRef namespace, CFStringRef name) {
485 CFXMLTreeRef child = getChildWithName(tree, inNamespaces, namespace, name);
486 if (child) {
487 CFMutableStringRef str = copyTreeString(child);
538 CFStringRef ns, name;
539 copyNodeNamespaceAndName(namespaces, node, &ns, &name);
541 if (ns && name) {
544 if (CFEqual(name, SD_XML_ROOT)) {
548 } else if (CFEqual(name, SD_XML_RESOURCE)) {
556 CFStringRef name = copyChildWithNameAsString(tree, namespaces, SD_XML_NAMESPACE, SD_XML_NAME);
557 if (name && state->plist) {
558 CFDictionarySetValue(state->plist, SD_XML_NAME, name);
559 CFRelease(name);
576 } else if (CFEqual(name, SD_XML_SITES)) {
583 } else if (CFEqual(name, SD_XML_VERIFICATIONS)) {
591 } else if (CFEqual(name, SD_XML_VERIFICATION) && state->plist) {
599 CFXMLTreeRef child;
600 #pragma unused(child)
628 cfprintf(stderr, "%sELEM:\t%@\t[%@]\n", state->prefix, name, ns);
632 if (name) CFRelease(name);
772 CFStringRef name = CFDictionaryGetValue(plist, SD_XML_NAME);
773 if (name) {
774 _appendCString(data, "\t<name>");
775 _appendCFString(data, name);
776 _appendCString(data, "</name>\n");