From f2918b441d216ef4f2b0159a49dfdd77c559102f Mon Sep 17 00:00:00 2001 From: PgSocks Date: Wed, 15 Mar 2023 14:51:00 -0500 Subject: [PATCH] Change name of Robot struct to include in C++ --- include/roboeasy.h | 4 ++-- src/robo.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/roboeasy.h b/include/roboeasy.h index a1ea2e8..4377133 100644 --- a/include/roboeasy.h +++ b/include/roboeasy.h @@ -1,8 +1,8 @@ #pragma once // Handle for the high level robot interface -struct Robot; -typedef struct Robot* Robot; +struct RobotImp; +typedef struct RobotImp* Robot; /* * Return a handle to the high level robot interface, or NULL on error. diff --git a/src/robo.c b/src/robo.c index 084bb1b..ef2d115 100644 --- a/src/robo.c +++ b/src/robo.c @@ -5,7 +5,7 @@ #include #include -struct Robot { +struct RobotImp { struct Client* client; uint16_t seq; @@ -249,8 +249,8 @@ robot_work(Robot robot) { } Robot robot_new() { - struct Robot* robot = malloc(sizeof(struct Robot)); - memset(robot, 0, sizeof(struct Robot)); + struct RobotImp* robot = malloc(sizeof(struct RobotImp)); + memset(robot, 0, sizeof(struct RobotImp)); return robot; }