first HBCI action was invoked from C
Christian Stimming
stimming@tuhh.de
Sat, 18 May 2002 02:11:20 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Okay, I added a preliminary bunch of C wrappers for the C++ HBCI library, and
I wrote a tiny simple command line program in C that uses those C wrappers.
(Well, the latter means basically porting 'aqmoney' from C++ to C.)
Tonight I managed to invoke a HBCI communication for the first time. This was
done by "cmoney --command=balance --account=my-account-nr --institute=my-BLZ
- --country=280", where my-account-nr and my-BLZ have to be the ones from the
*last* account mentioned in the configuration file .aqmoney/aqmoney.conf
[1]. Then the same procedure as the one from aqmoney will start: OpenHBCI
will ask me for the passphrase on the terminal input, and then OpenHBCI will
do the HBCI action of asking for the account balance. Nothing fancy, and yet
I'm absolutely impressed that this actually works from C just as is does from
C++.
So the next weeks will be filled with writing more C wrappers, porting more
test code from C++ to C, and preparing the API for using it from within
Gnucash. Still some time to come before GUI stuff shows up in Gnucash, but
it's getting closer every week.
Christian
[1] I still don't know what a good C equivalent of list<HBCIAccount>, i.e.
something like a linked list of HBCIAccount*, would be. In gnucash I would
simply use a GList. But OpenHBCI is totally independent of Glib and/or GTK,
so I can't use a GList as a return type of a C wrapper, since that would be
the only cause for adding Glib/GTK to OpenHBCI dependencies. Anyone a better
idea?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQCVAwUBPOWcLmXAi+BfhivFAQGl3wQAj2ufzigkFlcJyXzxVcY77sl2mVdzVPUN
CoyzwYLh4z+laPyjU8RfLqny+FYANQY7yZRKicUjOFTfBC1S3kv0OT4JmSfUtc6R
uQWYxchxMt+YBV5S4GqJ7+T1EqsXliTKpq5c2jbhQ20SjiKYxQXugsVWgVQ1LWTW
+QVfMWGyRjY=
=rw9y
-----END PGP SIGNATURE-----