Add API to get message path and message destination (#167)

* Add API to get message path

* Add API to get message destination

* Handle NULL message fields interface and member

Functions sd_bus_message_get_interface() and sd_bus_message_get_member()
can return null in case the message does not use those fields or does
not have them set.
This commit is contained in:
Marek Blaha
2021-05-07 15:24:21 +02:00
committed by GitHub
parent d65744b1fc
commit 118faa58f6
2 changed files with 18 additions and 2 deletions

View File

@ -131,6 +131,8 @@ namespace sdbus {
std::string getInterfaceName() const;
std::string getMemberName() const;
std::string getSender() const;
std::string getPath() const;
std::string getDestination() const;
void peekType(std::string& type, std::string& contents) const;
bool isValid() const;
bool isEmpty() const;