2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2004 Wim Taymans <wim@fluendo.com>
5 * gstcompat.h: backwards compatibility stuff
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 * @short_description: Deprecated API entries
26 * Please do not use these in new code.
27 * These symbols are only available by defining GST_DISABLE_DEPRECATED.
28 * This can be done in CFLAGS for compiling old code.
31 /* API compatibility stuff */
32 #ifndef __GSTCOMPAT_H__
33 #define __GSTCOMPAT_H__
37 /* added to ease the transition to 0.11 */
38 #define gst_element_class_set_details_simple gst_element_class_set_metadata
40 #define gst_element_factory_get_longname(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_LONGNAME)
41 #define gst_element_factory_get_klass(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_KLASS)
42 #define gst_element_factory_get_description(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_DESCRIPTION)
43 #define gst_element_factory_get_author(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_AUTHOR)
44 #define gst_element_factory_get_documentation_uri(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_DOC_URI)
45 #define gst_element_factory_get_icon_name(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_ICON_NAME)
47 #define gst_pad_get_caps_reffed(p) gst_pad_get_caps(p)
48 #define gst_pad_peer_get_caps_reffed(p) gst_pad_peer_get_caps(p)
50 //#define gst_buffer_create_sub(b,o,s) gst_buffer_copy_region(b,GST_BUFFER_COPY_ALL,o,s)
52 #define gst_buffer_new_and_alloc(s) gst_buffer_new_allocate(NULL, s, NULL)
54 #define GST_BUFFER_TIMESTAMP GST_BUFFER_PTS
55 #define GST_BUFFER_TIMESTAMP_IS_VALID GST_BUFFER_PTS_IS_VALID
57 #define gst_adapter_prev_timestamp gst_adapter_prev_pts
59 #ifndef GST_DISABLE_DEPRECATED
61 #endif /* not GST_DISABLE_DEPRECATED */
65 #endif /* __GSTCOMPAT_H__ */