Android-cuttlefish cvd tool
Namespaces | Functions
utils.cpp File Reference
#include "cuttlefish/host/libs/allocd/utils.h"
#include <cstdint>
#include <optional>
#include "cuttlefish/common/libs/fs/shared_buf.h"
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/host/libs/allocd/request.h"
Include dependency graph for utils.cpp:

Namespaces

namespace  cuttlefish
 

Functions

bool cuttlefish::SendJsonMsg (SharedFD client_socket, const Json::Value &resp)
 
std::optional< Json::Value > cuttlefish::RecvJsonMsg (SharedFD client_socket)
 
std::string cuttlefish::ReqTyToStr (RequestType req_ty)
 
RequestType cuttlefish::StrToReqTy (const std::string &req)
 
RequestStatus cuttlefish::StrToStatus (const std::string &st)
 
std::string cuttlefish::StatusToStr (RequestStatus st)
 
std::string cuttlefish::IfaceTyToStr (IfaceType iface)
 
IfaceType cuttlefish::StrToIfaceTy (const std::string &iface)