return len;
}
+int pb_protocol_url_len(const char *url)
+{
+ /* url + length field */
+ return 4 + optional_strlen(url);
+}
+
int pb_protocol_serialise_device(const struct device *dev,
char *buf, int buf_len)
{
return 0;
}
+int pb_protocol_serialise_url(const char *url, char *buf, int buf_len)
+{
+ char *pos = buf;
+
+ pos += pb_protocol_serialise_string(pos, url);
+
+ assert(pos <=buf+buf_len);
+ (void)buf_len;
+
+ return 0;
+}
+
int pb_protocol_write_message(int fd, struct pb_protocol_message *message)
{
int total_len, rc;