From 5567bc9398e91f2ea76c91fe217755e9ddaed718 Mon Sep 17 00:00:00 2001 From: wangsong Date: Thu, 11 Aug 2022 13:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/interface.md | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/backend/interface.md b/backend/interface.md index c7536ee..e65d8f8 100755 --- a/backend/interface.md +++ b/backend/interface.md @@ -28,6 +28,61 @@ | DBUS名称 | com.kylin.systemupgrade | | OBJECT路径 | /com/kylin/systemupgrade | | INTERFACES名称 | com.kylin.systemupgrade.interface | +| 属性名称 | org.freedesktop.DBus.Properties | + + + +### Apt-p2p配置项设置 + +### Dbus接口信息 + +| 名称 | 含义 | +| -------------- | --------------------------------- | +| BUS类型 | SYSTEM BUS | +| DBUS名称 | com.kylin.systemupgrade | +| OBJECT路径 | /com/kylin/systemupgrade | +| INTERFACES名称 | com.kylin.systemupgrade.interface | +| 属性名称 | org.freedesktop.DBus.Properties | + + + +#### Get + +- `简介:`获取属性的值 + +- `入参:` `s`iface:要设置的属性的接口, `s`property:要设置的属性名称 + +- `出参:` `Variant`变量 + +- `示例:` + + ``` + #获取p2p的配置 + + Get(com.kylin.systemupgrade.interface,P2pBootstrap) + ``` + + + + + +#### Set + +- `简介:`设置属性的值 + +- `入参:` `s`iiface:要设置的属性的接口, `s`iproperty:要设置的属性名称 `Variant`value:要设置的值 + +- `出参:` + +- `示例:` + + ``` + #设置p2p的配置 + + set("com.kylin.systemupgrade.interface","P2pBootstrap",GLib.Variant('s', "test")) + ``` + +