mirror of https://git.48k.eu/ogserver
#980 Add Virtual status
Since version 1.2.0, OpenGnsys supports ogVDI hypervisor OS. This commit a new status which indicates that clients are running ogVDI.master
parent
f6f1f18bd8
commit
c0f5d2c206
|
@ -105,6 +105,8 @@ static int og_resp_probe(struct og_client *cli, json_t *data)
|
|||
cli->status = OG_CLIENT_STATUS_BUSY;
|
||||
else if (!strcmp(status, "OPG"))
|
||||
cli->status = OG_CLIENT_STATUS_OGLIVE;
|
||||
else if (!strcmp(status, "VDI"))
|
||||
cli->status = OG_CLIENT_STATUS_VIRTUAL;
|
||||
|
||||
return status ? 0 : -1;
|
||||
}
|
||||
|
|
|
@ -146,6 +146,8 @@ static const char *og_client_status(const struct og_client *cli)
|
|||
return "BSY";
|
||||
case OG_CLIENT_STATUS_OGLIVE:
|
||||
return "OPG";
|
||||
case OG_CLIENT_STATUS_VIRTUAL:
|
||||
return "VDI";
|
||||
default:
|
||||
return "OFF";
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ enum og_client_state {
|
|||
enum og_client_status {
|
||||
OG_CLIENT_STATUS_OGLIVE,
|
||||
OG_CLIENT_STATUS_BUSY,
|
||||
OG_CLIENT_STATUS_VIRTUAL,
|
||||
};
|
||||
|
||||
enum og_cmd_type {
|
||||
|
|
Loading…
Reference in New Issue