tuhi: drop the live bits from our dbus bindings

Not needed here
This commit is contained in:
Peter Hutterer 2019-07-11 15:31:20 +10:00
parent f2dfec4f49
commit fdade5529d
1 changed files with 0 additions and 18 deletions

View File

@ -167,7 +167,6 @@ class TuhiKeteDevice(_DBusObject):
objpath)
self.manager = manager
self.is_registering = False
self.live = False
self._bluez_device = BlueZDevice(self.property('BlueZDevice'))
self._bluez_device.connect('notify::connected', self._on_connected)
@ -228,23 +227,6 @@ class TuhiKeteDevice(_DBusObject):
Gio.dbus_error_get_remote_error(e) != 'org.freedesktop.DBus.Error.ServiceUnknown'):
raise e
def start_live(self, fd):
fd_list = Gio.UnixFDList.new()
fd_list.append(fd)
res, fds = self.proxy.call_with_unix_fd_list_sync('org.freedesktop.tuhi1.Device.StartLive',
GLib.Variant('(h)', (fd,)),
Gio.DBusCallFlags.NO_AUTO_START,
-1,
fd_list,
None)
if res[0] == 0:
self.live = True
def stop_live(self):
self.proxy.StopLive()
self.live = False
def json(self, timestamp):
SUPPORTED_FILE_FORMAT = 1
return self.proxy.GetJSONData('(ut)', SUPPORTED_FILE_FORMAT, timestamp)