daemon: Some D-Bus API tweaks
Trying to get the Update() method working end-to-end, and figuring out all the status reporting around it.
This commit is contained in:
parent
89e41eb8db
commit
b4db4a1621
@ -48,7 +48,11 @@
|
|||||||
<arg type="o" name="transaction" direction="out"/>
|
<arg type="o" name="transaction" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
<!-- Available options:
|
||||||
|
"allow-downgrade" (type 'b')
|
||||||
|
-->
|
||||||
<method name="Upgrade">
|
<method name="Upgrade">
|
||||||
|
<arg type="a{sv}" name="options" direction="in"/>
|
||||||
<arg type="o" name="transaction" direction="out"/>
|
<arg type="o" name="transaction" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
@ -87,6 +91,17 @@
|
|||||||
<method name="Cancel">
|
<method name="Cancel">
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
<!-- XXX Blindly mimicing UDisks2.Job for now. -->
|
||||||
|
<signal name="Completed">
|
||||||
|
<arg name="success" type="b" direction="out"/>
|
||||||
|
<arg name="message" type="s" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
|
||||||
|
<!-- For miscellaneous messages. -->
|
||||||
|
<signal name="Message">
|
||||||
|
<arg name="text" type="s" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
|
||||||
<signal name="DownloadProgress">
|
<signal name="DownloadProgress">
|
||||||
<!-- time data, format is:
|
<!-- time data, format is:
|
||||||
start time, elapsed seconds
|
start time, elapsed seconds
|
||||||
|
@ -182,7 +182,8 @@ osstub_handle_download_update_rpm_diff (RPMOSTreeOS *interface,
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
osstub_handle_upgrade (RPMOSTreeOS *interface,
|
osstub_handle_upgrade (RPMOSTreeOS *interface,
|
||||||
GDBusMethodInvocation *invocation)
|
GDBusMethodInvocation *invocation,
|
||||||
|
GVariant *arg_options)
|
||||||
{
|
{
|
||||||
glnx_unref_object RPMOSTreeTransaction *transaction = NULL;
|
glnx_unref_object RPMOSTreeTransaction *transaction = NULL;
|
||||||
glnx_unref_object GCancellable *cancellable = NULL;
|
glnx_unref_object GCancellable *cancellable = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user