1 /* 2 * Copyright (C) 2009,2010 Sebastian Dröge <sebastian.droege@collabora.co.uk> 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 WebKitWebSourceGStreamer_h 20 #define WebKitWebSourceGStreamer_h 21 #if USE(GSTREAMER) 22 23 #include "Frame.h" 24 #include <gst/gst.h> 25 26 G_BEGIN_DECLS 27 28 #define WEBKIT_TYPE_WEB_SRC (webkit_web_src_get_type ()) 29 #define WEBKIT_WEB_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WEBKIT_TYPE_WEB_SRC, WebKitWebSrc)) 30 #define WEBKIT_WEB_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WEBKIT_TYPE_WEB_SRC, WebKitWebSrcClass)) 31 #define WEBKIT_IS_WEB_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WEBKIT_TYPE_WEB_SRC)) 32 #define WEBKIT_IS_WEB_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WEBKIT_TYPE_WEB_SRC)) 33 34 typedef struct _WebKitWebSrc WebKitWebSrc; 35 typedef struct _WebKitWebSrcClass WebKitWebSrcClass; 36 typedef struct _WebKitWebSrcPrivate WebKitWebSrcPrivate; 37 38 struct _WebKitWebSrc { 39 GstBin parent; 40 41 WebKitWebSrcPrivate *priv; 42 }; 43 44 struct _WebKitWebSrcClass { 45 GstBinClass parentClass; 46 }; 47 48 GType webkit_web_src_get_type(void); 49 void webKitWebSrcSetFrame(WebKitWebSrc* src, WebCore::Frame* frame); 50 51 G_END_DECLS 52 53 #endif // USE(GSTREAMER) 54 #endif 55