summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client.c8
-rw-r--r--src/rest.c2
-rw-r--r--src/rest.h1
3 files changed, 9 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index 5befa9c..6c5743f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -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;
}
diff --git a/src/rest.c b/src/rest.c
index dba7122..1d66690 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -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";
}
diff --git a/src/rest.h b/src/rest.h
index a4e6e64..4efe5dc 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -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 {