summaryrefslogtreecommitdiffstats
path: root/mono/DBusType/UInt32.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/DBusType/UInt32.cs')
-rw-r--r--mono/DBusType/UInt32.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/mono/DBusType/UInt32.cs b/mono/DBusType/UInt32.cs
index b55893d3..5bb31217 100644
--- a/mono/DBusType/UInt32.cs
+++ b/mono/DBusType/UInt32.cs
@@ -25,12 +25,12 @@ namespace DBus.DBusType
public UInt32(IntPtr iter, Service service)
{
- this.val = dbus_message_iter_get_uint32(iter);
+ dbus_message_iter_get_basic (iter, out this.val);
}
public void Append(IntPtr iter)
{
- if (!dbus_message_iter_append_uint32(iter, val))
+ if (!dbus_message_iter_append_basic (iter, (int) Code, ref val))
throw new ApplicationException("Failed to append UINT32 argument:" + val);
}
@@ -87,9 +87,9 @@ namespace DBus.DBusType
}
[DllImport("dbus-1")]
- private extern static System.UInt32 dbus_message_iter_get_uint32(IntPtr iter);
+ private extern static void dbus_message_iter_get_basic (IntPtr iter, out System.UInt32 value);
[DllImport("dbus-1")]
- private extern static bool dbus_message_iter_append_uint32(IntPtr iter, System.UInt32 value);
+ private extern static bool dbus_message_iter_append_basic (IntPtr iter, int type, ref System.UInt32 value);
}
}