blob: ce20130d67d4d1da29d655e3eae72da48c762f83 [file] [log] [blame]
#ifndef PRODUCTION_SUSHID_SAFEPOWER_AGENT_CONVERT_PROTO_H_
#define PRODUCTION_SUSHID_SAFEPOWER_AGENT_CONVERT_PROTO_H_
#include "google/protobuf/timestamp.pb.h"
#include "safepower_agent.pb.h"
#include "absl/status/status.h"
#include "absl/time/time.h"
namespace safepower_agent {
absl::Time ConvertTime(const google::protobuf::Timestamp& timestamp);
void SetTimestamp(google::protobuf::Timestamp& timestamp, absl::Time time);
void SetTimestampToNow(google::protobuf::Timestamp& timestamp);
void SetStatus(safepower_agent_proto::Status& status_proto,
const absl::Status& status);
} // namespace safepower_agent
#endif // PRODUCTION_SUSHID_SAFEPOWER_AGENT_CONVERT_PROTO_H_