From 9e81fcd4bdb089b8f8a05c6fbb586ec2a2a14924 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 Jun 2020 16:04:40 +0200 Subject: Change 'observe' to 'subscribe' (and incidentally 'publish') which is more common lingo. --- src/message.h | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'src/message.h') diff --git a/src/message.h b/src/message.h index ea1c444..bb56932 100644 --- a/src/message.h +++ b/src/message.h @@ -35,14 +35,14 @@ namespace cmd { typedef enum { - observe, - unobserve, - update, - move, - create, - remove, login, logout, + subscribe, + unsubscribe, + create, + remove, + move, + update, error, } cmd_t; }; @@ -53,15 +53,19 @@ typedef struct std::string password; } login_t; +typedef struct +{ +} logout_t; + typedef struct { taskid_t id; -} observe_t; +} subscribe_t; typedef struct { taskid_t id; -} unobserve_t; +} unsubscribe_t; typedef struct { @@ -83,26 +87,26 @@ typedef struct typedef struct { taskid_t id; - std::string name; + std::string attribute; std::string value; } update_t; - typedef struct { cmd::cmd_t cmd; - observe_t observe; - unobserve_t unobserve; + login_t login; + logout_t logout; + subscribe_t subscribe; + unsubscribe_t unsubscribe; create_t create; remove_t remove; move_t move; update_t update; - login_t login; TaskIdList nodes; - // tagret node id (observed task id) used for transmissions only. + // target node id (subscription node id) used for transmissions only. taskid_t tid; } message_t; -- cgit v1.2.3