mirror of https://git.48k.eu/ogserver
#1065 client: add support for ogclient win state
ogClient can be run in windows mode, enabling connection with ogServer when running on a Windows machine. Don't expect the same payload in windows mode as a in live or virtual. Client in windows mode does not send partition setup information, only the status/state. (same case for linux mode)master
parent
5a3fd51261
commit
b6b1040997
|
@ -313,8 +313,12 @@ static int og_resp_refresh(json_t *data, struct og_client *cli)
|
|||
return err;
|
||||
}
|
||||
|
||||
if (status && !strncmp(status, "LINUX", strlen("LINUX"))) {
|
||||
cli->status = OG_CLIENT_STATUS_LINUX;
|
||||
if (status) {
|
||||
if (!strncmp(status, "LINUX", strlen("LINUX"))) {
|
||||
cli->status = OG_CLIENT_STATUS_LINUX;
|
||||
} else if (!strncmp(status, "WIN", strlen("WIN"))) {
|
||||
cli->status = OG_CLIENT_STATUS_WIN;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -126,6 +126,8 @@ static const char *og_client_status(const struct og_client *cli)
|
|||
return "VDI";
|
||||
case OG_CLIENT_STATUS_LINUX:
|
||||
return "LINUX";
|
||||
case OG_CLIENT_STATUS_WIN:
|
||||
return "WIN";
|
||||
default:
|
||||
return "OFF";
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ enum og_client_status {
|
|||
OG_CLIENT_STATUS_BUSY,
|
||||
OG_CLIENT_STATUS_VIRTUAL,
|
||||
OG_CLIENT_STATUS_LINUX,
|
||||
OG_CLIENT_STATUS_WIN,
|
||||
};
|
||||
|
||||
enum og_cmd_type {
|
||||
|
|
Loading…
Reference in New Issue