rest interface for channe ltypes

This commit is contained in:
openshwprojects
2023-02-20 17:03:52 +01:00
parent 877a202bad
commit c4d7b7131f
5 changed files with 133 additions and 1 deletions

View File

@ -706,6 +706,13 @@ int JSON_ProcessCommandReply(const char *cmd, const char *arg, void *request, js
}
}
}
else if (!wal_strnicmp(cmd, "SetChannelType", 14)) {
// OBK-specific
int i = atoi(arg);
i = CHANNEL_GetType(i);
printer(request, "%i", i);
}
else if (!wal_strnicmp(cmd, "GetChannel", 10) || !wal_strnicmp(cmd, "SetChannel", 10) || !wal_strnicmp(cmd, "AddChannel", 10)) {
// OBK-specific
int i = atoi(arg);