| 958 | } // namespace |
| 959 | |
| 960 | PlainMessage createPlainMessage() |
| 961 | { |
| 962 | // Let's create a pseudo connection -- one that does not really connect to the real bus. |
| 963 | // This is a bit of a hack, but it enables use to work with D-Bus message locally without |
| 964 | // the need of D-Bus daemon. This is especially useful in unit tests of both sdbus-c++ and client code. |
| 965 | // Additionally, it's light-weight and fast solution. |
| 966 | const auto& connection = getPseudoConnectionInstance(); |
| 967 | return connection.createPlainMessage(); |
| 968 | } |
| 969 | |
| 970 | } // namespace sdbus |