Commit 29eddbf7 authored by Marc Vef's avatar Marc Vef
Browse files

Merge branch '139-use-nested-namespaces-in-the-code-base' into 'master'

Resolve "Use nested namespaces in the code base"

Closes #139

See merge request !82
parents b256c640 cc125647
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ struct statfs;
struct linux_dirent;
struct linux_dirent64;

namespace gkfs {
namespace hook {
namespace gkfs::hook {

int
hook_openat(int dirfd, const char* cpath, int flags, mode_t mode);
@@ -164,7 +163,6 @@ hook_fstatfs(unsigned int fd, struct statfs* buf);
int
hook_fsync(unsigned int fd);

} // namespace hook
} // namespace gkfs
} // namespace gkfs::hook

#endif
+0 −1
Original line number Diff line number Diff line
@@ -86,7 +86,6 @@ forward_mk_symlink(const std::string& path, const std::string& target_path);

#endif


} // namespace rpc
} // namespace gkfs

+4 −8
Original line number Diff line number Diff line
@@ -49,8 +49,7 @@
#include <common/common_defs.hpp>
#include <common/rpc/rpc_types.hpp>

namespace hermes {
namespace detail {
namespace hermes::detail {

struct hg_void_t {};

@@ -62,11 +61,9 @@ hg_proc_void_t(hg_proc_t proc, void* data) {
    return HG_SUCCESS;
}

} // namespace detail
} // namespace hermes
} // namespace hermes::detail

namespace gkfs {
namespace rpc {
namespace gkfs::rpc {

//==============================================================================
// definitions for fs_config
@@ -2283,8 +2280,7 @@ struct chunk_stat {
    };
};

} // namespace rpc
} // namespace gkfs
} // namespace gkfs::rpc


#endif // GKFS_RPCS_TYPES_HPP
+2 −6
Original line number Diff line number Diff line
@@ -47,9 +47,7 @@
#include <fmt/format.h>
#include <client/syscalls/detail/syscall_info.h>

namespace gkfs {
namespace syscall {
namespace arg {
namespace gkfs::syscall::arg {

/** Allowed arg types (based on the values of the corresponding C enum) */
enum class type {
@@ -717,9 +715,7 @@ format_arg_to(FmtBuffer& buffer, const printable_arg& parg) {
#undef LIKELY
#undef UNLIKELY

} // namespace arg
} // namespace syscall
} // namespace gkfs
} // namespace gkfs::syscall::arg

#endif // GKFS_SYSCALLS_ARGS_HPP

+2 −4
Original line number Diff line number Diff line
@@ -34,8 +34,7 @@
#include <client/syscalls/args.hpp>
#include <client/syscalls/rets.hpp>

namespace gkfs {
namespace syscall {
namespace gkfs::syscall {

namespace detail {

@@ -113,7 +112,6 @@ decode(FmtBuffer& buffer, const long syscall_number, const long argv[MAX_ARGS],
    ret.formatter<FmtBuffer>()(buffer, result);
}

} // namespace syscall
} // namespace gkfs
} // namespace gkfs::syscall

#endif // GKFS_SYSCALLS_DECODER_HPP
 No newline at end of file
Loading