diff options
author | Patrick Venture <venture@google.com> | 2018-04-13 20:54:32 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-05-29 12:30:56 -0700 |
commit | ff095681d33f633a394ba1341282c3b8e40a643f (patch) | |
tree | 406dcfdac1e6627e1353e4dfd57ec663996f35be /sdbusplus/message.hpp | |
parent | 4c3427c23fb072441a836155dc2eb141d2149c5a (diff) | |
download | sdbusplus-ff095681d33f633a394ba1341282c3b8e40a643f.tar.gz sdbusplus-ff095681d33f633a394ba1341282c3b8e40a643f.zip |
sdbusplus::bus::bus Add sdbus interface injection
By default it'll use the sdbus singleton that points to the real
library calls, however you can now pass in an interface pointer for
it to use instead.
Change-Id: Ib23f6b01c43937d2cc84ff3afea79dd1ef28f1e5
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'sdbusplus/message.hpp')
-rw-r--r-- | sdbusplus/message.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sdbusplus/message.hpp b/sdbusplus/message.hpp index fe00ee0..6b58099 100644 --- a/sdbusplus/message.hpp +++ b/sdbusplus/message.hpp @@ -79,6 +79,11 @@ class message { } + message(msgp_t m, sdbusplus::SdBusInterface* intf, std::false_type) : + _intf(intf), _msg(m) + { + } + /** @brief Constructor for 'msgp_t'. * * Takes ownership of the msg-pointer and releases it when done. |