r15426 - gnucash/trunk/src/import-export/hbci - Some initial work to provide an easy porting to aqbanking3 once it is stable.

Christian Stimming cstim at cvs.gnucash.org
Wed Jan 24 11:54:27 EST 2007


Author: cstim
Date: 2007-01-24 11:54:25 -0500 (Wed, 24 Jan 2007)
New Revision: 15426
Trac: http://svn.gnucash.org/trac/changeset/15426

Modified:
   gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.h
   gnucash/trunk/src/import-export/hbci/hbci-interactionP.h
Log:
Some initial work to provide an easy porting to aqbanking3 once it is stable.

Modified: gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.h
===================================================================
--- gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.h	2007-01-23 21:12:07 UTC (rev 15425)
+++ gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.h	2007-01-24 16:54:25 UTC (rev 15426)
@@ -27,6 +27,19 @@
 #include <aqbanking/banking.h>
 #include <aqbanking/transaction.h>
 #include <aqbanking/account.h>
+#include <aqbanking/version.h>
+#if AQBANKING_VERSION_MAJOR > 2
+# define AB_Value_GetValue AB_Value_GetValueAsDouble
+# define GWEN_TYPE_UINT32 uint32_t
+# define GWEN_LoggerLevelError GWEN_LoggerLevel_Error
+# define GWEN_LoggerLevelWarning  GWEN_LoggerLevel_Warning
+# define GWEN_LoggerLevelNotice  GWEN_LoggerLevel_Notice
+# define GWEN_LoggerLevelInfo  GWEN_LoggerLevel_Info
+# define GWEN_LoggerLevelDebug  GWEN_LoggerLevel_Debug
+# define AB_Banking_LogLevelVerbous GWEN_LoggerLevel_Verbous
+# define AB_Banking_LogLevelNotice GWEN_LoggerLevel_Notice
+# define AB_BANKING_LOGLEVEL GWEN_LOGGER_LEVEL
+#endif
 
 #include "gnc-ui.h"
 #include "Account.h"

Modified: gnucash/trunk/src/import-export/hbci/hbci-interactionP.h
===================================================================
--- gnucash/trunk/src/import-export/hbci/hbci-interactionP.h	2007-01-23 21:12:07 UTC (rev 15425)
+++ gnucash/trunk/src/import-export/hbci/hbci-interactionP.h	2007-01-24 16:54:25 UTC (rev 15426)
@@ -26,6 +26,7 @@
 
 #include <aqbanking/banking.h>
 #include <iconv.h>
+#include "gnc-hbci-utils.h"
 
 
 typedef enum {



More information about the gnucash-changes mailing list