summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2009-10-29 15:59:30 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2009-10-29 15:59:30 +0100
commitb0bf22e364fe9af56356fb0eb72882067835ec00 (patch)
treebc88956ff908e8e53f7e6696839ba4b2c4de8fc9
parent8aeb64c4f8fdb5169de4ee4ba240d3d40a239f53 (diff)
DebugPuts(): added to the unilib engine
The unilib engine no longer implemented the experimental DebugPuts() call. Added the necessary virtual method implementation.
-rw-r--r--src/sysync/engineinterface.cpp13
-rwxr-xr-xsrc/sysync/engineinterface.h4
2 files changed, 17 insertions, 0 deletions
diff --git a/src/sysync/engineinterface.cpp b/src/sysync/engineinterface.cpp
index f8a86e0..6ac79f5 100644
--- a/src/sysync/engineinterface.cpp
+++ b/src/sysync/engineinterface.cpp
@@ -1780,6 +1780,19 @@ TSyError TEngineInterface::UpdateItemAsKey(SessionH aSessionH, KeyH aItemKey, cI
return ds->TunnelUpdateItemAsKey(aItemKey,aID,updID);
} // UpdateItemAsKey
+TSyError TEngineInterface::debugPuts(cAppCharP aFile, int aLine, cAppCharP aFunction,
+ int aDbgLevel, cAppCharP aPrefix,
+ cAppCharP aText)
+{
+ #if defined(SYDEBUG)
+ static_cast<TSyncClientBase *>(getSyncAppBase())->getDbgLogger()->DebugPuts(/* aFile, aLine, aFunction, aPrefix */
+ aDbgLevel, aText);
+ return 0;
+ #else
+ return LOCERR_NOTIMP;
+ #endif
+} // debugPuts
+
#endif // DBAPI_TUNNEL_SUPPORT
diff --git a/src/sysync/engineinterface.h b/src/sysync/engineinterface.h
index a08e842..916b569 100755
--- a/src/sysync/engineinterface.h
+++ b/src/sysync/engineinterface.h
@@ -755,6 +755,10 @@ public:
EMBVIRTUAL TSyError InsertItemAsKey ( SessionH aSessionH, KeyH aItemKey, ItemID aID ) TUNNEL_IMPL;
EMBVIRTUAL TSyError UpdateItemAsKey ( SessionH aSessionH, KeyH aItemKey, cItemID aID, ItemID updID ) TUNNEL_IMPL;
+ EMBVIRTUAL TSyError debugPuts(cAppCharP aFile, int aLine, cAppCharP aFunction,
+ int aDbgLevel, cAppCharP aLinePrefix,
+ cAppCharP aText) TUNNEL_IMPL;
+
/// @}
/// @brief returns the current application base object