• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/mxml-2.7/

Lines Matching defs:value

21  *   mxmlElementSetAttrf()   - Set an attribute with a formatted value.
22 * mxml_set_attr() - Set or add an attribute name/value pair.
38 char *value);
71 for (i = node->value.element.num_attrs, attr = node->value.element.attrs;
76 printf(" %s=\"%s\"\n", attr->name, attr->value);
86 free(attr->value);
92 node->value.element.num_attrs --;
106 const char * /* O - Attribute value or NULL */
130 for (i = node->value.element.num_attrs, attr = node->value.element.attrs;
135 printf(" %s=\"%s\"\n", attr->name, attr->value);
141 printf(" Returning \"%s\"!\n", attr->value);
143 return (attr->value);
162 * If the named attribute already exists, the value of the attribute
163 * is replaced by the new string value. The string value is copied
171 const char *value) /* I - Attribute value */
173 char *valuec; /* Copy of value */
177 fprintf(stderr, "mxmlElementSetAttr(node=%p, name=\"%s\", value=\"%s\")\n",
178 node, name ? name : "(null)", value ? value : "(null)");
188 if (value)
189 valuec = strdup(value);
199 * 'mxmlElementSetAttrf()' - Set an attribute with a formatted value.
201 * If the named attribute already exists, the value of the attribute
202 * is replaced by the new formatted string. The formatted string value is
212 const char *format,/* I - Printf-style attribute value */
216 char *value; /* Value */
233 * Format the value...
237 value = _mxml_vstrdupf(format, ap);
240 if (!value)
242 name, node->value.element.name);
243 else if (mxml_set_attr(node, name, value))
244 free(value);
249 * 'mxml_set_attr()' - Set or add an attribute name/value pair.
255 char *value) /* I - Attribute value */
265 for (i = node->value.element.num_attrs, attr = node->value.element.attrs;
271 * Free the old value as needed...
274 if (attr->value)
275 free(attr->value);
277 attr->value = value;
286 if (node->value.element.num_attrs == 0)
289 attr = realloc(node->value.element.attrs,
290 (node->value.element.num_attrs + 1) * sizeof(mxml_attr_t));
295 name, node->value.element.name);
299 node->value.element.attrs = attr;
300 attr += node->value.element.num_attrs;
305 name, node->value.element.name);
309 attr->value = value;
311 node->value.element.num_attrs ++;