xibus

experimental pure python async D-Bus library
git clone https://git.ce9e.org/xibus.git

commit
013aad6105305fe072b549256676351822aa4830
parent
ba30780c993fe3224182238438101fb58c3b739f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2026-02-16 08:41
add emit signal

Diffstat

M xibus/connection.py 16 ++++++++++++++++

1 files changed, 16 insertions, 0 deletions


diff --git a/xibus/connection.py b/xibus/connection.py

@@ -172,6 +172,22 @@ class Connection:
  172   172         else:
  173   173             raise ValueError(response.type)
  174   174 
   -1   175     async def emit_signal(self, path, iface, signal, body, sig, flags=MsgFlag.NONE):
   -1   176         if not RE_PATH.match(path):
   -1   177             raise InvalidPathError(path)
   -1   178 
   -1   179         msg = Msg(
   -1   180             MsgType.SIGNAL,
   -1   181             self.get_serial(),
   -1   182             path=path,
   -1   183             iface=iface,
   -1   184             member=signal,
   -1   185             body=body,
   -1   186             sig=sig,
   -1   187             flags=flags,
   -1   188         )
   -1   189 
   -1   190         await self.send(*msg.marshal())
  175   191 
  176   192 def get_connection(bus):
  177   193     if bus == 'session':