[cffi-devel] usage question
Bruce Butterfield
bruce at open-tek.com
Thu Oct 6 22:14:59 UTC 2005
Due to my pretty rusty C skills I have what I hope is a naive question.
I'm writing a cffi interface to the tidy lib which among other things
has the following construct:
// in include file:
struct _TidyBuffer;
typedef struct _TidyBuffer TidyBuffer;
typedef void* TidyDoc;
// example caller:
TidyBuffer output = {0};
TidyDoc tdoc = tidyCreate();
...
tidySaveBuffer(tdoc, &output)
...
so, tidy allocates some memory from a pointer reference supplied by the
client. How do I declare and pass this reference to the foreign function?
More information about the cffi-devel
mailing list