urihandler: fix return type of _get_uri_type()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 13 Nov 2011 20:56:02 +0000 (20:56 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 13 Nov 2011 20:56:02 +0000 (20:56 +0000)
Return a GstURIType and not a plain guint.

gst/gstelementfactory.c
gst/gstelementfactory.h
gst/gsturi.h

index 5c14a32..18431d0 100644 (file)
@@ -557,7 +557,7 @@ gst_element_factory_get_static_pad_templates (GstElementFactory * factory)
  *
  * Returns: type of URIs this element supports
  */
-gint
+GstURIType
 gst_element_factory_get_uri_type (GstElementFactory * factory)
 {
   g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), GST_URI_UNKNOWN);
index 474af3b..a7ecec5 100644 (file)
@@ -34,6 +34,7 @@ typedef struct _GstElementFactoryClass GstElementFactoryClass;
 #include <gst/gstpluginfeature.h>
 #include <gst/gstpadtemplate.h>
 #include <gst/gstiterator.h>
+#include <gst/gsturi.h>
 
 G_BEGIN_DECLS
 
@@ -62,7 +63,7 @@ struct _GstElementFactory {
   guint                 numpadtemplates;
 
   /* URI interface stuff */
-  guint                 uri_type;
+  GstURIType            uri_type;
   gchar **              uri_protocols;
 
   GList *               interfaces;             /* interface type names this element implements */
@@ -88,7 +89,7 @@ const gchar *           gst_element_factory_get_metadata        (GstElementFacto
 guint                   gst_element_factory_get_num_pad_templates (GstElementFactory *factory);
 const GList *           gst_element_factory_get_static_pad_templates (GstElementFactory *factory);
 
-gint                    gst_element_factory_get_uri_type        (GstElementFactory *factory);
+GstURIType              gst_element_factory_get_uri_type        (GstElementFactory *factory);
 gchar **                gst_element_factory_get_uri_protocols   (GstElementFactory *factory);
 
 gboolean                gst_element_factory_has_interface       (GstElementFactory *factory,
index aedadc0..7435fc7 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <glib.h>
 #include <gst/gstelement.h>
-#include <gst/gstpluginfeature.h>
 
 G_BEGIN_DECLS
 
@@ -144,7 +143,7 @@ GstElement *        gst_element_make_from_uri       (const GstURIType type,
 /* accessing the interface */
 GType          gst_uri_handler_get_type        (void);
 
-guint          gst_uri_handler_get_uri_type    (GstURIHandler * handler);
+GstURIType     gst_uri_handler_get_uri_type    (GstURIHandler * handler);
 gchar **       gst_uri_handler_get_protocols   (GstURIHandler * handler);
 gchar *                gst_uri_handler_get_uri         (GstURIHandler * handler);
 gboolean       gst_uri_handler_set_uri         (GstURIHandler * handler,