[Gnucash-changes] Fix warning about deprecated aqbanking function in aqbanking-1.0.7

Christian Stimming cstim at cvs.gnucash.org
Sat Apr 2 04:25:59 EST 2005


Log Message:
-----------
Fix warning about deprecated aqbanking function in aqbanking-1.0.7

2005-04-02  Christian Stimming  <stimming at tuhh.de>

        * src/import-export/hbci/dialog-hbcitrans.c: Fix warning about
        deprecated aqbanking function in aqbanking-1.0.7

Modified Files:
--------------
    gnucash:
        ChangeLog
    gnucash/src/import-export/hbci:
        dialog-hbcitrans.c

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1900
retrieving revision 1.1901
diff -LChangeLog -LChangeLog -u -r1.1900 -r1.1901
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2005-04-02  Christian Stimming  <stimming at tuhh.de>
+
+	* src/import-export/hbci/dialog-hbcitrans.c: Fix warning about
+	deprecated aqbanking function in aqbanking-1.0.7
+
 2005-03-20  Christian Stimming  <stimming at tuhh.de>
 
 	* src/import-export/hbci/gnc-hbci-utils.c: Retrieve the current
Index: dialog-hbcitrans.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/dialog-hbcitrans.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -Lsrc/import-export/hbci/dialog-hbcitrans.c -Lsrc/import-export/hbci/dialog-hbcitrans.c -u -r1.40 -r1.41
--- src/import-export/hbci/dialog-hbcitrans.c
+++ src/import-export/hbci/dialog-hbcitrans.c
@@ -27,6 +27,7 @@
 #endif
 
 #include <gnome.h>
+#include <aqbanking/version.h>
 #include <aqbanking/account.h>
 #include <aqbanking/jobsingletransfer.h>
 #include <aqbanking/jobsingledebitnote.h>
@@ -440,7 +441,16 @@
       printf("gnc_hbci_trans_dialog_enqueue: Oops, job not available. Aborting.\n");
       return -1;
     }
+#if ((AQBANKING_VERSION_MAJOR > 1) || \
+     ((AQBANKING_VERSION_MAJOR == 1) && \
+      ((AQBANKING_VERSION_MINOR > 0) || \
+       ((AQBANKING_VERSION_MINOR == 0) && \
+        (AQBANKING_VERSION_PATCHLEVEL > 6)))))
+    max_purpose_lines = AB_TransactionLimits_GetMaxLinesPurpose
+      ( AB_JobSingleTransfer_GetFieldLimits(job) );
+#else
     max_purpose_lines = AB_JobSingleTransfer_GetMaxPurposeLines(job);
+#endif
     /* these are the number of fields, 27 characters each. */
     AB_Job_free(job);
   }


More information about the gnucash-changes mailing list