sdbus++: error: move error to front of namespace
To be consistent with the new 'server' and 'client' namespaces,
refactor the 'error' namespace in the same way. Move 'error' to
the front and use snake_case for namespace and struct identifiers.
Leave the same backwards compatibility, which can be disabled with
the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE guard.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1a147a153798c84eaac3f6bf9581c6ca31ecaf4f
diff --git a/example/calculator-server.cpp b/example/calculator-server.cpp
index aa60662..b0603a3 100644
--- a/example/calculator-server.cpp
+++ b/example/calculator-server.cpp
@@ -29,7 +29,7 @@
*/
int64_t divide(int64_t x, int64_t y) override
{
- using sdbusplus::net::poettering::Calculator::Error::DivisionByZero;
+ using sdbusplus::error::net::poettering::calculator::DivisionByZero;
if (y == 0)
{
status(State::Error);