]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Minor cleanups.
authorVMware, Inc <>
Mon, 26 Jul 2010 18:35:47 +0000 (11:35 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:35:47 +0000 (11:35 -0700)
. remove function typedefs from message.h (they're not used anywhere).
. remove function declarations from vixTools.h (functions don't exist).
. remove socketMgr.h (not included by anyone anymore).
. remove stale GuestInfo_GetSystemBitness prototype.
. remove RpcIn_restart() (not used anywhere).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/guestInfoLib.h
open-vm-tools/lib/include/message.h
open-vm-tools/lib/include/rpcin.h
open-vm-tools/lib/include/vixTools.h
open-vm-tools/lib/rpcIn/rpcin.c

index 5c25c77bd9666db32be12ae006b159db8c1385ff..19c0d21fbfeeea68a6ff108340731911ef61f4dd 100644 (file)
@@ -60,10 +60,6 @@ GuestInfo_GetOSName(unsigned int outBufFullLen,
                     char *osNameFull,
                     char *osName);
 
-int
-GuestInfo_GetSystemBitness(void);
-
-
 /*
  * Comparison routines -- handy for caching, unit testing.
  */
index 757e9f4c09b5847257b584b65605d35a96143c2d..e183d7ed3e77e89797d24e4fdab910ceea19f409 100644 (file)
@@ -49,29 +49,6 @@ extern "C" {
 
 typedef struct Message_Channel Message_Channel;
 
-
-/*
- * These functions must be implemented by any external Message
- * transport implementation. Some examples include crossTalk,
- * a network socket, or a Microsoft Hypervisor backdoor.
- *
- * These external functions mirror the same corresponding Message_* 
- * functions below.
- */
-typedef Message_Channel *(*MessageOpenProcType)(uint32 proto);
-
-typedef Bool (*MessageGetReadEventProcType)(Message_Channel *chan,
-                                            int64 *readEvent);
-
-typedef Bool (*MessageSendProcType)(Message_Channel *chan,
-                                    const unsigned char *buf,
-                                    size_t bufSize);
-typedef Bool (*MessageReceiveProcType)(Message_Channel *chan,
-                                       unsigned char **buf,
-                                       size_t *bufSize);
-typedef Bool (*MessageCloseProcType)(Message_Channel *chan);
-
-
 Message_Channel *
 Message_Open(uint32 proto); // IN
 
index 62a64d32927ff4b0aa2a720cef58f44c8932229f..9579eadd43e811938914a553c420f9da44f9624c 100644 (file)
@@ -117,7 +117,6 @@ unsigned int RpcIn_SetRetVals(char const **result, size_t *resultLen,
 #endif
 
 void RpcIn_Destruct(RpcIn *in);
-Bool RpcIn_restart(RpcIn *in);
 Bool RpcIn_stop(RpcIn *in);
 
 
index 8a4a73a0e69d6b3b4c69540a67137dfc27966596..9f8842fa333a64bb04f170fa5505bf8f0f719f34 100644 (file)
@@ -107,26 +107,6 @@ VixError VixToolsGetUserTmpDir(void *userToken,
 Bool VixToolsUserIsMemberOfAdministratorGroup(VixCommandRequestHeader *requestMsg);
 #endif // _WIN32
 
-#if IMPLEMENT_SOCKET_MGR
-VixError VixToolsSocketConnect(VixCommandRequestHeader *requestMsg,
-                               char **result);
-
-VixError VixToolsSocketListen(VixCommandRequestHeader *requestMsg,
-                              char **result);
-
-VixError VixToolsSocketAccept(VixCommandRequestHeader *requestMsg,
-                              char *testName);
-
-VixError VixToolsSocketSend(VixCommandRequestHeader *requestMsg,
-                            char *testName);
-
-VixError VixToolsSocketRecv(VixCommandRequestHeader *requestMsg,
-                            char *testName);
-
-VixError VixToolsSocketClose(VixCommandRequestHeader *requestMsg);
-#endif // IMPLEMENT_SOCKET_MGR
-
-
 #endif /* __VIX_TOOLS_H__ */
 
 
index 3984203f1c484db7c50a95bcb70b40497dcdf1de..eec99424430ad6c27052a2f1fa4f842fcd0b4b03 100644 (file)
@@ -854,64 +854,6 @@ error:
 }
 
 
-/*
- *-----------------------------------------------------------------------------
- *
- * RpcIn_restart --
- *
- *    Stops/starts the background loop that receives RPC from VMware.
- *    Keeps already registered callbacks. Regardless of the value returned,
- *    callers are still expected to call RpcIn_stop() when done using rpcin,
- *    to properly release used resources.
- *
- * Result
- *    TRUE on success
- *    FALSE on failure
- *
- * Side-effects
- *    None
- *
- *-----------------------------------------------------------------------------
- */
-
-Bool
-RpcIn_restart(RpcIn *in)  // IN
-{
-   ASSERT(in);
-
-   if (RpcIn_stop(in) == FALSE) {
-      return FALSE;
-   }
-
-   ASSERT(in->channel == NULL);
-   in->channel = Message_Open(0x4f4c4354);
-   if (in->channel == NULL) {
-      Debug("RpcIn_restart: couldn't open channel with TCLO protocol\n");
-      return FALSE;
-   }
-
-   if (in->last_result) {
-      free(in->last_result);
-      in->last_result = NULL;
-   }
-   in->last_resultLen = 0;
-   in->mustSend = TRUE;
-
-   ASSERT(in->nextEvent == NULL);
-#if defined(VMTOOLS_USE_GLIB)
-   RPCIN_SCHED_EVENT(in, g_idle_source_new());
-#else
-   in->nextEvent = EventManager_Add(gTimerEventQueue, 0, RpcInLoop, in);
-#endif
-   if (in->nextEvent == NULL) {
-      Debug("RpcIn_restart: couldn't start the loop\n");
-      return FALSE;
-   }
-
-   return TRUE;
-}
-
-
 #if !defined(VMTOOLS_USE_GLIB)
 /*
  *-----------------------------------------------------------------------------