#define STRUTIL_H
#include <stdarg.h>
+#include "vm_basic_types.h"
-#include "fileIO.h"
-#include "dynbuf.h"
+struct DynBuf;
-char * StrUtil_GetNextToken(unsigned int *index, const char *str,
- const char *delimiters);
+char *StrUtil_GetNextToken(unsigned int *index, const char *str,
+ const char *delimiters);
Bool StrUtil_GetNextIntToken(int32 *out, unsigned int *index, const char *str,
const char *delimiters);
Bool StrUtil_GetNextUintToken(uint32 *out, unsigned int *index, const char *str,
Bool StrUtil_StrToDouble(double *out, const char *str);
Bool StrUtil_CapacityToSectorType(SectorType *out, const char *str,
unsigned int bytes);
-char * StrUtil_FormatSizeInBytesUnlocalized(uint64 size);
+char *StrUtil_FormatSizeInBytesUnlocalized(uint64 size);
size_t StrUtil_GetLongestLineLength(const char *buf, size_t bufLength);
Bool StrUtil_CaselessStartsWith(const char *s, const char *prefix);
Bool StrUtil_EndsWith(const char *s, const char *suffix);
-Bool StrUtil_VDynBufPrintf(DynBuf *b, const char *fmt, va_list args);
-Bool StrUtil_DynBufPrintf(DynBuf *b, const char *fmt, ...);
-void StrUtil_SafeDynBufPrintf(DynBuf *b, const char *fmt, ...);
+Bool StrUtil_VDynBufPrintf(struct DynBuf *b, const char *fmt, va_list args);
+Bool StrUtil_DynBufPrintf(struct DynBuf *b, const char *fmt, ...);
+void StrUtil_SafeDynBufPrintf(struct DynBuf *b, const char *fmt, ...);
#endif /* STRUTIL_H */
*/
#include "guestDnDCPMgr.hh"
-#ifdef DND_USING_VMCF
-# include "dndCPTransportVMCF.hh"
-#else
-# include "dndCPTransportGuestRpc.hpp"
-#endif
+#include "dndCPTransportGuestRpc.hpp"
extern "C" {
#include "debug.h"
{
mToolsAppCtx = ctx;
-#if !defined(DND_USING_VMCF)
ASSERT(mToolsAppCtx);
-#endif
if (mFileTransfer) {
delete mFileTransfer;
{
if (!mTransport) {
ASSERT(mToolsAppCtx);
-#ifdef DND_USING_VMCF
- GKeyFile *confDictRef = NULL;
- const char *brokerAddr = NULL;
-
- confDictRef = mToolsAppCtx->config;
- if (confDictRef) {
- brokerAddr = g_key_file_get_string(confDictRef,
- "vmcf.broker",
- "addr",
- NULL);
- }
- if (!brokerAddr) {
-
- /* We are executing in the simulator, so hardcode the brokerAddr. */
- brokerAddr = "tcp:host=127.0.0.1,port=8672,family=ipv4";
- }
- mTransport = new DnDCPTransportVMCF(brokerAddr, NULL, false);
-#else
mTransport = new DnDCPTransportGuestRpc(mToolsAppCtx->rpc);
-#endif
}
return mTransport;
}