urihandler: fix return type of _get_uri_type()

Return a GstURIType and not a plain guint.
This commit is contained in:
Tim-Philipp Müller 2011-11-13 20:56:02 +00:00
parent d3560cc9a6
commit 7652df7352
3 changed files with 5 additions and 5 deletions

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

View 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,

View 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,