| 1128 | } |
| 1129 | |
| 1130 | static int dist_write_frame_header(int fd, uint32_t type, uint32_t bytes) { |
| 1131 | ds4_dist_frame_header h = { |
| 1132 | htonl(DS4_DIST_MAGIC), |
| 1133 | htonl(type), |
| 1134 | htonl(bytes) |
| 1135 | }; |
| 1136 | return dist_write_full(fd, &h, sizeof(h)); |
| 1137 | } |
| 1138 | |
| 1139 | static int dist_read_frame_header(int fd, uint32_t *type, uint32_t *bytes, char *err, size_t errlen) { |
| 1140 | ds4_dist_frame_header h; |
no test coverage detected