2 * Copyright (C) 2011 Igalia S.L
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library 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.
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 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef GRefPtrGStreamer_h
21 #define GRefPtrGStreamer_h
22 #if USE(GSTREAMER) || ENABLE(TIZEN_WEB_AUDIO)
24 #include <wtf/gobject/GRefPtr.h>
26 typedef struct _GstElement GstElement;
27 typedef struct _GstPad GstPad;
28 typedef struct _GstPadTemplate GstPadTemplate;
29 typedef struct _GstCaps GstCaps;
30 typedef struct _GstTask GstTask;
31 typedef struct _GstBus GstBus;
32 typedef struct _GstElementFactory GstElementFactory;
36 template<> GRefPtr<GstElement> adoptGRef(GstElement* ptr);
37 template<> GstElement* refGPtr<GstElement>(GstElement* ptr);
38 template<> void derefGPtr<GstElement>(GstElement* ptr);
40 template<> GRefPtr<GstPad> adoptGRef(GstPad* ptr);
41 template<> GstPad* refGPtr<GstPad>(GstPad* ptr);
42 template<> void derefGPtr<GstPad>(GstPad* ptr);
44 template<> GRefPtr<GstPadTemplate> adoptGRef(GstPadTemplate* ptr);
45 template<> GstPadTemplate* refGPtr<GstPadTemplate>(GstPadTemplate* ptr);
46 template<> void derefGPtr<GstPadTemplate>(GstPadTemplate* ptr);
48 template<> GstCaps* refGPtr<GstCaps>(GstCaps* ptr);
49 template<> void derefGPtr<GstCaps>(GstCaps* ptr);
51 template<> GRefPtr<GstTask> adoptGRef(GstTask* ptr);
52 template<> GstTask* refGPtr<GstTask>(GstTask* ptr);
53 template<> void derefGPtr<GstTask>(GstTask* ptr);
55 template<> GRefPtr<GstBus> adoptGRef(GstBus* ptr);
56 template<> GstBus* refGPtr<GstBus>(GstBus* ptr);
57 template<> void derefGPtr<GstBus>(GstBus* ptr);
59 template<> GRefPtr<GstElementFactory> adoptGRef(GstElementFactory* ptr);
60 template<> GstElementFactory* refGPtr<GstElementFactory>(GstElementFactory* ptr);
61 template<> void derefGPtr<GstElementFactory>(GstElementFactory* ptr);
65 #endif // USE(GSTREAMER)