forked from Kistler-Group/sdbus-cpp
Add getSenderName method to Message
This commit is contained in:
@ -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