From 92e035133bf3a5099d9dedb171b6600215b2ffd2 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 24 Jan 2007 16:54:25 +0000 Subject: [PATCH] Some initial work to provide an easy porting to aqbanking3 once it is stable. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15426 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/import-export/hbci/gnc-hbci-utils.h | 13 +++++++++++++ src/import-export/hbci/hbci-interactionP.h | 1 + 2 files changed, 14 insertions(+) diff --git a/src/import-export/hbci/gnc-hbci-utils.h b/src/import-export/hbci/gnc-hbci-utils.h index 670ae8eaaa..6812e478cf 100644 --- a/src/import-export/hbci/gnc-hbci-utils.h +++ b/src/import-export/hbci/gnc-hbci-utils.h @@ -27,6 +27,19 @@ #include #include #include +#include +#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" diff --git a/src/import-export/hbci/hbci-interactionP.h b/src/import-export/hbci/hbci-interactionP.h index de765f262c..63b509e582 100644 --- a/src/import-export/hbci/hbci-interactionP.h +++ b/src/import-export/hbci/hbci-interactionP.h @@ -26,6 +26,7 @@ #include #include +#include "gnc-hbci-utils.h" typedef enum {