Re: You have help here

Benoit Grégoire <[email protected]>
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
On Tuesday 12 August 2003 09:41, Chris Roland wrote:
> No, but there is no time like the present.  It seems that this is one of
> the major items to be accomplished and a lot of the other items are
> dependant on this.  Once I get up to speed on the inner workings of libOFX,
> I can start working on the callback registration system with you.  Do you
> have any docs or sites that describe how you want the callback registration
> to work (examples, concepts, etc.)?
>
> I look forward to working on this project, plus data is fun :).

Oddly enough, on the web I could never find a tutorial or a ready-made 
framework for a C style callback interface.  There is one for C++, but it's 
not C style at all, and we want to keep the external interface C style as 
just about every language in existence has C bindings.

As for examples, you can look at just about any GUI toolkit.  They all have 
one or more callback system.

Basically, say you are the client and when the ofx file is completely 
processed you want the function 
void processing_complete(void * user_data) to be called.  User data is a 
pointer to data managed by the client that the function needs. 

You need to be able to call something like this in libofx:
register_processing_complete_callback(processing_complete, &actual_user_data);

the library will store it in the context, and call the client function when 
needed.
-- 
Benoit Grégoire
http://step.polymtl.ca/~bock/



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.