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