2 * Copyright (C) 2005 Wim Taymans <wim@fluendo.com>
3 * 2011 Stefan Kost <ensonic@users.sf.net>
5 * libsabi.c: Unit test for ABI compatibility
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 #include <gst/check/gstcheck.h>
26 #include <gst/app/gstappsrc.h>
27 #include <gst/app/gstappsink.h>
28 #include <gst/audio/audio.h>
29 #include <gst/audio/gstaudioclock.h>
30 #include <gst/audio/gstaudiofilter.h>
31 #include <gst/audio/gstaudiosrc.h>
32 #include <gst/audio/gstaudiosink.h>
33 #include <gst/audio/gstringbuffer.h>
34 #include <gst/audio/multichannel.h>
35 #include <gst/cdda/gstcddabasesrc.h>
36 #include <gst/fft/gstfft.h>
37 #include <gst/fft/gstffts16.h>
38 #include <gst/fft/gstffts32.h>
39 #include <gst/fft/gstfftf32.h>
40 #include <gst/fft/gstfftf64.h>
41 #include <gst/interfaces/colorbalance.h>
42 #include <gst/interfaces/mixer.h>
43 #include <gst/interfaces/navigation.h>
44 #include <gst/interfaces/propertyprobe.h>
45 #include <gst/interfaces/streamvolume.h>
46 #include <gst/interfaces/tuner.h>
47 #include <gst/interfaces/videoorientation.h>
48 #include <gst/interfaces/videooverlay.h>
49 #include <gst/netbuffer/gstnetbuffer.h>
50 #include <gst/pbutils/pbutils.h>
51 #include <gst/riff/riff-media.h>
52 #include <gst/riff/riff-read.h>
53 #include <gst/rtp/gstbasertpaudiopayload.h>
54 #include <gst/rtp/gstbasertpdepayload.h>
55 #include <gst/rtp/gstbasertppayload.h>
56 #include <gst/rtp/gstrtpbuffer.h>
57 #include <gst/rtp/gstrtcpbuffer.h>
58 #include <gst/rtp/gstrtppayloads.h>
59 #include <gst/rtsp/gstrtsp.h>
60 #include <gst/rtsp/gstrtspconnection.h>
61 #include <gst/rtsp/gstrtspextension.h>
62 #include <gst/rtsp/gstrtspmessage.h>
63 #include <gst/rtsp/gstrtsprange.h>
64 #include <gst/rtsp/gstrtsptransport.h>
65 #include <gst/rtsp/gstrtspurl.h>
66 #include <gst/sdp/gstsdp.h>
67 #include <gst/sdp/gstsdpmessage.h>
68 #include <gst/tag/tag.h>
69 #include <gst/tag/gsttagdemux.h>
70 #include <gst/video/video.h>
71 #include <gst/video/gstvideofilter.h>
72 #include <gst/video/gstvideosink.h>
74 /* initial version of the file was generated using:
75 * grep -A1 "<STRUCT>" ../../docs/libs/gst-plugins-base-libs-decl.txt | \
76 * grep "<NAME>" | grep -v "Private" | sort | \
77 * sed -e 's/<NAME>\(.*\)<\/NAME>/\ {\"\1\", sizeof (\1), 0\},/'
79 * it needs a bit of editing to remove opaque structs
84 # include "struct_i386_osx.h"
85 # define HAVE_ABI_SIZES TRUE
87 # include "struct_i386.h"
88 # define HAVE_ABI_SIZES TRUE
91 #ifdef HAVE_CPU_X86_64
92 #include "struct_x86_64.h"
93 #define HAVE_ABI_SIZES TRUE
96 #include "struct_arm.h"
97 #define HAVE_ABI_SIZES TRUE
99 /* in case someone wants to generate a new arch */
100 #include "struct_i386.h"
101 #define HAVE_ABI_SIZES FALSE
106 /* disabled for 0.11 */
107 #undef HAVE_ABI_SIZES
108 #define HAVE_ABI_SIZES FALSE
110 GST_START_TEST (test_ABI)
112 gst_check_abi_list (list, HAVE_ABI_SIZES);
120 Suite *s = suite_create ("LibsABI");
121 TCase *tc_chain = tcase_create ("size check");
123 tcase_set_timeout (tc_chain, 0);
125 suite_add_tcase (s, tc_chain);
126 tcase_add_test (tc_chain, test_ABI);
130 GST_CHECK_MAIN (libsabi);