Displaying 5 results from an estimated 5 matches for "swfdec_xml_node_init_values".
2007 Nov 02
0
2 commits - libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
..._OBJECT (*node)->context,
+ name));
if (child == NULL)
return strchr (p, '\0');
}
diff --git a/libswfdec/swfdec_xml_node.c b/libswfdec/swfdec_xml_node.c
index 1acad6a..a528896 100644
--- a/libswfdec/swfdec_xml_node.c
+++ b/libswfdec/swfdec_xml_node.c
@@ -976,8 +976,10 @@ swfdec_xml_node_init_values (SwfdecXmlNode *node, int type, const char* value)
node->childNodes = SWFDEC_AS_ARRAY (swfdec_as_array_new (object->context));
- if (node->children == NULL || node->attributes == NULL || node->childNodes)
+ if (node->children == NULL || node->attributes == NULL ||
+...
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...&val);
@@ -664,6 +668,9 @@ swfdec_xml_node_cloneNode (SwfdecAsContext *cx, SwfdecAsObject *object,
}
new = swfdec_xml_node_clone (cx, SWFDEC_XML_NODE (object), deep);
+ if (new == NULL)
+ return;
+
SWFDEC_AS_VALUE_SET_OBJECT (ret, SWFDEC_AS_OBJECT (new));
}
@@ -968,6 +975,9 @@ swfdec_xml_node_init_values (SwfdecXmlNode *node, int type, const char* value)
}
node->childNodes = SWFDEC_AS_ARRAY (swfdec_as_array_new (object->context));
+
+ if (node->children == NULL || node->attributes == NULL || node->childNodes)
+ node->valid = FALSE;
}
static void
commit 3bb580e81b04...
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
...g (xml, &node, p);
}
} else {
- p = swfdec_xml_parse_text (xml, node, p, ignoreWhite);
+ p = swfdec_xml_parse_text (xml, node, p, ignore_white);
}
g_assert (p != NULL);
}
@@ -877,7 +879,7 @@ swfdec_xml_construct (SwfdecAsContext *cx, SwfdecAsObject *object,
swfdec_xml_node_init_values (SWFDEC_XML_NODE (object),
SWFDEC_XML_NODE_ELEMENT, SWFDEC_AS_STR_EMPTY);
- SWFDEC_AS_VALUE_SET_STRING (&SWFDEC_XML (object)->contentType,
+ SWFDEC_AS_VALUE_SET_STRING (&SWFDEC_XML (object)->content_type,
SWFDEC_AS_STR_application_x_www_form_urlencoded);
SWFDEC_...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...ontext_use_mem (context, size))
@@ -1040,14 +1041,23 @@ swfdec_xml_node_new (SwfdecAsContext *context, SwfdecXmlNodeType type,
return NULL;
swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (node), SWFDEC_AS_VALUE_GET_OBJECT (&val));
- swfdec_xml_node_init_properties (context);
-
swfdec_xml_node_init_values (node, type,
swfdec_as_context_get_string (SWFDEC_AS_OBJECT (node)->context, value));
return node;
}
+SwfdecXmlNode *
+swfdec_xml_node_new (SwfdecAsContext *context, SwfdecXmlNodeType type,
+ const char* value)
+{
+ g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...text, size);
+ swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_XML, &val);
+ if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) {
+ swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (xml),
+ SWFDEC_AS_VALUE_GET_OBJECT (&val));
+ }
+
+ xml->ignoreWhite = ignore_white;
+
+ swfdec_xml_node_init_values (SWFDEC_XML_NODE (xml),
+ SWFDEC_XML_NODE_ELEMENT, SWFDEC_AS_STR_EMPTY);
+
+ SWFDEC_AS_VALUE_SET_STRING (&xml->contentType,
+ SWFDEC_AS_STR_application_x_www_form_urlencoded);
+
+ if (str != NULL)
+ swfdec_xml_parseXML (xml, str);
+
+ return xml;
+}
+
+SwfdecXml *
+swfdec_xml...