From 7b1b68ce2cfbc735065f1af45811f33a8a6bf6ea Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 3 Dec 2009 15:28:36 +0200 Subject: dbus: Handle the cases when a non-existing interface is detected in an incoming message. --- src/pulsecore/protocol-dbus.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pulsecore/protocol-dbus.c') diff --git a/src/pulsecore/protocol-dbus.c b/src/pulsecore/protocol-dbus.c index e427bb19..95518a13 100644 --- a/src/pulsecore/protocol-dbus.c +++ b/src/pulsecore/protocol-dbus.c @@ -552,10 +552,18 @@ static DBusHandlerResult handle_message_cb(DBusConnection *connection, DBusMessa pa_dbus_send_error(connection, message, DBUS_ERROR_UNKNOWN_METHOD, "No such method: %s", call_info.method); break; + case NO_SUCH_INTERFACE: + pa_dbus_send_error(connection, message, PA_DBUS_ERROR_NO_SUCH_INTERFACE, "No such interface: %s", call_info.interface); + break; + case NO_SUCH_PROPERTY: pa_dbus_send_error(connection, message, PA_DBUS_ERROR_NO_SUCH_PROPERTY, "No such property: %s", call_info.property); break; + case NO_SUCH_PROPERTY_INTERFACE: + pa_dbus_send_error(connection, message, PA_DBUS_ERROR_NO_SUCH_INTERFACE, "No such property interface: %s", call_info.property_interface); + break; + case INVALID_METHOD_SIG: pa_dbus_send_error(connection, message, DBUS_ERROR_INVALID_ARGS, "Invalid signature for method %s: '%s'. Expected '%s'.", -- cgit