zhangzengfei
2023-01-12 88178aed18f9f1a42b8429e500b8431952f87f4d
1
2
3
4
5
6
7
8
9
10
#ifndef C_BHOMEBUS_API_UTIL_H
#define C_BHOMEBUS_API_UTIL_H
 
#define DATA_URL_PREFIX(x) "/data/api-v" x
 
bool json_to_proto(const std::string &json, google::protobuf::Message& message);
bool proto_to_json(const google::protobuf::Message& message, std::string& json);
char *make_get_request(const char *topic);
bool bus_dbapi_get(void *handle, const char* topic, google::protobuf::Message& message);
#endif