Add staged kernel arguments and explicit CLI output contracts
This commit is contained in:
parent
c11cbee81d
commit
7d4440edd8
2 changed files with 5 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
|||
<interface name="org.archipelago.System1.Manager">
|
||||
<method name="GetCapabilities"><arg name="capabilities" type="a{sv}" direction="out"/></method>
|
||||
<method name="GetStatus"><arg name="status" type="a{sv}" direction="out"/></method>
|
||||
<method name="GetKernelArguments"><arg name="arguments" type="a{sv}" direction="out"/></method>
|
||||
<method name="ChangeKernelArguments"><annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QList<QVariantMap>"/><arg name="changes" type="aa{sv}" direction="in"/><arg name="context_id" type="s" direction="in"/><arg name="options" type="a{sv}" direction="in"/><arg name="transaction" type="o" direction="out"/></method>
|
||||
<method name="Refresh"><arg name="options" type="a{sv}" direction="in"/><arg name="transaction" type="o" direction="out"/></method>
|
||||
<method name="GetUpdateDetails"><arg name="target" type="s" direction="in"/><arg name="options" type="a{sv}" direction="in"/><arg name="transaction" type="o" direction="out"/></method>
|
||||
<method name="PrepareUpdate"><arg name="target" type="s" direction="in"/><arg name="options" type="a{sv}" direction="in"/><arg name="transaction" type="o" direction="out"/></method>
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ pub enum Phase {
|
|||
pub enum Method {
|
||||
Refresh, GetUpdateDetails, PrepareUpdate, Download, Stage, RefreshCatalog,
|
||||
PrepareEnable, ImportPackage, PrepareChange, PrepareRestore, PrepareSet,
|
||||
Cancel, GetLog,
|
||||
Cancel, GetLog, ChangeKernelArguments,
|
||||
}
|
||||
|
||||
impl Method {
|
||||
|
|
@ -77,12 +77,13 @@ impl Method {
|
|||
Self::PrepareEnable => "extension-enable", Self::ImportPackage => "package-import",
|
||||
Self::PrepareChange => "extension-change", Self::PrepareRestore => "extension-restore",
|
||||
Self::PrepareSet => "overlay-change", Self::Cancel => "cancel", Self::GetLog => "read-logs",
|
||||
Self::ChangeKernelArguments => "kernel-arguments",
|
||||
}
|
||||
}
|
||||
}
|
||||
impl Method {
|
||||
pub fn requires_request_id(self) -> bool {
|
||||
matches!(self, Self::Download | Self::Stage | Self::ImportPackage)
|
||||
matches!(self, Self::Download | Self::Stage | Self::ImportPackage | Self::ChangeKernelArguments)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue