From 7afb8349170689233d498313213fe4b3128f6c8b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 9 Jun 2003 13:14:35 +0000 Subject: [PATCH] removed namespace code again, it was not needed :) Original commit message from CVS: removed namespace code again, it was not needed :) --- gst/gstxml.c | 34 ++-------------------------------- gst/gstxml.h | 7 ------- 2 files changed, 2 insertions(+), 39 deletions(-) diff --git a/gst/gstxml.c b/gst/gstxml.c index 6f50c5ba67..02398bb4b2 100644 --- a/gst/gstxml.c +++ b/gst/gstxml.c @@ -107,7 +107,7 @@ gst_xml_new (void) * Returns: a pointer to an XML document */ xmlDocPtr -gst_xml_write_ns (GstElement *element, gint num_ns, GstXMLNs ns[]) +gst_xml_write (GstElement *element) { xmlDocPtr doc; xmlNodePtr elementnode; @@ -126,20 +126,6 @@ gst_xml_write_ns (GstElement *element, gint num_ns, GstXMLNs ns[]) return doc; } -/** - * gst_xml_write: - * @element: The element to write out - * - * Converts the given element into an XML presentation. - * - * Returns: a pointer to an XML document - */ -xmlDocPtr -gst_xml_write (GstElement *element) -{ - return gst_xml_write_ns (element, 0, NULL); -} - /** * gst_xml_write_file: * @element: The element to write out @@ -151,7 +137,7 @@ gst_xml_write (GstElement *element) * Returns: number of bytes written on success, -1 otherwise. */ gint -gst_xml_write_file_ns (GstElement *element, FILE *out, gint num_ns, GstXMLNs ns[]) +gst_xml_write_file (GstElement *element, FILE *out) { xmlDocPtr cur; #ifdef HAVE_LIBXML2 @@ -202,22 +188,6 @@ gst_xml_write_file_ns (GstElement *element, FILE *out, gint num_ns, GstXMLNs ns[ return ret; } -/** - * gst_xml_write_file: - * @element: The element to write out - * @out: an open file, like stdout - * - * Converts the given element into XML and writes the formatted XML to an open - * file. - * - * Returns: number of bytes written on success, -1 otherwise. - */ -gint -gst_xml_write_file (GstElement *element, FILE *out) -{ - return gst_xml_write_file_ns (element, out, 0, NULL); -} - /** * gst_xml_parse_doc: * @xml: a pointer to a GstXML object diff --git a/gst/gstxml.h b/gst/gstxml.h index 352da43130..5e9772e14a 100644 --- a/gst/gstxml.h +++ b/gst/gstxml.h @@ -52,11 +52,6 @@ struct _GstXML { typedef struct _GstXMLNs GstXMLNs; -struct _GstXMLNs { - gchar *href; - gchar *prefix; -}; - struct _GstXMLClass { GstObjectClass parent_class; @@ -70,11 +65,9 @@ GType gst_xml_get_type (void); /* create an XML document out of a pipeline */ xmlDocPtr gst_xml_write (GstElement *element); -xmlDocPtr gst_xml_write_ns (GstElement *element, gint num_ns, GstXMLNs ns[]); /* write a formatted representation of a pipeline to an open file */ gint gst_xml_write_file (GstElement *element, FILE *out); -gint gst_xml_write_file_ns (GstElement *element, FILE *out, gint num_ns, GstXMLNs ns[]); GstXML* gst_xml_new (void); -- 2.34.1