Skip to content

Commit

Permalink
document existence of _type=status in code
Browse files Browse the repository at this point in the history
	addresses #482
  • Loading branch information
jpmens committed Jul 31, 2024
1 parent ea54106 commit 9275341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle
else if (!strcmp(j->string_, "cmd")) _type = T_CMD;
else if (!strcmp(j->string_, "lwt")) _type = T_LWT;
else if (!strcmp(j->string_, "steps")) _type = T_STEPS;
else if (!strcmp(j->string_, "status")) _type = T_STATUS;
else if (!strcmp(j->string_, "transition")) _type = T_TRANSITION;
else if (!strcmp(j->string_, "waypoint")) _type = T_WAYPOINT;
else if (!strcmp(j->string_, "waypoints")) _type = T_WAYPOINTS;
Expand Down Expand Up @@ -985,6 +986,7 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle
goto cleanup;
break;
#endif /* WITH_TOURS */
case T_STATUS: /* Fall through */
default:
dumpedpayload = bindump(payload, payloadlen);
#ifdef WITH_LUA
Expand Down
1 change: 1 addition & 0 deletions storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ typedef enum {
#ifdef WITH_TOURS
T_REQUEST,
#endif
T_STATUS,
} payload_type;

JsonNode *lister(char *username, char *device, time_t s_lo, time_t s_hi, int reverse);
Expand Down

0 comments on commit 9275341

Please sign in to comment.