tests/check/: generate and add structure size lists for x86_64
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 6 Jun 2006 13:59:10 +0000 (13:59 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 6 Jun 2006 13:59:10 +0000 (13:59 +0000)
Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/gst/gstabi.c:
* tests/check/gst/struct_x86_64.h:
* tests/check/libs/libsabi.c:
* tests/check/libs/struct_x86_64.h:
generate and add structure size lists for x86_64

ChangeLog
tests/check/Makefile.am
tests/check/gst/gstabi.c
tests/check/gst/struct_x86_64.h [new file with mode: 0644]
tests/check/libs/libsabi.c
tests/check/libs/struct_x86_64.h [new file with mode: 0644]

index 6d522d0..01bdbdc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2006-06-06  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+       * tests/check/Makefile.am:
+       * tests/check/gst/gstabi.c:
+       * tests/check/gst/struct_x86_64.h:
+       * tests/check/libs/libsabi.c:
+       * tests/check/libs/struct_x86_64.h:
+         generate and add structure size lists for x86_64
+
+2006-06-06  Thomas Vander Stichele  <thomas at apestaart dot org>
+
        * libs/gst/check/gstcheck.c: (gst_check_abi_list):
        * libs/gst/check/gstcheck.h:
          factor out the method from tests that checks size of structures,
index c3711eb..d95007c 100644 (file)
@@ -90,7 +90,12 @@ noinst_PROGRAMS =                            \
 
 TESTS = $(check_PROGRAMS)
 
-noinst_HEADERS = gst/capslist.h gst/struct_i386.h libs/struct_i386.h
+noinst_HEADERS = \
+       gst/capslist.h \
+       gst/struct_i386.h \
+       gst/struct_x86_64.h \
+       libs/struct_i386.h \
+       libs/struct_x86_64.h
 
 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
 LDADD = $(top_builddir)/libs/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
index 14232ee..c1f3ff9 100644 (file)
@@ -28,6 +28,7 @@
 #else
 #ifdef HAVE_CPU_X86_64
 #include "struct_x86_64.h"
+#define HAVE_ABI_SIZES TRUE
 #else
 /* in case someone wants to generate a new arch */
 #include "struct_i386.h"
diff --git a/tests/check/gst/struct_x86_64.h b/tests/check/gst/struct_x86_64.h
new file mode 100644 (file)
index 0000000..1fdc4bd
--- /dev/null
@@ -0,0 +1,143 @@
+GstCheckABIStruct list[] = {
+  {"GstBin", sizeof (GstBin), 336}
+  ,
+  {"GstBinClass", sizeof (GstBinClass), 568}
+  ,
+  {"GstBuffer", sizeof (GstBuffer), 120}
+  ,
+  {"GstBufferClass", sizeof (GstBufferClass), 32}
+  ,
+  {"GstBus", sizeof (GstBus), 152}
+  ,
+  {"GstBusClass", sizeof (GstBusClass), 288}
+  ,
+  {"GstCaps", sizeof (GstCaps), 56}
+  ,
+  {"GstStaticCaps", sizeof (GstStaticCaps), 96}
+  ,
+  {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 80}
+  ,
+  {"GstClockEntry", sizeof (GstClockEntry), 64}
+  ,
+  {"GstClock", sizeof (GstClock), 240}
+  ,
+  {"GstClockClass", sizeof (GstClockClass), 320}
+  ,
+  {"GstElement", sizeof (GstElement), 232}
+  ,
+  {"GstElementClass", sizeof (GstElementClass), 488}
+  ,
+  {"GstElementFactory", sizeof (GstElementFactory), 280}
+  ,
+  {"GstElementFactoryClass", sizeof (GstElementFactoryClass), 304}
+  ,
+  {"GstElementDetails", sizeof (GstElementDetails), 64}
+  ,
+  {"GstEvent", sizeof (GstEvent), 64}
+  ,
+  {"GstEventClass", sizeof (GstEventClass), 64}
+  ,
+  {"GstFormatDefinition", sizeof (GstFormatDefinition), 32}
+  ,
+  {"GstIndexEntry", sizeof (GstIndexEntry), 32}
+  ,
+  {"GstIndexGroup", sizeof (GstIndexGroup), 24}
+  ,
+  {"GstIndex", sizeof (GstIndex), 192}
+  ,
+  {"GstIndexClass", sizeof (GstIndexClass), 312}
+  ,
+  {"GstIndexAssociation", sizeof (GstIndexAssociation), 16}
+  ,
+  {"GstIndexFactory", sizeof (GstIndexFactory), 192}
+  ,
+  {"GstIndexFactoryClass", sizeof (GstIndexFactoryClass), 304}
+  ,
+  {"GstDebugCategory", sizeof (GstDebugCategory), 24}
+  ,
+  {"GstImplementsInterfaceClass", sizeof (GstImplementsInterfaceClass), 56}
+  ,
+  {"GstIterator", sizeof (GstIterator), 104}
+  ,
+  {"GstMessage", sizeof (GstMessage), 104}
+  ,
+  {"GstMessageClass", sizeof (GstMessageClass), 64}
+  ,
+  {"GstMiniObject", sizeof (GstMiniObject), 24}
+  ,
+  {"GstMiniObjectClass", sizeof (GstMiniObjectClass), 32}
+  ,
+  {"GstObject", sizeof (GstObject), 80}
+  ,
+  {"GstObjectClass", sizeof (GstObjectClass), 240}
+  ,
+  {"GstPad", sizeof (GstPad), 368}
+  ,
+  {"GstPadClass", sizeof (GstPadClass), 304}
+  ,
+  {"GstPadTemplate", sizeof (GstPadTemplate), 136}
+  ,
+  {"GstPadTemplateClass", sizeof (GstPadTemplateClass), 280}
+  ,
+  {"GstStaticPadTemplate", sizeof (GstStaticPadTemplate), 112}
+  ,
+  {"GstPipeline", sizeof (GstPipeline), 392}
+  ,
+  {"GstPipelineClass", sizeof (GstPipelineClass), 600}
+  ,
+  {"GstPlugin", sizeof (GstPlugin), 280}
+  ,
+  {"GstPluginClass", sizeof (GstPluginClass), 272}
+  ,
+  {"GstPluginDesc", sizeof (GstPluginDesc), 104}
+  ,
+  {"GstPluginFeature", sizeof (GstPluginFeature), 144}
+  ,
+  {"GstPluginFeatureClass", sizeof (GstPluginFeatureClass), 272}
+  ,
+  {"GstQueryTypeDefinition", sizeof (GstQueryTypeDefinition), 32}
+  ,
+  {"GstQuery", sizeof (GstQuery), 48}
+  ,
+  {"GstQueryClass", sizeof (GstQueryClass), 64}
+  ,
+  {"GstRegistry", sizeof (GstRegistry), 144}
+  ,
+  {"GstRegistryClass", sizeof (GstRegistryClass), 288}
+  ,
+  {"GstSegment", sizeof (GstSegment), 104}
+  ,
+  {"GstStructure", sizeof (GstStructure), 40}
+  ,
+  {"GstSystemClock", sizeof (GstSystemClock), 288}
+  ,
+  {"GstSystemClockClass", sizeof (GstSystemClockClass), 352}
+  ,
+  {"GstTagSetterIFace", sizeof (GstTagSetterIFace), 16}
+  ,
+  {"GstTask", sizeof (GstTask), 160}
+  ,
+  {"GstTaskClass", sizeof (GstTaskClass), 280}
+  ,
+  {"GstTrace", sizeof (GstTrace), 32}
+  ,
+  {"GstTraceEntry", sizeof (GstTraceEntry), 128}
+  ,
+  {"GstAllocTrace", sizeof (GstAllocTrace), 24}
+  ,
+  {"GstTypeFind", sizeof (GstTypeFind), 64}
+  ,
+  {"GstTypeFindFactory", sizeof (GstTypeFindFactory), 216}
+  ,
+  {"GstTypeFindFactoryClass", sizeof (GstTypeFindFactoryClass), 304}
+  ,
+  {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 88}
+  ,
+  {"GstValueTable", sizeof (GstValueTable), 64}
+  ,
+  {"GstXML", sizeof (GstXML), 128}
+  ,
+  {"GstXMLClass", sizeof (GstXMLClass), 288}
+  ,
+  {NULL, 0, 0}
+};
index b090ee9..0f192db 100644 (file)
 #include "struct_i386.h"
 #define HAVE_ABI_SIZES TRUE
 #else
+#ifdef HAVE_CPU_X86_64
+#include "struct_x86_64.h"
+#define HAVE_ABI_SIZES TRUE
+#else
 /* in case someone wants to generate a new arch */
 #include "struct_i386.h"
 #define HAVE_ABI_SIZES FALSE
 #endif
-
+#endif
 
 GST_START_TEST (test_ABI)
 {
diff --git a/tests/check/libs/struct_x86_64.h b/tests/check/libs/struct_x86_64.h
new file mode 100644 (file)
index 0000000..353ceaa
--- /dev/null
@@ -0,0 +1,47 @@
+GstCheckABIStruct list[] = {
+  {"GstAdapter", sizeof (GstAdapter), 88}
+  ,
+  {"GstAdapterClass", sizeof (GstAdapterClass), 168}
+  ,
+  {"GstBaseSink", sizeof (GstBaseSink), 600}
+  ,
+  {"GstBaseSinkClass", sizeof (GstBaseSinkClass), 728}
+  ,
+  {"GstBaseSrc", sizeof (GstBaseSrc), 600}
+  ,
+  {"GstBaseSrcClass", sizeof (GstBaseSrcClass), 744}
+  ,
+  {"GstBaseTransform", sizeof (GstBaseTransform), 576}
+  ,
+  {"GstBaseTransformClass", sizeof (GstBaseTransformClass), 744}
+  ,
+  {"GstCollectData", sizeof (GstCollectData), 168}
+  ,
+  {"GstCollectPads", sizeof (GstCollectPads), 168}
+  ,
+  {"GstCollectPadsClass", sizeof (GstCollectPadsClass), 272}
+  ,
+  {"GstPushSrc", sizeof (GstPushSrc), 632}
+  ,
+  {"GstPushSrcClass", sizeof (GstPushSrcClass), 784}
+  ,
+  {"GstTimedValue", sizeof (GstTimedValue), 32}
+  ,
+  {"GstValueArray", sizeof (GstValueArray), 32}
+  ,
+  {"GstController", sizeof (GstController), 80}
+  ,
+  {"GstControllerClass", sizeof (GstControllerClass), 168}
+  ,
+  {"GstNetClientClock", sizeof (GstNetClientClock), 368}
+  ,
+  {"GstNetClientClockClass", sizeof (GstNetClientClockClass), 384}
+  ,
+  {"GstNetTimePacket", sizeof (GstNetTimePacket), 16}
+  ,
+  {"GstNetTimeProvider", sizeof (GstNetTimeProvider), 152}
+  ,
+  {"GstNetTimeProviderClass", sizeof (GstNetTimeProviderClass), 240}
+  ,
+  {NULL, 0, 0}
+};