Re: [racket] ffi/unsafe examples

2011-02-07 Thread Ben Dean
Thanks- That looks like it was just the ticket, and the answer to a lot of the other questions I had piling up. On Mon, Feb 7, 2011 at 2:03 PM, Jay McCarthy wrote: > The ffi has a directory of examples: > > https://github.com/plt/racket/tree/master/collects/ffi/examples > > and there are many on

Re: [racket] ffi/unsafe examples

2011-02-07 Thread Sam Phillips
On Mon, Feb 7, 2011 at 10:51 AM, Ben Dean wrote: > I'm not clear, however, on what the particular object files I'm looking up > with ffi-lib. I also am unclear about the convention for the function-name > parameter to get-ffi-obj. Is it as simple as a string of the the name that > the C api is exp

Re: [racket] ffi/unsafe examples

2011-02-07 Thread Jay McCarthy
The ffi has a directory of examples: https://github.com/plt/racket/tree/master/collects/ffi/examples and there are many on PLaneT Jay 2011/2/7 Ben Dean : > I'm looking to put some Racket wrappers around bits of the OpenCV C api, but > I'm having a hard getting started. I've looked through the f

[racket] ffi/unsafe examples

2011-02-07 Thread Ben Dean
I'm looking to put some Racket wrappers around bits of the OpenCV C api, but I'm having a hard getting started. I've looked through the ffi/unsafe documentation several times, but something isn't clicking-- I think I need to peer at some examples. If anyone has a good example or two of calling C co