feat: add support for match rules

This commit is contained in:
Stanislav Angelovic
2022-06-17 23:04:07 +02:00
committed by Stanislav Angelovič
parent d864e1dfa4
commit 5ec6027d5f
7 changed files with 168 additions and 2 deletions

View File

@ -19,7 +19,8 @@ Using sdbus-c++ library
14. [Asynchronous client-side methods](#asynchronous-client-side-methods)
15. [Using D-Bus properties](#using-d-bus-properties)
16. [Standard D-Bus interfaces](#standard-d-bus-interfaces)
17. [Conclusion](#conclusion)
17. [Support for match rules](#support-for-match-rules)
18. [Conclusion](#conclusion)
Introduction
------------
@ -1279,6 +1280,11 @@ Note that signals of afore-mentioned standard D-Bus interfaces are not emitted b
Working examples of using standard D-Bus interfaces can be found in [sdbus-c++ integration tests](/tests/integrationtests/DBusStandardInterfacesTests.cpp) or the [examples](/examples) directory.
Support for match rules
-----------------------
`IConnection` class provides `addMatch` method that you can use to install match rules. An associated callback handler will be called upon an incoming message matching given match rule. There is support for both client-owned and floating (library-owned) match rules. Consult `IConnection` header or sdbus-c++ doxygen documentation for more information.
Conclusion
----------