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-aserver.cpp b/example/calculator-aserver.cpp
index 62a3ebe..f70e7ab 100644
--- a/example/calculator-aserver.cpp
+++ b/example/calculator-aserver.cpp
@@ -19,7 +19,7 @@
auto method_call(divide_t, auto x, auto y)
-> sdbusplus::async::task<divide_t::return_type>
{
- using sdbusplus::net::poettering::Calculator::Error::DivisionByZero;
+ using sdbusplus::error::net::poettering::calculator::DivisionByZero;
if (y == 0)
{
status(State::Error);
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);