]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Clean up usage of vm_app.h in bora-vmsoft.
authorVMware, Inc <>
Thu, 15 Oct 2009 21:02:41 +0000 (14:02 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 15 Oct 2009 21:02:41 +0000 (14:02 -0700)
That header has been "deprecated" and replaced by more app-specific ones in
the new guestABI component. This change focuses mostly on files that are part
of open-vm-tools (so we can at least remove the deprecated header there).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
26 files changed:
open-vm-tools/lib/guestApp/guestApp.c
open-vm-tools/lib/hgfsServerManagerGuest/hgfsServerManagerGuest.c
open-vm-tools/lib/include/vm_app.h [deleted file]
open-vm-tools/lib/resolution/resolution.c
open-vm-tools/lib/resolution/resolutionInt.h
open-vm-tools/lib/vixTools/vixTools.c
open-vm-tools/services/plugins/guestInfo/guestInfoServer.c
open-vm-tools/services/plugins/hgfsServer/hgfsPlugin.c
open-vm-tools/services/plugins/powerOps/powerOps.c
open-vm-tools/services/plugins/resolutionSet/resolutionInt.h
open-vm-tools/services/plugins/resolutionSet/resolutionSet.c
open-vm-tools/services/plugins/timeSync/timeSync.c
open-vm-tools/services/plugins/vix/foundryToolsDaemon.c
open-vm-tools/services/vmtoolsd/mainLoop.c
open-vm-tools/tests/testDebug/testDebug.c
open-vm-tools/tests/testPlugin/testPlugin.c
open-vm-tools/toolbox/toolbox-gtk.c
open-vm-tools/toolbox/toolboxInt.h
open-vm-tools/toolbox/toolboxOptions.c
open-vm-tools/toolbox/toolboxcmd-time.c
open-vm-tools/vmware-user/copyPaste.c
open-vm-tools/vmware-user/copyPasteUI.cpp
open-vm-tools/vmware-user/dnd.c
open-vm-tools/vmware-user/dndUI.cpp
open-vm-tools/vmware-user/pointer.c
open-vm-tools/vmware-user/vmware-user.cpp

index eb647bbcad43ec0d7dab8c769a10cb3bb1c6478d..62df560cd3907ce2250cb8ddf4e7236978d9d4ac 100644 (file)
@@ -32,7 +32,6 @@ extern "C" {
 #include <string.h>
 
 #include "vmware.h"
-#include "vm_app.h"
 #include "vm_version.h"
 #include "vm_tools_version.h"
 #include "guestApp.h"
@@ -50,6 +49,7 @@ extern "C" {
 #include "codeset.h"
 #include "productState.h"
 #include "posix.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 #include "hgfs.h"
 #include "cpName.h"
index 8879900900679543b8371549df0c394f08a2cb38..333354360eb97721e08ab75c0c53ba071ce101ea 100644 (file)
@@ -31,9 +31,9 @@
 #include "hgfsServer.h"
 #include "hgfsChannel.h"
 #include "hgfsServerManager.h"
-#include "vm_app.h"
 #include "vm_assert.h"
 #include "hgfs.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 
 static Bool HgfsServerManagerRpcInDispatch(char const **result,
diff --git a/open-vm-tools/lib/include/vm_app.h b/open-vm-tools/lib/include/vm_app.h
deleted file mode 100644 (file)
index 64521f0..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*********************************************************
- * Copyright (C) 1998 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
- * by the Free Software Foundation version 2.1 and no later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
- *
- *********************************************************/
-
-/*
- * Common data structures used by the helper app that runs on the VM
- * and the user process.
- *
- * XXX: avoid including this file. Try to include the vmware/guestrpc
- * equivalent for your feature directly.
- */
-
-#ifndef _VM_APP_H_
-#define _VM_APP_H_
-
-#define INCLUDE_ALLOW_USERLEVEL
-#define INCLUDE_ALLOW_MODULE
-#include "includeCheck.h"
-
-#include "vmware/guestrpc/powerops.h"
-#include "vmware/guestrpc/tclodefs.h"
-#include "vmware/guestrpc/timesync.h"
-
-#endif
index 3ddc070a614d6f55c23ef279e33f1d055b3b6848..13ff58b479bd52b146fab7669a26e37a64b83f61 100644 (file)
@@ -28,7 +28,6 @@
 #include <string.h>
 
 #include "vmware.h"
-#include "vm_app.h"
 #include "debug.h"
 #include "rpcout.h"
 #include "str.h"
index 456ab27388e1fd8d5a171cc9d8d24b0730622ea9..0bb8531594ef6143c0e148964be149b3a4367b33 100644 (file)
@@ -30,7 +30,7 @@
 #include "includeCheck.h"
 
 #include "resolution.h"
-#include "vm_app.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 
 /*
index f281c15b2245dbe4607112f9de73f5d9a742965e..a961653d14b18a3bce8a16ab876b70e6f54291d6 100644 (file)
@@ -47,7 +47,6 @@
 #include "vmware.h"
 #include "procMgr.h"
 #include "vm_version.h"
-#include "vm_app.h"
 #include "message.h"
 
 #if defined(VMTOOLS_USE_GLIB)
index 6eab06199d44a6d7f99ca883ad3e34f2a812dad4..9380aa432528defb4e4d034c473df13366664bac 100644 (file)
 #include "strutil.h"
 #include "system.h"
 #include "util.h"
-#include "vm_app.h"
 #include "vmtools.h"
 #include "vmtoolsApp.h"
 #include "xdrutil.h"
 #include "vmsupport.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 #if !defined(__APPLE__)
 #include "embed_version.h"
index 5071500052e6a9ca9142cc0dd9990dc267d4b85f..17c3a3c31a18678642f6d790ebdb2ed57c7ca26a 100644 (file)
@@ -31,9 +31,9 @@
 #include "hgfsServerPolicy.h"
 #include "hgfsServer.h"
 #include "hgfsChannel.h"
-#include "vm_app.h"
 #include "vm_assert.h"
 #include "vmtools.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 #if !defined(__APPLE__)
 #include "embed_version.h"
index d9a1607c1dff0842aaed8f29cdd61a2ead3fe7b3..b0854ce7536f28e7dcbe8053c1b1bb314f8d92b0 100644 (file)
@@ -31,8 +31,8 @@
 #include "conf.h"
 #include "procMgr.h"
 #include "system.h"
-#include "vm_app.h"
 #include "vmtools.h"
+#include "vmware/guestrpc/powerops.h"
 
 #if defined(G_PLATFORM_WIN32)
 #  define INVALID_PID NULL
index 7934452111410d610c56fa14ab5c30636b593237..b6f999856a6d82618666a9dc3cedbb519e4bd90d 100644 (file)
@@ -30,7 +30,6 @@
 #include "includeCheck.h"
 
 #include "resolution.h"
-#include "vm_app.h"
 
 /*
  * Data types
index 6d4d18d3f5bedd03d4427fa3c2e35b04ea157e24..03a1e73c8e46debb0374656581e26b892866ec2e 100644 (file)
@@ -27,7 +27,6 @@
 #include <string.h>
 
 #include "vmware.h"
-#include "vm_app.h"
 #include "debug.h"
 #include "rpcout.h"
 #include "str.h"
@@ -38,6 +37,7 @@
 #include "vmtools.h"
 #include "vmtoolsApp.h"
 #include "xdrutil.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 /*
  * Internal global variables
index bada3a34b6a1b8520a08ac0272be7aaf20826da7..4906ce2bec37cd00183069fb6d80e98acadd6bec 100644 (file)
@@ -36,9 +36,9 @@
 #include "msg.h"
 #include "strutil.h"
 #include "system.h"
-#include "vm_app.h"
 #include "vmtools.h"
 #include "vmtoolsApp.h"
+#include "vmware/guestrpc/timesync.h"
 
 #if !defined(__APPLE__)
 #include "embed_version.h"
@@ -603,7 +603,7 @@ ToolsOnLoad(ToolsAppCtx *ctx)
 
    TimeSyncData *data = g_malloc(sizeof (TimeSyncData));
    RpcChannelCallback rpcs[] = {
-      { "Time_Synchronize", TimeSyncTcloHandler, data, NULL, NULL, 0 }
+      { TIMESYNC_SYNCHRONIZE, TimeSyncTcloHandler, data, NULL, NULL, 0 }
    };
    ToolsPluginSignalCb sigs[] = {
       { TOOLS_CORE_SIG_SET_OPTION, TimeSyncSetOption, &regData },
index 26eacf87b8e634be939a9f58e08fc8eaedd78e54..dab5a57145a1142a97f4127a99ef0553a5bf5c2c 100644 (file)
@@ -53,7 +53,6 @@
 #include "vmware.h"
 #include "procMgr.h"
 #include "vm_version.h"
-#include "vm_app.h"
 #include "message.h"
 
 #if defined(VMTOOLS_USE_GLIB)
index 892187bf0ca2d7bb4b9e3aa960d3f1356969e1d0..8fd5627a61328b80d6751cd1076b03072f0b7cc1 100644 (file)
@@ -37,9 +37,9 @@
 #include "serviceObj.h"
 #include "system.h"
 #include "util.h"
-#include "vm_app.h"
 #include "vmcheck.h"
 #include "vmtools.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 
 /**
index 81db1e98357062d0277e8ddd2d57398b31a0d10f..676f714f61367205d82130e0cc003f4272e9e4e0 100644 (file)
 #define G_LOG_DOMAIN "testDebug"
 #include <glib-object.h>
 #include "util.h"
-#include "vm_app.h"
 #include "vmrpcdbg.h"
 #include "vmtools.h"
 #include "guestrpc/ghiGetBinaryHandlers.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 static gboolean
 TestDebugValidateReset(RpcInData *data, Bool ret);
index 5ccb6cd50059562a7b6961547b3c6c653f89c30b..ebfe2d889c1219dbb9128d3944996581d01b0f07 100644 (file)
@@ -31,7 +31,6 @@
 #include "testData.h"
 #include "util.h"
 #include "vmtoolsApp.h"
-#include "vm_app.h"
 #include "vmtools.h"
 #include "guestrpc/ghiGetBinaryHandlers.h"
 
index aef1973e57064439a3d98f2c737ef5af6e0ac886..cc31dba169a5891cce5f06729a206b77f72c4b32 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "toolboxGtkInt.h"
 #include "vm_assert.h"
-#include "vm_app.h"
 #include "eventManager.h"
 #include "guestApp.h"
 #if !defined(OPEN_VM_TOOLS)
@@ -48,6 +47,8 @@
 #include "toolboxgtk_version.h"
 #include "util.h"
 #include "system.h"
+#include "vmware/guestrpc/tclodefs.h"
+#include "vmware/guestrpc/timesync.h"
 
 #include "embed_version.h"
 VM_EMBED_VERSION(TOOLBOXGTK_VERSION_STRING);
index 56b0685d49df55966ccfa11c0169fb584727b650..00cb07800461dac88c67de22906b33d27948a53e 100644 (file)
@@ -37,7 +37,6 @@
 #include "wiper.h"
 #include "backdoor_def.h"
 #include "backdoor.h"
-#include "vm_app.h"
 
 
 #define MAX_DEVICES 50  /* maximum number of devices we'll show */
index 329c41551e474e6581c4dfccdc08df3cf2997779..1a5a270b904e48e0719857deae97ee697662fc43 100644 (file)
 
 #include "toolboxGtkInt.h"
 #include "vm_version.h"
-#include "vm_app.h"
 #include "guestApp.h"
 #include "vmcheck.h"
 #include "wiper.h"
+#include "vmware/guestrpc/tclodefs.h"
+#include "vmware/guestrpc/timesync.h"
 
 /*
  *-----------------------------------------------------------------------------
index eb492942e83cc1093202f2cc535da723fd997b98..d7da9598561730ccb784f296b3af688540d96c19 100644 (file)
@@ -23,6 +23,8 @@
  */
 
 #include "toolboxCmdInt.h"
+#include "vmware/guestrpc/tclodefs.h"
+#include "vmware/guestrpc/timesync.h"
 
 
 /*
index 201b6e4b3fdf0d87405561ebb96146440795ac4c..9065ac8a52734e31b8241e123594b8d26134ca1c 100644 (file)
@@ -67,7 +67,6 @@
 #include "debug.h"
 #include "str.h"
 #include "strutil.h"
-#include "vm_app.h"
 #include "eventManager.h"
 #include "guestApp.h"
 #include "dnd.h"
@@ -81,7 +80,7 @@
 #include "escape.h"
 #include "hostinfo.h"
 #include "wiper.h"
-
+#include "vmware/guestrpc/tclodefs.h"
 
 /*
  * Gtk 1.2 doesn't know about the CLIPBOARD selection, but that doesn't matter, we
index e6f3bbd506d751d0b0a4302adf71ca02918984be..6a4e3c038f43de8c6bb1763e1e67d18e3c63840b 100644 (file)
@@ -34,7 +34,6 @@
 extern "C" {
    #include "vmwareuserInt.h"
    #include "vmblock.h"
-   #include "vm_app.h"
    #include "file.h"
    #include "dnd.h"
    #include "dndMsg.h"
@@ -44,6 +43,7 @@ extern "C" {
    #include "cpNameUtil.h"
    #include "rpcout.h"
    #include "eventManager.h"
+   #include "vmware/guestrpc/tclodefs.h"
 }
 
 /*
index 9a5f3aa95cf9e6bda1c5bbe873ed81792820470a..bc91489633564c4e8aa3fbf4138e684a54a82342 100644 (file)
 #include <X11/Xatom.h>                  /* for XA_WINDOW */
 
 #include "vmwareuserInt.h"
-#include "vm_app.h"
 #include "vm_assert.h"
 #include "vm_basic_defs.h"
 #include "eventManager.h"
 #include "hgfsServerPolicy.h"
 #include "vmblock.h"
 #include "escape.h"
-
+#include "vmware/guestrpc/tclodefs.h"
 
 #define DND_MAX_PATH                    6144
 #define DRAG_TARGET_NAME_URI_LIST       "text/uri-list"
index f94224b2c0050569dbcb3a93adc10bd485d6ef63..6079d43a512f05c165b53f5e6b8c75d1941407ba 100644 (file)
@@ -28,7 +28,6 @@
 extern "C" {
 #include "vmwareuserInt.h"
 #include "vmblock.h"
-#include "vm_app.h"
 #include "file.h"
 #include "dnd.h"
 #include "dndMsg.h"
@@ -42,6 +41,7 @@ extern "C" {
 #include "unity.h"
 #include <gtk/gtk.h>
 #include <X11/extensions/XTest.h>       /* for XTest*() */
+#include "vmware/guestrpc/tclodefs.h"
 }
 
 #include "dndGuest.h"
index 7f394f7c3ac23e4905c4e3a944308fc61195e627..96da7640477789566f1ca6983248e0665e2e8d52 100644 (file)
@@ -30,9 +30,9 @@
 #include "debug.h"
 #include "str.h"
 #include "strutil.h"
-#include "vm_app.h"
 #include "guestApp.h"
 #include "eventManager.h"
+#include "vmware/guestrpc/tclodefs.h"
 
 static GuestAppAbsoluteMouseState absoluteMouseState = GUESTAPP_ABSMOUSE_UNKNOWN;
 static Bool mouseIsGrabbed;
index 33efe4b52bc426d959c9cd2f8d27b4458f2120e9..d4515be15f76a01cb5c6cc3e52db13c0e59671d2 100644 (file)
@@ -42,7 +42,6 @@ extern "C" {
 
 #include "vmwareuserInt.h"
 #include "vm_assert.h"
-#include "vm_app.h"
 #include "eventManager.h"
 #include "hgfsServerManager.h"
 #include "vmcheck.h"
@@ -63,8 +62,8 @@ extern "C" {
 #include "vm_atomic.h"
 #include "hostinfo.h"
 #include "vmwareuser_version.h"
-
 #include "embed_version.h"
+#include "vmware/guestrpc/tclodefs.h"
 } // extern "C"
 VM_EMBED_VERSION(VMWAREUSER_VERSION_STRING);