Add getSenderName method to Message
This commit is contained in:
1 parent
8dea11bac6
commit
e30ce194ab
2 files changed
+6
No files matched your search
@@ -133,6 +133,7 @@ namespace sdbus {
|
|||||||
|
|
||||||
std::string getInterfaceName() const;
|
std::string getInterfaceName() const;
|
||||||
std::string getMemberName() const;
|
std::string getMemberName() const;
|
||||||
|
std::string getSender() const;
|
||||||
void peekType(std::string& type, std::string& contents) const;
|
void peekType(std::string& type, std::string& contents) const;
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
bool isEmpty() const;
|
bool isEmpty() const;
|
||||||
|
|||||||
@@ -590,6 +590,11 @@ std::string Message::getMemberName() const
|
|||||||
return sd_bus_message_get_member((sd_bus_message*)msg_);
|
return sd_bus_message_get_member((sd_bus_message*)msg_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string Message::getSender() const
|
||||||
|
{
|
||||||
|
return sd_bus_message_get_sender((sd_bus_message*)msg_);
|
||||||
|
}
|
||||||
|
|
||||||
void Message::peekType(std::string& type, std::string& contents) const
|
void Message::peekType(std::string& type, std::string& contents) const
|
||||||
{
|
{
|
||||||
char typeSig;
|
char typeSig;
|
||||||
|
|||||||
Reference in new issue
Block a user