From b6d24c014de08fee6796b1677904f80fe10e5ec0 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 6 Jun 2006 14:10:09 +0000 Subject: [PATCH] tests/check/: add ppc64 structure sizes Original commit message from CVS: * tests/check/Makefile.am: * tests/check/gst/gstabi.c: * tests/check/gst/struct_ppc64.h: * tests/check/libs/libsabi.c: * tests/check/libs/struct_ppc64.h: add ppc64 structure sizes --- ChangeLog | 9 +++++ common | 2 +- tests/check/Makefile.am | 2 ++ tests/check/gst/gstabi.c | 5 +++ tests/check/gst/struct_ppc64.h | 73 +++++++++++++++++++++++++++++++++++++++++ tests/check/libs/libsabi.c | 4 +++ tests/check/libs/struct_ppc64.h | 25 ++++++++++++++ 7 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 tests/check/gst/struct_ppc64.h create mode 100644 tests/check/libs/struct_ppc64.h diff --git a/ChangeLog b/ChangeLog index 01bdbdc..6c5ddd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,15 @@ * tests/check/Makefile.am: * tests/check/gst/gstabi.c: + * tests/check/gst/struct_ppc64.h: + * tests/check/libs/libsabi.c: + * tests/check/libs/struct_ppc64.h: + add ppc64 structure sizes + +2006-06-06 Thomas Vander Stichele + + * 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: diff --git a/common b/common index 4282dfa..5d58e76 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 4282dfa89d50e80f59d4e1837af95fbf74e75d18 +Subproject commit 5d58e7652bf38a637dceca167d6e47e7794b2b52 diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index d95007c..050c5cc 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -93,8 +93,10 @@ TESTS = $(check_PROGRAMS) noinst_HEADERS = \ gst/capslist.h \ gst/struct_i386.h \ + gst/struct_ppc64.h \ gst/struct_x86_64.h \ libs/struct_i386.h \ + libs/struct_ppc64.h \ libs/struct_x86_64.h AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS) diff --git a/tests/check/gst/gstabi.c b/tests/check/gst/gstabi.c index c1f3ff9..fd81020 100644 --- a/tests/check/gst/gstabi.c +++ b/tests/check/gst/gstabi.c @@ -26,6 +26,10 @@ #include "struct_i386.h" #define HAVE_ABI_SIZES TRUE #else +#ifdef HAVE_CPU_PPC64 +#include "struct_ppc64.h" +#define HAVE_ABI_SIZES TRUE +#else #ifdef HAVE_CPU_X86_64 #include "struct_x86_64.h" #define HAVE_ABI_SIZES TRUE @@ -35,6 +39,7 @@ #define HAVE_ABI_SIZES FALSE #endif #endif +#endif GST_START_TEST (test_ABI) { diff --git a/tests/check/gst/struct_ppc64.h b/tests/check/gst/struct_ppc64.h new file mode 100644 index 0000000..2f95f1d --- /dev/null +++ b/tests/check/gst/struct_ppc64.h @@ -0,0 +1,73 @@ +GstCheckABIStruct list[] = { + {"GstBin", sizeof (GstBin), 192}, + {"GstBinClass", sizeof (GstBinClass), 288}, + {"GstBuffer", sizeof (GstBuffer), 88}, + {"GstBufferClass", sizeof (GstBufferClass), 16}, + {"GstBus", sizeof (GstBus), 80}, + {"GstBusClass", sizeof (GstBusClass), 144}, + {"GstCaps", sizeof (GstCaps), 32}, + {"GstStaticCaps", sizeof (GstStaticCaps), 52}, + {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 40}, + {"GstClockEntry", sizeof (GstClockEntry), 48}, + {"GstClock", sizeof (GstClock), 176}, + {"GstClockClass", sizeof (GstClockClass), 160}, + {"GstElement", sizeof (GstElement), 136}, + {"GstElementClass", sizeof (GstElementClass), 248}, + {"GstElementFactory", sizeof (GstElementFactory), 144}, + {"GstElementFactoryClass", sizeof (GstElementFactoryClass), 152}, + {"GstElementDetails", sizeof (GstElementDetails), 32}, + {"GstEvent", sizeof (GstEvent), 48}, + {"GstEventClass", sizeof (GstEventClass), 32}, + {"GstFormatDefinition", sizeof (GstFormatDefinition), 16}, + {"GstIndexEntry", sizeof (GstIndexEntry), 20}, + {"GstIndexGroup", sizeof (GstIndexGroup), 16}, + {"GstIndex", sizeof (GstIndex), 100}, + {"GstIndexClass", sizeof (GstIndexClass), 156}, + {"GstIndexAssociation", sizeof (GstIndexAssociation), 16}, + {"GstIndexFactory", sizeof (GstIndexFactory), 96}, + {"GstIndexFactoryClass", sizeof (GstIndexFactoryClass), 152}, + {"GstDebugCategory", sizeof (GstDebugCategory), 16}, + {"GstImplementsInterfaceClass", sizeof (GstImplementsInterfaceClass), 28}, + {"GstIterator", sizeof (GstIterator), 52}, + {"GstMessage", sizeof (GstMessage), 64}, + {"GstMessageClass", sizeof (GstMessageClass), 32}, + {"GstMiniObject", sizeof (GstMiniObject), 16}, + {"GstMiniObjectClass", sizeof (GstMiniObjectClass), 16}, + {"GstObject", sizeof (GstObject), 40}, + {"GstObjectClass", sizeof (GstObjectClass), 120}, + {"GstPad", sizeof (GstPad), 188}, + {"GstPadClass", sizeof (GstPadClass), 152}, + {"GstPadTemplate", sizeof (GstPadTemplate), 72}, + {"GstPadTemplateClass", sizeof (GstPadTemplateClass), 140}, + {"GstStaticPadTemplate", sizeof (GstStaticPadTemplate), 64}, + {"GstPipeline", sizeof (GstPipeline), 232}, + {"GstPipelineClass", sizeof (GstPipelineClass), 304}, + {"GstPlugin", sizeof (GstPlugin), 152}, + {"GstPluginClass", sizeof (GstPluginClass), 136}, + {"GstPluginDesc", sizeof (GstPluginDesc), 56}, + {"GstPluginFeature", sizeof (GstPluginFeature), 72}, + {"GstPluginFeatureClass", sizeof (GstPluginFeatureClass), 136}, + {"GstQueryTypeDefinition", sizeof (GstQueryTypeDefinition), 16}, + {"GstQuery", sizeof (GstQuery), 28}, + {"GstQueryClass", sizeof (GstQueryClass), 32}, + {"GstRegistry", sizeof (GstRegistry), 72}, + {"GstRegistryClass", sizeof (GstRegistryClass), 144}, + {"GstSegment", sizeof (GstSegment), 88}, + {"GstStructure", sizeof (GstStructure), 20}, + {"GstSystemClock", sizeof (GstSystemClock), 200}, + {"GstSystemClockClass", sizeof (GstSystemClockClass), 176}, + {"GstTagSetterIFace", sizeof (GstTagSetterIFace), 8}, + {"GstTask", sizeof (GstTask), 80}, + {"GstTaskClass", sizeof (GstTaskClass), 140}, + {"GstTrace", sizeof (GstTrace), 20}, + {"GstTraceEntry", sizeof (GstTraceEntry), 128}, + {"GstAllocTrace", sizeof (GstAllocTrace), 16}, + {"GstTypeFind", sizeof (GstTypeFind), 32}, + {"GstTypeFindFactory", sizeof (GstTypeFindFactory), 108}, + {"GstTypeFindFactoryClass", sizeof (GstTypeFindFactoryClass), 152}, + {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 44}, + {"GstValueTable", sizeof (GstValueTable), 32}, + {"GstXML", sizeof (GstXML), 64}, + {"GstXMLClass", sizeof (GstXMLClass), 144}, + {NULL, 0, 0} +}; diff --git a/tests/check/libs/libsabi.c b/tests/check/libs/libsabi.c index 0f192db..9cf81b3 100644 --- a/tests/check/libs/libsabi.c +++ b/tests/check/libs/libsabi.c @@ -39,6 +39,10 @@ #include "struct_i386.h" #define HAVE_ABI_SIZES TRUE #else +#ifdef HAVE_CPU_PPC64 +#include "struct_ppc64.h" +#define HAVE_ABI_SIZES TRUE +#else #ifdef HAVE_CPU_X86_64 #include "struct_x86_64.h" #define HAVE_ABI_SIZES TRUE diff --git a/tests/check/libs/struct_ppc64.h b/tests/check/libs/struct_ppc64.h new file mode 100644 index 0000000..a3ca167 --- /dev/null +++ b/tests/check/libs/struct_ppc64.h @@ -0,0 +1,25 @@ +GstCheckABIStruct list[] = { + {"GstAdapter", sizeof (GstAdapter), 52}, + {"GstAdapterClass", sizeof (GstAdapterClass), 84}, + {"GstBaseSink", sizeof (GstBaseSink), 408}, + {"GstBaseSinkClass", sizeof (GstBaseSinkClass), 368}, + {"GstBaseSrc", sizeof (GstBaseSrc), 392}, + {"GstBaseSrcClass", sizeof (GstBaseSrcClass), 376}, + {"GstBaseTransform", sizeof (GstBaseTransform), 368}, + {"GstBaseTransformClass", sizeof (GstBaseTransformClass), 376}, + {"GstCollectData", sizeof (GstCollectData), 120}, + {"GstCollectPads", sizeof (GstCollectPads), 92}, + {"GstCollectPadsClass", sizeof (GstCollectPadsClass), 136}, + {"GstPushSrc", sizeof (GstPushSrc), 408}, + {"GstPushSrcClass", sizeof (GstPushSrcClass), 396}, + {"GstTimedValue", sizeof (GstTimedValue), 32}, + {"GstValueArray", sizeof (GstValueArray), 24}, + {"GstController", sizeof (GstController), 40}, + {"GstControllerClass", sizeof (GstControllerClass), 84}, + {"GstNetClientClock", sizeof (GstNetClientClock), 256}, + {"GstNetClientClockClass", sizeof (GstNetClientClockClass), 192}, + {"GstNetTimePacket", sizeof (GstNetTimePacket), 16}, + {"GstNetTimeProvider", sizeof (GstNetTimeProvider), 84}, + {"GstNetTimeProviderClass", sizeof (GstNetTimeProviderClass), 120}, + {NULL, 0, 0} +}; -- 2.7.4