2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2000 Wim Taymans <wtay@chello.be>
5 * gst.h: Main header for GStreamer, apps should include this
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.
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.
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.
24 /* API compatibility stuff */
25 #ifndef __GSTCOMPAT_H__
26 #define __GSTCOMPAT_H__
29 #ifndef GST_DISABLE_DEPRECATED
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__)
38 #define gst_element_connect_many(a,args...) \
39 gst_element_link_many(a, ## args)
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)
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)
52 #define GST_PAD_IS_CONNECTED(a) GST_PAD_IS_LINKED(a)
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;
60 /* pad function types */
61 typedef GstPadLinkFunction GstPadConnectFunction;
63 /* probably not used */
67 #endif /* not GST_DISABLE_DEPRECATED */
70 #endif /* __GSTCOMPAT_H__ */