first pass of connect->link gst-plugins and other stuff compiles without change at...
[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 #ifndef GST_DISABLE_DEPRECATED
29 /* 0.5.2 changes */
30
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
45 /* pad functions */
46 #define gst_pad_connect(a,b)            gst_pad_link(a,b)
47 #define gst_pad_connect_filtered(a,b,c) gst_pad_link_filtered(a,b,c)
48 #define gst_pad_disconnect(a,b)         gst_pad_unlink(a,b)
49 #define gst_pad_proxy_connect(a,b)      gst_pad_proxy_link(a,b)
50 #define gst_pad_set_connect_function(a,b) \
51                                         gst_pad_set_link_function(a,b)
52
53 typedef GstPadConnectFunction           GstPadLinkFunction;
54
55 #endif /* not GST_DISABLE_DEPRECATED */
56
57 #endif /* __GSTCOMPAT_H__ */