]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:04 +0000 (12:11 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:04 +0000 (12:11 -0700)
open-vm-tools/services/vmtoolsd/mainLoop.c

index f864742cb6abaab7801e79c14eb308e2f0464687..3a67a085e44ff9ec0fde381afd0e54bb2ba2d711 100644 (file)
 #include "vmware/tools/vmbackup.h"
 #if defined(_WIN32)
 #  include "codeset.h"
+#  include "guestStoreClient.h"
 #  include "windowsu.h"
 #else
 #  include "posix.h"
 #endif
 
+
 /*
  * Establish the default and maximum vmusr RPC channel error limits
  * that will be used to detect that the single allowed toolbox-dnd channel
@@ -100,6 +102,13 @@ ToolsCoreCleanup(ToolsServiceState *state)
       ToolsCore_ReleaseVsockFamily(state);
    }
 #endif
+
+#if defined(_WIN32)
+   if (state->mainService && GuestStoreClient_DeInit()) {
+      g_info("%s: De-initialized GuestStore client.\n", __FUNCTION__);
+   }
+#endif
+
    if (state->ctx.rpc != NULL) {
       RpcChannel_Stop(state->ctx.rpc);
       RpcChannel_Destroy(state->ctx.rpc);
@@ -398,6 +407,12 @@ ToolsCoreRunLoop(ToolsServiceState *state)
       ToolsCoreReportVersionData(state);
    }
 
+#if defined(_WIN32)
+   if (state->mainService && GuestStoreClient_Init()) {
+      g_info("%s: Initialized GuestStore client.\n", __FUNCTION__);
+   }
+#endif
+
    if (!ToolsCore_LoadPlugins(state)) {
       return 1;
    }