Commit d11c67fe authored by Julian Bouzas's avatar Julian Bouzas
Browse files

dbus-device-reservation: change the forced param type from the 'release' signal to boolean

parent 811ccc9f
......@@ -72,7 +72,7 @@ handle_method_call (GDBusConnection *connection, const char *sender,
if (self->pending_release)
wp_dbus_device_reservation_complete_release (self, FALSE);
self->pending_release = g_object_ref (invocation);
g_signal_emit (self, device_reservation_signals[SIGNAL_RELEASE], 0, 0);
g_signal_emit (self, device_reservation_signals[SIGNAL_RELEASE], 0, FALSE);
} else {
wp_dbus_device_reservation_complete_release (self, FALSE);
}
......@@ -301,7 +301,7 @@ wp_dbus_device_reservation_class_init (WpDbusDeviceReservationClass * klass)
/* Signals */
device_reservation_signals[SIGNAL_RELEASE] = g_signal_new (
"release", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST,
0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
}
WpDbusDeviceReservation *
......
......@@ -67,7 +67,7 @@ on_reservation_acquired (GObject *obj, GAsyncResult *res, gpointer user_data)
}
static void
on_reservation_release (WpDbusDeviceReservation *reservation, int forced,
on_reservation_release (WpDbusDeviceReservation *reservation, gboolean forced,
WpReserveDevice *self)
{
g_autoptr (WpProxy) device = NULL;
......
......@@ -37,7 +37,7 @@ test_dbus_teardown (TestDbusFixture *self, gconstpointer data)
static void
on_reservation_release (WpDbusDeviceReservation *reservation,
int forced, TestDbusFixture *self)
gboolean forced, TestDbusFixture *self)
{
wp_dbus_device_reservation_release (reservation);
wp_dbus_device_reservation_complete_release (reservation, TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment