. 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>
char *osNameFull,
char *osName);
-int
-GuestInfo_GetSystemBitness(void);
-
-
/*
* Comparison routines -- handy for caching, unit testing.
*/
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
#endif
void RpcIn_Destruct(RpcIn *in);
-Bool RpcIn_restart(RpcIn *in);
Bool RpcIn_stop(RpcIn *in);
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__ */
}
-/*
- *-----------------------------------------------------------------------------
- *
- * 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)
/*
*-----------------------------------------------------------------------------