refactor: make createPlainMessage public (#448)

Library clients may need to manually create plain sdbus-c++ message to be able to unit test their code.
This commit is contained in:
Stanislav Angelovič
2024-08-18 10:09:53 +02:00
committed by GitHub
parent c6705faf2f
commit b7a038f11f
2 changed files with 2 additions and 2 deletions

View File

@ -332,6 +332,8 @@ namespace sdbus {
PlainMessage() = default;
};
PlainMessage createPlainMessage();
template <typename ...Elements>
inline Message& Message::operator<<(const std::variant<Elements...>& value)
{

View File

@ -58,8 +58,6 @@ namespace sdbus
return _Msg{msg, sdbus, adopt_message};
}
};
PlainMessage createPlainMessage();
}
#endif /* SDBUS_CXX_INTERNAL_MESSAGEUTILS_H_ */