|
|
@ -5,7 +5,7 @@
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct Robot {
|
|
|
|
struct RobotImp {
|
|
|
|
|
|
|
|
|
|
|
|
struct Client* client;
|
|
|
|
struct Client* client;
|
|
|
|
uint16_t seq;
|
|
|
|
uint16_t seq;
|
|
|
@ -249,8 +249,8 @@ robot_work(Robot robot) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Robot robot_new() {
|
|
|
|
Robot robot_new() {
|
|
|
|
struct Robot* robot = malloc(sizeof(struct Robot));
|
|
|
|
struct RobotImp* robot = malloc(sizeof(struct RobotImp));
|
|
|
|
memset(robot, 0, sizeof(struct Robot));
|
|
|
|
memset(robot, 0, sizeof(struct RobotImp));
|
|
|
|
return robot;
|
|
|
|
return robot;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|