Home | History | Annotate | Download | only in gtk
      1 /*
      2  *  Copyright (C) 2009 Igalia S.L
      3  *
      4  *  This library is free software; you can redistribute it and/or
      5  *  modify it under the terms of the GNU Lesser General Public
      6  *  License as published by the Free Software Foundation; either
      7  *  version 2 of the License, or (at your option) any later version.
      8  *
      9  *  This library is distributed in the hope that it will be useful,
     10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     12  *  Lesser General Public License for more details.
     13  *
     14  *  You should have received a copy of the GNU Lesser General Public
     15  *  License along with this library; if not, write to the Free Software
     16  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     17  */
     18 
     19 #ifndef DATA_SOURCE_GSTREAMER_H
     20 #define DATA_SOURCE_GSTREAMER_H
     21 
     22 #include <glib-object.h>
     23 #include <gst/base/gstbasesrc.h>
     24 
     25 G_BEGIN_DECLS
     26 
     27 #define WEBKIT_TYPE_DATA_SRC            (webkit_data_src_get_type ())
     28 #define WEBKIT_DATA_SRC(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEBKIT_TYPE_DATA_SRC, WebkitDataSrc))
     29 #define WEBKIT_DATA_SRC_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), WEBKIT_TYPE_DATA_SRC, WebkitDataSrcClass))
     30 #define WEBKIT_IS_DATA_SRC(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEBKIT_TYPE_DATA_SRC))
     31 #define WEBKIT_IS_DATA_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEBKIT_TYPE_DATA_SRC))
     32 
     33 typedef struct _WebkitDataSrc        WebkitDataSrc;
     34 typedef struct _WebkitDataSrcClass   WebkitDataSrcClass;
     35 
     36 
     37 struct _WebkitDataSrc {
     38     GstBin parent;
     39 
     40     /* explicit pointers to stuff used */
     41     GstElement* kid;
     42     GstPad* pad;
     43     gchar* uri;
     44 };
     45 
     46 struct _WebkitDataSrcClass {
     47     GstBinClass parent_class;
     48 };
     49 
     50 GType webkit_data_src_get_type(void);
     51 
     52 G_END_DECLS
     53 
     54 #endif
     55