mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-06-07 16:48:20 +02:00
Drop 'type' parameter from CancelRequest() signature
CancelRequest() never worked because the method signature in D-Bus introspection data didn't match the actual function signature. Since the 'type' parameter isn't needed by the implementation (cookies are unique across all requests, not just requests of a certain type), we drop it from the public API. This makes it easier for clients to use the API as they only have to remember the cookie, not both cookie and type. Since it never worked in the first place, there are no backwards compatibility issues. Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
79c11814cd
commit
d7c6d0e8da
1 changed files with 0 additions and 8 deletions
|
|
@ -164,14 +164,6 @@
|
|||
<!-- ************************************************************ -->
|
||||
<method name="CancelRequest">
|
||||
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
|
||||
<arg name="type" direction="in" type="s">
|
||||
<doc:doc>
|
||||
<doc:summary>
|
||||
The type of latency to control, <doc:tt>cpu_dma</doc:tt> or
|
||||
<doc:tt>network</doc:tt>.
|
||||
</doc:summary>
|
||||
</doc:doc>
|
||||
</arg>
|
||||
<arg name="cookie" direction="in" type="u">
|
||||
<doc:doc>
|
||||
<doc:summary>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue