hfp_hf_bluez5: Mark Release method as NOREPLY
authorDenis Kenzior <denkenz@gmail.com>
Tue, 10 Sep 2013 16:25:50 +0000 (11:25 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 12 Sep 2013 18:17:39 +0000 (13:17 -0500)
plugins/hfp_hf_bluez5.c

index 40d8ce0..7c1f56f 100644 (file)
@@ -564,9 +564,7 @@ static DBusMessage *profile_release(DBusConnection *conn,
 {
        DBG("Profile handler Release");
 
-       return g_dbus_create_error(msg, BLUEZ_ERROR_INTERFACE
-                                               ".NotImplemented",
-                                               "Implementation not provided");
+       return NULL;
 }
 
 static DBusMessage *profile_cancel(DBusConnection *conn,
@@ -626,7 +624,7 @@ static const GDBusMethodTable profile_methods[] = {
                                GDBUS_ARGS({ "device", "o"}, { "fd", "h"},
                                                { "fd_properties", "a{sv}" }),
                                NULL, profile_new_connection) },
-       { GDBUS_METHOD("Release", NULL, NULL, profile_release) },
+       { GDBUS_NOREPLY_METHOD("Release", NULL, NULL, profile_release) },
        { GDBUS_METHOD("Cancel", NULL, NULL, profile_cancel) },
        { GDBUS_METHOD("RequestDisconnection",
                                GDBUS_ARGS({"device", "o"}), NULL,