From cb7603f9160ae42106d274e4768e82305a4b8eb1 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 11 Oct 2017 13:46:36 +0200 Subject: [PATCH] change json rpc api version to have major & minor versions --- guh.pri | 5 +++-- tests/auto/api.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/guh.pri b/guh.pri index fc33a14b..64a3c2a8 100644 --- a/guh.pri +++ b/guh.pri @@ -5,11 +5,12 @@ GUH_VERSION_STRING=$$system('dpkg-parsechangelog | sed -n -e "s/^Version: //p"') GUH_PLUGINS_PATH=/usr/lib/$$system('dpkg-architecture -q DEB_HOST_MULTIARCH')/guh/plugins/ # define protocol versions -JSON_PROTOCOL_VERSION=50 +JSON_PROTOCOL_VERSION_MAJOR=0 +JSON_PROTOCOL_VERSION_MINOR=50 REST_API_VERSION=1 DEFINES += GUH_VERSION_STRING=\\\"$${GUH_VERSION_STRING}\\\" \ - JSON_PROTOCOL_VERSION=\\\"$${JSON_PROTOCOL_VERSION}\\\" \ + JSON_PROTOCOL_VERSION=\\\"$${JSON_PROTOCOL_VERSION_MAJOR}.$${JSON_PROTOCOL_VERSION_MINOR}\\\" \ REST_API_VERSION=\\\"$${REST_API_VERSION}\\\" \ GUH_PLUGINS_PATH=\\\"$${GUH_PLUGINS_PATH}\\\" diff --git a/tests/auto/api.json b/tests/auto/api.json index 5461f8b6..b3cde7e2 100644 --- a/tests/auto/api.json +++ b/tests/auto/api.json @@ -1,4 +1,4 @@ -50 +0.50 { "methods": { "Actions.ExecuteAction": {