diff options
| author | William A. Kennington III <wak@google.com> | 2018-12-19 17:33:42 -0800 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2019-01-14 22:57:24 +0000 |
| commit | 34fdbf3bc88db804b4dd131cb912680012996612 (patch) | |
| tree | abe1fbdb0d3d36ca2a9cfb2201e100607e543e1d | |
| parent | c7d104d2d3f384644b767a4d7db5a2e997eccbc3 (diff) | |
| download | sdbusplus-34fdbf3bc88db804b4dd131cb912680012996612.tar.gz sdbusplus-34fdbf3bc88db804b4dd131cb912680012996612.zip | |
bus: Add missing sd_bus_open() equivalent
Change-Id: I8181dc8932353e8f37da9fab168f34f214d222c0
Signed-off-by: William A. Kennington III <wak@google.com>
| -rw-r--r-- | sdbusplus/bus.hpp.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sdbusplus/bus.hpp.in b/sdbusplus/bus.hpp.in index 587d10b..d3a2605 100644 --- a/sdbusplus/bus.hpp.in +++ b/sdbusplus/bus.hpp.in @@ -543,6 +543,13 @@ inline bus new_default_system() } /* WARNING: THESE ARE NOT THE FUNCTIONS YOU ARE LOOKING FOR! */ +inline bus new_bus() +{ + sd_bus* b = nullptr; + sd_bus_open(&b); + return bus(b, std::false_type()); +} + inline bus new_user() { sd_bus* b = nullptr; |

