removed namespace code again, it was not needed :)

Original commit message from CVS:
removed namespace code again, it was not needed :)
This commit is contained in:
Wim Taymans 2003-06-09 13:14:35 +00:00
parent 605279f143
commit 7afb834917
2 changed files with 2 additions and 39 deletions

View file

@ -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

View file

@ -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);