fix doc build fix autogen
[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
30 #ifndef GST_DISABLE_DEPRECATED
31 /* 0.5.2 changes */
32
33 /* element functions */
34 #define gst_element_connect(a,b)        gst_element_link(a,b)
35 #define gst_element_connect_pads(a,b,c,d) \
36                                         gst_element_link_pads(a,b,c,d)
37 #ifdef G_HAVE_ISO_VARARGS
38 #define gst_element_connect_many(a,...) gst_element_link_many(a,__VA_ARGS__)
39 #else
40 #define gst_element_connect_many(a,args...) \
41                                         gst_element_link_many(a, ## args)
42 #endif
43 #define gst_element_connect_filtered(a,b,c) \
44                                         gst_element_link_filtered(a,b,c)
45 #define gst_element_disconnect(a,b)     gst_element_unlink(a,b)
46
47 /* pad functions */
48 #define gst_pad_connect(a,b)            gst_pad_link(a,b)
49 #define gst_pad_connect_filtered(a,b,c) gst_pad_link_filtered(a,b,c)
50 #define gst_pad_disconnect(a,b)         gst_pad_unlink(a,b)
51 #define gst_pad_proxy_connect(a,b)      gst_pad_proxy_link(a,b)
52 #define gst_pad_set_connect_function(a,b) \
53                                         gst_pad_set_link_function(a,b)
54
55 /* pad macros */
56 #define GST_PAD_IS_CONNECTED(a)         GST_PAD_IS_LINKED(a)
57
58 /* pad enums */
59 #define GST_PAD_CONNECT_REFUSED         GST_PAD_LINK_REFUSED
60 #define GST_PAD_CONNECT_DELAYED         GST_PAD_LINK_DELAYED
61 #define GST_PAD_CONNECT_OK              GST_PAD_LINK_OK
62 #define GST_PAD_CONNECT_DONE            GST_PAD_LINK_DONE
63 typedef GstPadLinkReturn                GstPadConnectReturn;
64
65 /* pad function types */
66 typedef GstPadLinkFunction              GstPadConnectFunction;
67
68 /* probably not used */
69 /*
70  * GST_RPAD_LINKFUNC
71  */
72 #endif /* not GST_DISABLE_DEPRECATED */
73
74 G_END_DECLS
75
76 #endif /* __GSTCOMPAT_H__ */