2003-01-16 21:22:06 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
|
|
|
*
|
2003-01-16 22:03:39 +00:00
|
|
|
* gsturi.h: Header for uri to element mappings
|
2003-01-16 21:22:06 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_URI_H__
|
|
|
|
#define __GST_URI_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <gst/gstelement.h>
|
|
|
|
#include <gst/gstpluginfeature.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2003-02-10 20:12:01 +00:00
|
|
|
/* uri handler functions */
|
2003-01-16 21:22:06 +00:00
|
|
|
#define GST_TYPE_URI_HANDLER (gst_uri_handler_get_type ())
|
|
|
|
#define GST_URI_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_URI_HANDLER, GstURIHandler))
|
|
|
|
#define GST_IS_URI_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_URI_HANDLER))
|
|
|
|
#define GST_URI_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_URI_HANDLER, GstURIHandlerClass))
|
|
|
|
#define GST_IS_URI_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_URI_HANDLER))
|
|
|
|
#define GST_URI_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_URI_HANDLER, GstURIHandlerClass))
|
|
|
|
|
|
|
|
typedef struct _GstURIHandler GstURIHandler;
|
|
|
|
typedef struct _GstURIHandlerClass GstURIHandlerClass;
|
|
|
|
|
|
|
|
struct _GstURIHandler {
|
|
|
|
GstPluginFeature feature;
|
|
|
|
|
2003-01-16 22:03:39 +00:00
|
|
|
/* --- public ---- */
|
2003-01-16 21:22:06 +00:00
|
|
|
gchar *uri; /* The uri that is described */
|
|
|
|
gchar *longdesc; /* description of the uri */
|
|
|
|
gchar *element; /* The element that can handle this uri */
|
|
|
|
gchar *property; /* The property on the element to set the uri */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstURIHandlerClass {
|
|
|
|
GstPluginFeatureClass parent;
|
|
|
|
};
|
|
|
|
|
|
|
|
GType gst_uri_handler_get_type (void);
|
|
|
|
|
|
|
|
GstURIHandler* gst_uri_handler_new (const gchar *name,
|
|
|
|
const gchar *uri, const gchar *longdesc,
|
|
|
|
const gchar *element, gchar *property);
|
|
|
|
|
|
|
|
GstURIHandler* gst_uri_handler_find (const gchar *name);
|
|
|
|
GstURIHandler* gst_uri_handler_find_by_uri (const gchar *uri);
|
|
|
|
|
2003-01-16 22:03:39 +00:00
|
|
|
GstElement* gst_uri_handler_create (GstURIHandler *handler, const gchar *name);
|
2003-01-16 21:22:06 +00:00
|
|
|
GstElement* gst_uri_handler_make_by_uri (const gchar *uri, const gchar *name);
|
|
|
|
|
2003-04-14 18:53:03 +00:00
|
|
|
/* filters */
|
|
|
|
gboolean gst_uri_handler_uri_filter (GstPluginFeature *feature, const gchar *uri);
|
|
|
|
|
2003-01-16 21:22:06 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2003-02-10 20:12:01 +00:00
|
|
|
#endif /* __GST_URI_H */
|