diff options
author | David Zeuthen <davidz@redhat.com> | 2006-08-23 22:25:30 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2006-08-23 22:25:30 -0400 |
commit | 39024923e8920736221f28bb01d8ade84a0afd2e (patch) | |
tree | c9c2dc3f979822692375c0e9a1b1d42265d599bd /doc | |
parent | f0471f48cdb4a8c2826e6050d69e407823af15c8 (diff) |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/spec/hal-spec-properties.xml | 23 |
1 files changed, 0 insertions, 23 deletions
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 @@ -5634,17 +5634,6 @@ </row> <row> <entry> - <literal>UnknownMethod</literal> - </entry> - <entry> - The executed method doesn't exist. - </entry> - <entry> - The method which was tried to be executed. - </entry> - </row> - <row> - <entry> <literal>UnknownGovernor</literal> </entry> <entry> @@ -5656,18 +5645,6 @@ </row> <row> <entry> - <literal>InvalidMessage</literal> - </entry> - <entry> - The message that was sent to the interface is invalid. - For instance, a parameter is missing. - </entry> - <entry> - A DBus error message. - </entry> - </row> - <row> - <entry> <literal>PermissionDenied</literal> </entry> <entry> |