Displaying 2 results from an estimated 2 matches for "1f05c7d".
2007 Mar 01
0
7 commits - libswfdec/swfdec_connection.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...ECT_CLASS (klass);
+ SwfdecScriptableClass *scriptable_class = SWFDEC_SCRIPTABLE_CLASS (klass);
object_class->dispose = swfdec_net_stream_dispose;
+
+ scriptable_class->jsclass = &net_stream_class;
}
static void
diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
index 1f05c7d..b5cbf26 100644
--- a/libswfdec/swfdec_xml.c
+++ b/libswfdec/swfdec_xml.c
@@ -141,12 +141,16 @@ swfdec_xml_dispose (GObject *object)
G_OBJECT_CLASS (swfdec_xml_parent_class)->dispose (object);
}
+extern const JSClass xml_class;
static void
swfdec_xml_class_init (SwfdecXmlClass *klass)
{...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...+}
+
+void
+swfdec_js_add_xml (SwfdecPlayer *player)
+{
+ JS_InitClass (player->jscx, player->jsobj, NULL,
+ &xml_class, swfdec_js_xml_new, 0, NULL, xml_methods,
+ NULL, NULL);
+}
+
diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
new file mode 100644
index 0000000..1f05c7d
--- /dev/null
+++ b/libswfdec/swfdec_xml.c
@@ -0,0 +1,187 @@
+/* Swfdec
+ * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Fr...