diff options
| author | Patrick Venture <venture@google.com> | 2019-03-07 09:08:04 -0800 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2019-03-07 09:09:49 -0800 |
| commit | 68448333b1395fc30291879624911ee5fa4ddf63 (patch) | |
| tree | d395115c84fe76f0e39eb3d8441c6a252a78d9a7 /src/ipmiblob | |
| parent | fe94b4836ae9a180dc1e68fe79fed99e942cc36e (diff) | |
| download | ipmi-blob-tool-68448333b1395fc30291879624911ee5fa4ddf63.tar.gz ipmi-blob-tool-68448333b1395fc30291879624911ee5fa4ddf63.zip | |
move internal namespace under ipmiblob namespace
Avoid collisions if anyone else has this class under their own internal
namespace by properly wrapping this internal namespace under the
library's.
Change-Id: I935c017cc109f12b339f4c65258ee43a03b3a3d5
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'src/ipmiblob')
| -rw-r--r-- | src/ipmiblob/internal/sys.cpp | 3 | ||||
| -rw-r--r-- | src/ipmiblob/internal/sys.hpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ipmiblob/internal/sys.cpp b/src/ipmiblob/internal/sys.cpp index 46c6642..71cd182 100644 --- a/src/ipmiblob/internal/sys.cpp +++ b/src/ipmiblob/internal/sys.cpp @@ -21,6 +21,8 @@ #include <sys/mman.h> #include <unistd.h> +namespace ipmiblob +{ namespace internal { @@ -68,3 +70,4 @@ int SysImpl::poll(struct pollfd* fds, nfds_t nfds, int timeout) const SysImpl sys_impl; } // namespace internal +} // namespace ipmiblob diff --git a/src/ipmiblob/internal/sys.hpp b/src/ipmiblob/internal/sys.hpp index 2975b8c..ba9bcbe 100644 --- a/src/ipmiblob/internal/sys.hpp +++ b/src/ipmiblob/internal/sys.hpp @@ -13,6 +13,8 @@ #include <cinttypes> #include <cstddef> +namespace ipmiblob +{ namespace internal { @@ -59,3 +61,4 @@ class SysImpl : public Sys extern SysImpl sys_impl; } // namespace internal +} // namespace ipmiblob |

