source: trunk/third/gstreamer/gst/gstcompat.h @ 21005

Revision 21005, 2.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21004, which included commits to RCS files with non-trunk default branches.
Line 
1/* GStreamer
2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 *                    2000 Wim Taymans <wtay@chello.be>
4 *
5 * gstcompat.h: backwards compatibility stuff
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
28G_BEGIN_DECLS
29
30#ifndef GST_DISABLE_DEPRECATED
31/* 0.5.2 changes; remove these ASAP */
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#elif defined(G_HAVE_GNUC_VARARGS)
40#define gst_element_connect_many(a,args...) \
41                                        gst_element_link_many(a, ## args)
42#else
43/* FIXME: need an inline function */
44#endif
45#define gst_element_connect_filtered(a,b,c) \
46                                        gst_element_link_filtered(a,b,c)
47#define gst_element_disconnect(a,b)     gst_element_unlink(a,b)
48
49/* pad functions */
50#define gst_pad_connect(a,b)            gst_pad_link(a,b)
51#define gst_pad_connect_filtered(a,b,c) gst_pad_link_filtered(a,b,c)
52#define gst_pad_disconnect(a,b)         gst_pad_unlink(a,b)
53#define gst_pad_proxy_connect(a,b)      gst_pad_proxy_link(a,b)
54#define gst_pad_set_connect_function(a,b) \
55                                        gst_pad_set_link_function(a,b)
56
57/* pad macros */
58#define GST_PAD_IS_CONNECTED(a)         GST_PAD_IS_LINKED(a)
59
60/* pad enums */
61#define GST_PAD_CONNECT_REFUSED         GST_PAD_LINK_REFUSED
62#define GST_PAD_CONNECT_DELAYED         GST_PAD_LINK_DELAYED
63#define GST_PAD_CONNECT_OK              GST_PAD_LINK_OK
64#define GST_PAD_CONNECT_DONE            GST_PAD_LINK_DONE
65typedef GstPadLinkReturn                GstPadConnectReturn;
66
67/* pad function types */
68typedef GstPadLinkFunction              GstPadConnectFunction;
69
70/* probably not used */
71/*
72 * GST_RPAD_LINKFUNC
73 */
74
75/* 0.8.1.1 removal; remove completely in 0.9 */
76/* information messages */
77#  ifdef G_HAVE_ISO_VARARGS
78#define gst_info(...) GST_INFO(__VA_ARGS__)
79#  elif defined(G_HAVE_GNUC_VARARGS)
80#define gst_info(format,args...) GST_INFO(format,##args)
81#  endif
82
83#endif /* not GST_DISABLE_DEPRECATED */
84
85G_END_DECLS
86
87#endif /* __GSTCOMPAT_H__ */
Note: See TracBrowser for help on using the repository browser.