2006-02-09 Joe Shaw <joeshaw@novell.com

* mono/Arguments.cs: Fix a magic number in the mono bindings
	that doesn't work on 64 bit arches.  Patch from Peter Johanson.
This commit is contained in:
Joe Shaw 2006-02-09 19:57:42 +00:00
parent 2b5e0615cf
commit cbe0956998
2 changed files with 25 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-02-09 Joe Shaw <joeshaw@novell.com
* mono/Arguments.cs: Fix a magic number in the mono bindings
that doesn't work on 64 bit arches. Patch from Peter Johanson.
2006-01-27 Robert McQueen <robot101@debian.org>
* glib/dbus-binding-tool-glib.[ch]: Patch based on Ricardo Kekki's

View file

@ -10,7 +10,7 @@ namespace DBus
public class Arguments : IEnumerable, IDisposable
{
// Must follow sizeof(DBusMessageIter)
internal const int DBusMessageIterSize = 14*4;
internal static readonly int DBusMessageIterSize = Marshal.SizeOf (typeof(_DBusMessageIter));
private static Hashtable dbusTypes = null;
private Message message;
private IntPtr appenderIter;
@ -240,6 +240,25 @@ namespace DBus
return new ArgumentsEnumerator(this);
}
[StructLayout(LayoutKind.Sequential)]
private class _DBusMessageIter
{
IntPtr dummy1;
IntPtr dummy2;
int dummy3;
int dummy4;
int dummy5;
int dummy6;
int dummy7;
int dummy8;
int dummy9;
int dummy10;
int dummy11;
int pad1;
int pad2;
IntPtr pad3;
}
private class ArgumentsEnumerator : IEnumerator
{
private Arguments arguments;