/*********************************************************
- * Copyright (C) 2004-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2018 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
return TRUE; \
} \
\
+ static INLINE Bool \
+ T##Array_PushFront(T##Array *a, TYPE val) \
+ { \
+ unsigned int count = T##Array_Count(a); \
+ if (!T##Array_SetCount(a, count + 1)) { \
+ return FALSE; \
+ } else { \
+ unsigned int i; \
+ for (i = count; i > 0; --i) { \
+ *T##Array_AddressOf(a, i) = *T##Array_AddressOf(a, i-1); \
+ } \
+ *T##Array_AddressOf(a, 0) = val; \
+ return TRUE; \
+ } \
+ } \
+ \
static INLINE unsigned int \
T##Array_AllocCount(T##Array *a) \
{ \
#define GUEST_LOG_STATE_CMD "guest.log.state"
#define GUEST_LOG_TEXT_CMD "guest.log.text"
+/*
+ * Update tools health command.
+ */
+#define UPDATE_TOOLS_HEALTH_CMD "update.tools.health"
+#define TOOLS_HEALTH_NORMAL_KEY "normal"
+#define TOOLS_HEALTH_HUNG_KEY "hung"
+#define TOOLS_HEALTH_GUEST_SLOW_KEY "guest_slow"
+
/*
* The max selection buffer length has to be less than the
* ipc msg max size b/c the selection is transferred from mks -> vmx