Re: How to define callback functions

Edi Weitz <[email protected]> Thu, 12 Feb 2004 12:08:04 +0100
Newsgroups gmane.lisp.uffi.general
Message-ID <[email protected]>
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