freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Steve Langasek <vorlon AT netexpress.net>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: Some API change
- Date: Fri, 16 Aug 2002 12:23:40 -0500
On Fri, Aug 16, 2002 at 09:11:00AM +0200, Frediano Ziglio wrote:
> I'd like to change some API declaration
> 2- use correct pointer type in msg handlers
> int (*msg_handler)(TDSCONTEXT*, TDSSOCKET*, TDSMSGINFO*);
> instead of
> int (*msg_handler)(void*, void*, void*);
> This remove the need to cast at every message handling function
> Note also that this function prototype had been changed from last
> release
Normally, this is an advantage because it allows your callback function
to treat the arguments opaquely, so you don't have to include the
library's headers. Is this not useful here? (If you're doing lots of
casting in your message handlers, I suppose not.)
Steve Langasek
postmodern programmer
Attachment:
pgpXDkO2ZrHeX.pgp
Description: PGP signature
-
Some API change,
Frediano Ziglio, 08/16/2002
- <Possible follow-up(s)>
- Re: Some API change, Steve Langasek, 08/16/2002
- Re: Some API change, Mark J. Lilback, 08/16/2002
- Re: Some API change, Steve Langasek, 08/16/2002
- Re: Some API change, Brian Bruns, 08/16/2002
Archive powered by MHonArc 2.6.24.