tests: Fix ABI tests with latest change in GstMiniObject

Some private fields in the structure where renamed.
This commit is contained in:
Thibault Saunier 2018-07-12 17:41:39 -04:00
parent 6bada6f67d
commit 3acb989f40
3 changed files with 13 additions and 13 deletions

View file

@ -274,22 +274,22 @@ namespace Gst {
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // free
, "dispose"
, "n_qdata"
, "priv_uint"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("n_qdata"
new GLib.AbiField("priv_uint"
, -1
, (uint) Marshal.SizeOf(typeof(uint)) // n_qdata
, (uint) Marshal.SizeOf(typeof(uint)) // priv_uint
, "free"
, "qdata"
, (long) Marshal.OffsetOf(typeof(GstMiniObject_n_qdataAlign), "n_qdata")
, "priv_pointer"
, (long) Marshal.OffsetOf(typeof(GstMiniObject_n_qdataAlign), "priv_uint")
, 0
),
new GLib.AbiField("qdata"
new GLib.AbiField("priv_pointer"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // qdata
, "n_qdata"
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv_pointer
, "priv_uint"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
@ -332,7 +332,7 @@ namespace Gst {
public struct GstMiniObject_n_qdataAlign
{
sbyte f1;
private uint n_qdata;
private uint priv_uint;
}

View file

@ -332,8 +332,8 @@ int main (int argc, char *argv[]) {
g_print("\"GstMiniObject.copy\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, copy));
g_print("\"GstMiniObject.dispose\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, dispose));
g_print("\"GstMiniObject.free\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, free));
g_print("\"GstMiniObject.n_qdata\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, n_qdata));
g_print("\"GstMiniObject.qdata\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, qdata));
g_print("\"GstMiniObject.priv_uint\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, priv_uint));
g_print("\"GstMiniObject.priv_pointer\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstMiniObject, priv_pointer));
g_print("\"sizeof(GstQuery)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstQuery));
g_print("\"GstQuery.type\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstQuery, type));
g_print("\"sizeof(GstStructure)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstStructure));

View file

@ -326,8 +326,8 @@ namespace AbiTester {
Console.WriteLine("\"GstMiniObject.copy\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("copy") + "\"");
Console.WriteLine("\"GstMiniObject.dispose\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("dispose") + "\"");
Console.WriteLine("\"GstMiniObject.free\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("free") + "\"");
Console.WriteLine("\"GstMiniObject.n_qdata\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("n_qdata") + "\"");
Console.WriteLine("\"GstMiniObject.qdata\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("qdata") + "\"");
Console.WriteLine("\"GstMiniObject.priv_uint\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("priv_uint") + "\"");
Console.WriteLine("\"GstMiniObject.priv_pointer\": \"" + Gst.MiniObject.abi_info.GetFieldOffset("priv_pointer") + "\"");
Console.WriteLine("\"sizeof(GstQuery)\": \"" + Gst.Query.abi_info.Size + "\"");
Console.WriteLine("\"GstQuery.type\": \"" + Gst.Query.abi_info.GetFieldOffset("type") + "\"");
Console.WriteLine("\"sizeof(GstStructure)\": \"" + Gst.Structure.abi_info.Size + "\"");