From d4ea6e39388c1c326d3b44f6489d17d2243bb12e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 19 Feb 2018 10:47:02 +1000 Subject: [PATCH] dbus: change the JSON timestamp argument to 64 bit Because we're totally going to ship tuhi in embedded devices that are going to be in use until after 2038 when time resets to zero, the world goes big bang and the only survivers will be 64-bit species. Or something like that. Either way, the API documentation already said so anyway and the DrawingsAvailable property is already 64 bit too. Semi-confusingly: the dbus 64 bit unsigned type is 't', it doesn't stand for 'timestamp'. --- tools/kete.py | 2 +- tuhi/dbusserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kete.py b/tools/kete.py index 8f20ea2..17d0fc2 100755 --- a/tools/kete.py +++ b/tools/kete.py @@ -271,7 +271,7 @@ class TuhiKeteDevice(_DBusObject): self.live = False def json(self, timestamp): - return self.proxy.GetJSONData('(u)', timestamp) + return self.proxy.GetJSONData('(t)', timestamp) def _on_signal_received(self, proxy, sender, signal, parameters): if signal == 'ButtonPressRequired': diff --git a/tuhi/dbusserver.py b/tuhi/dbusserver.py index 4582dec..afd6e4e 100755 --- a/tuhi/dbusserver.py +++ b/tuhi/dbusserver.py @@ -87,7 +87,7 @@ INTROSPECTION_XML = ''' - +