mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
[XSwiftBus] Add getVersionNumber to DBus API
This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons. ref T394
This commit is contained in:
committed by
Klaus Basan
parent
e959075a56
commit
55c2e2e559
@@ -207,7 +207,14 @@ namespace XSwiftBus
|
||||
}
|
||||
else if (message.getInterfaceName() == XSWIFTBUS_SERVICE_INTERFACENAME)
|
||||
{
|
||||
if (message.getMethodName() == "addTextMessage")
|
||||
if (message.getMethodName() == "getVersionNumber")
|
||||
{
|
||||
queueDBusCall([ = ]()
|
||||
{
|
||||
sendDBusReply(sender, serial, getVersionNumber());
|
||||
});
|
||||
}
|
||||
else if (message.getMethodName() == "addTextMessage")
|
||||
{
|
||||
maybeSendEmptyDBusReply(wantsReply, sender, serial);
|
||||
std::string text;
|
||||
|
||||
Reference in New Issue
Block a user