From 39024923e8920736221f28bb01d8ade84a0afd2e Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Wed, 23 Aug 2006 22:25:30 -0400 Subject: make cpufreq addon use standard D-Bus expections for unknown methods Rather than throwing org.freedesktop.Hal.Device.CPUFreq.UnknownMethod and .InvalidMessage, just return NOT_YET_HANDLED and D-Bus will take care of it. Example $ dbus-send --system --dest=org.freedesktop.Hal --print-reply \ /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.CPUFreq.SetCPUFreqPerformance \ string:322 Error org.freedesktop.DBus.Error.UnknownMethod: Method "SetCPUFreqPerformance" with signature "s" on interface "org.freedesktop.Hal.Device.CPUFreq" doesn't exist $ dbus-send --system --dest=org.freedesktop.Hal --print-reply \ /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.CPUFreq.SetCPUFreqPerformanceThisMethodDoesNotExist Error org.freedesktop.DBus.Error.UnknownMethod: Method "SetCPUFreqPerformanceThisMethodDoesNotExist" with signature "" on interface "org.freedesktop.Hal.Device.CPUFreq" doesn't exist --- doc/spec/hal-spec-properties.xml | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'doc') diff --git a/doc/spec/hal-spec-properties.xml b/doc/spec/hal-spec-properties.xml index b81aa9e2..18f383b1 100644 --- a/doc/spec/hal-spec-properties.xml +++ b/doc/spec/hal-spec-properties.xml @@ -5632,17 +5632,6 @@ The exact error. - - - UnknownMethod - - - The executed method doesn't exist. - - - The method which was tried to be executed. - - UnknownGovernor @@ -5654,18 +5643,6 @@ The governor which was tried be to set. - - - InvalidMessage - - - The message that was sent to the interface is invalid. - For instance, a parameter is missing. - - - A DBus error message. - - PermissionDenied -- cgit v1.2.3