Re: How to define callback functions

Andreas Hinze <[email protected]> Thu, 12 Feb 2004 12:44:01 +0100
Newsgroups gmane.lisp.uffi.general
Message-ID <[email protected]>
Hi Edi,
thanks for the info.
Is there a special reason for this or is it simple not implemented ?
I know LispWorks can do it and IIRC CMUCL, too. I would assume that
it is doable for all CL's that UFFI adresses. Is this right ?

Regards
AHz

 >-----Original Message-----
 >From: Edi Weitz [mailto:[email protected]]
 >Sent: Thursday, February 12, 2004 12:08 PM
 >To: Andreas Hinze
 >Cc: [email protected]
 >Subject: Re: [UFFI-Users] How to define callback functions
 >
 >
 >On Thu, 12 Feb 2004 11:55:26 +0100, Andreas Hinze <[email protected]> wrote:
 >
 >> (i'm new to UFFI so if this is a FAQ please apologize- I didn't find
 >> this information in the list archive or in the documentation)
 >>
 >> I want to make an interface to a library (expat) that wants function
 >> pointers as parameter (that are later called on specific events by
 >> the library), i.e.:
 >>
 >> typedef void (XMLCALL *XML_EndElementHandler)(void
 >*userData, const XML_Char *name);
 >>
 >> void XMLCALL XML_SetEndElementHandler(XML_Parser p,
 >XML_EndElementHandler);
 >>
 >> Obviously i want the XML_EndElementHandler() to be a LISP function.
 >>
 >> How can i do this ?
 >
 >UFFI currently can't do this. You have to use implementation-specific
 >features.
 >
 >Edi