]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Thu, 5 Oct 2023 17:35:26 +0000 (10:35 -0700)
committerKaty Feng <fkaty@vmware.com>
Thu, 5 Oct 2023 17:35:26 +0000 (10:35 -0700)
open-vm-tools/services/vmtoolsd/cmdLine.c
open-vm-tools/services/vmtoolsd/mainLoop.c

index 68c2d138aef8b3370bfaa07642e6e997ca72cc7d..e18715d7a5262020513ef1daafa03da6e78c13c2 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2008-2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2008-2021,2023 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
 #include "vmware/tools/guestrpc.h"
 #include "vm_version.h"
 
+/*
+ * TODO: Build vmcheck library
+ */
+#ifndef _ARM64_
 /**
  * Runs the given Tools RPC command, printing the result to the terminal and
  * exiting the application afterwards.
@@ -136,6 +140,7 @@ ToolsCoreRunCommandFromFile(const gchar *option,
                   "Unable to send command from file to VMware hypervisor."));
    exit(1);
 }
+#endif //_ARM64_
 
 
 #if defined(G_PLATFORM_WIN32)
@@ -286,12 +291,17 @@ ToolsCore_ParseCommandLine(ToolsServiceState *state,
       { "plugin-path", 'p', 0, G_OPTION_ARG_FILENAME, &state->pluginPath,
          SU_(cmdline.pluginpath, "Path to the plugin directory."),
          SU_(cmdline.path, "path") },
+/*
+ * TODO: Build vmcheck library
+ */
+#ifndef _ARM64_
       { "cmd", '\0', 0, G_OPTION_ARG_CALLBACK, ToolsCoreRunCommand,
          SU_(cmdline.rpc, "Sends an RPC command to the host and exits."),
          SU_(cmdline.rpc.command, "command") },
       { "cmdfile", '\0', 0, G_OPTION_ARG_CALLBACK, ToolsCoreRunCommandFromFile,
          SU_(cmdline.cmdfile, "Sends an RPC command from a file to the host and exits."),
          SU_(cmdline.cmdfile.command, "command file") },
+#endif //_ARM64+
 #if defined(G_PLATFORM_WIN32)
       { "dump-state", 's', 0, G_OPTION_ARG_NONE, &dumpState,
          SU_(cmdline.state, "Dumps the internal state of a running service instance to the logs."),
index d6487aedbf7fa08a4290965f8224fde2983e2237..f6f595562b6cd255e53e0857a87d4c6c441a2fc4 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (c) 2008-2022 VMware, Inc. All rights reserved.
+ * Copyright (c) 2008-2023 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
@@ -1201,7 +1201,12 @@ ToolsCore_Setup(ToolsServiceState *state)
 #else
    state->ctx.mainLoop = g_main_loop_new(gctx, FALSE);
 #endif
+   /*
+    * TODO: Build vmcheck library
+    */
+#ifndef _ARM64_
    state->ctx.isVMware = VmCheck_IsVirtualWorld();
+#endif
    g_main_context_unref(gctx);
 
    g_type_init();