Add a method to retrieve the unique name of a connection

This commit is contained in:
Bruno Marchand
2019-11-08 08:21:03 -05:00
committed by Stanislav Angelovič
parent d50a15b2a2
commit 5fe0f503ca
6 changed files with 24 additions and 0 deletions

View File

@ -74,6 +74,13 @@ namespace sdbus {
*/
virtual void releaseName(const std::string& name) = 0;
/*!
* @brief Retrieve the unique name of a connection. E.g. ":1.xx"
*
* @throws sdbus::Error in case of failure
*/
virtual std::string getUniqueName() = 0;
/*!
* @brief Enters the D-Bus processing loop
*