-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdbus++: change binding namespace format
Change the generated binding namespace name such that the interface `xyz.openbmc_project.Foo` becomes `sdbusplus::server::xyz::openbmc_project::Foo` instead of `sdbusplus::xyz::openbmc_project::server::Foo`. This both simplifies the namespace generation and makes the correlation from interface to binding name much more obvious. An alias namespace to the old name is still generated so that users have a chance to migrate. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id82a5b6dcb26be8644b04bf14ddaf8a58dad8479
- Loading branch information
1 parent
a412ca8
commit 5011340
Showing
8 changed files
with
103 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
#pragma once | ||
|
||
namespace sdbusplus::${interface.cppNamespacedClass("client")} | ||
namespace sdbusplus::client::${interface.cppNamespacedClass()} | ||
{ | ||
|
||
static constexpr auto interface = "${interface.name}"; | ||
|
||
} // namespace sdbusplus::${interface.cppNamespacedClass("client")} | ||
} // namespace sdbusplus::client::${interface.cppNamespacedClass()} | ||
|
||
#ifndef SDBUSPP_REMOVE_DEPRECATED_NAMESPACE | ||
namespace sdbusplus::${interface.old_cppNamespacedClass("client")} | ||
{ | ||
|
||
using sdbusplus::client::${interface.cppNamespacedClass()}::interface; | ||
|
||
} // namespace sdbusplus::${interface.old_cppNamespacedClass("client")} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters