External App connection to a GnuCash file

Derek Atkins warlord at MIT.EDU
Wed Aug 29 18:00:13 EDT 2007


Quoting Daniel Espinosa <esodan at gmail.com>:

> 2007/8/29, Josh Sled <jsled at asynchronous.org>:
>> "Daniel Espinosa" <esodan at gmail.com> writes:
>> > I found a macro in /macros/legacy_macros.m4 witch test for sscanf to
>> > support %lld (long long decimal integer) if so defines HAVE_SCANF_LLD.
>> > I think this is supported in recent gcc versions, then I can safetly
>> > define it in configure.in or remove this test in
>> > /lib/libqof/qof/qofutil.h.
>>
>> I'm not 100% sure about the provenance of that code, but I'm pretty sure it
>> should not be removed.

Indeed, it should not be removed.  Although we might want to move it into
a more "internal" header instead of exposing it in the "qof" interface.
But that's a discussion for a different day.

> I found a some macros used in GnuCash's configure.in file, and I'll
> trying to add to my program in order to fix this error, does any know
> how can I do this?

Copy the code from our configure.in into your configure.in.

>> > Well as result of this test program, I'll try to add the missing
>> > functions for GncBook and some documentation trying to keep as simple
>> > as possible the process to load a book and close it.
>>
>> Which functions are missing?
>>
>
> Just wait to finish my program and I'll give you the missing
> funcitions I think could be there to make easy some others to use GC's
> data through the backends (I don't want to talk more about becouse the
> bug #470750 is marked as just a "documentation bug" not a " missing
> feature ")

Keep in mind that there IS no "GNCBook".  GNCBook was migrated to QofBook.
All the functions are qof_book_*.  The old "gnc_book" functions are
deprecated wrappers.

The old documentation you found is, well, old.. And wrong.  It was
probably written before I started working on GnuCash in 1999, and
it certainly has not been kept up to date since at LEAST GnuCash 1.4.
Right now the current developer docs are available at:

  http://cvs.gnucash.org/docs/HEAD/

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list