gst-indent run on core
[platform/upstream/gstreamer.git] / gst / gstcompat.h
1 /* GStreamer
2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3  *                    2000 Wim Taymans <wtay@chello.be>
4  *
5  * gst.h: Main header for GStreamer, apps should include this
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23
24 /* API compatibility stuff */
25 #ifndef __GSTCOMPAT_H__
26 #define __GSTCOMPAT_H__
27
28 G_BEGIN_DECLS
29 #ifndef GST_DISABLE_DEPRECATED
30 /* 0.5.2 changes */
31 /* element functions */
32 #define gst_element_connect(a,b)        gst_element_link(a,b)
33 #define gst_element_connect_pads(a,b,c,d) \
34                                         gst_element_link_pads(a,b,c,d)
35 #ifdef G_HAVE_ISO_VARARGS
36 #define gst_element_connect_many(a,...) gst_element_link_many(a,__VA_ARGS__)
37 #else
38 #define gst_element_connect_many(a,args...) \
39                                         gst_element_link_many(a, ## args)
40 #endif
41 #define gst_element_connect_filtered(a,b,c) \
42                                         gst_element_link_filtered(a,b,c)
43 #define gst_element_disconnect(a,b)     gst_element_unlink(a,b)
44 /* pad functions */
45 #define gst_pad_connect(a,b)            gst_pad_link(a,b)
46 #define gst_pad_connect_filtered(a,b,c) gst_pad_link_filtered(a,b,c)
47 #define gst_pad_disconnect(a,b)         gst_pad_unlink(a,b)
48 #define gst_pad_proxy_connect(a,b)      gst_pad_proxy_link(a,b)
49 #define gst_pad_set_connect_function(a,b) \
50                                         gst_pad_set_link_function(a,b)
51 /* pad macros */
52 #define GST_PAD_IS_CONNECTED(a)         GST_PAD_IS_LINKED(a)
53 /* pad enums */
54 #define GST_PAD_CONNECT_REFUSED         GST_PAD_LINK_REFUSED
55 #define GST_PAD_CONNECT_DELAYED         GST_PAD_LINK_DELAYED
56 #define GST_PAD_CONNECT_OK              GST_PAD_LINK_OK
57 #define GST_PAD_CONNECT_DONE            GST_PAD_LINK_DONE
58 typedef GstPadLinkReturn GstPadConnectReturn;
59
60 /* pad function types */
61 typedef GstPadLinkFunction GstPadConnectFunction;
62
63 /* probably not used */
64 /*
65  * GST_RPAD_LINKFUNC
66  */
67 #endif /* not GST_DISABLE_DEPRECATED */
68
69 G_END_DECLS
70 #endif /* __GSTCOMPAT_H__ */