rpc_util.hpp 419 B
Newer Older
#ifndef GEKKOFS_GLOBAL_RPC_UTILS_HPP
#define GEKKOFS_GLOBAL_RPC_UTILS_HPP

extern "C" {
#include <mercury_types.h>
#include <mercury_proc_string.h>
}

#include <string>

Marc Vef's avatar
Marc Vef committed
namespace gkfs::rpc {
hg_bool_t
bool_to_merc_bool(bool state);
std::string
get_my_hostname(bool short_hostname = false);
std::string
get_host_by_name(const std::string& hostname);
Marc Vef's avatar
Marc Vef committed
} // namespace gkfs::rpc
#endif // GEKKOFS_GLOBAL_RPC_UTILS_HPP