httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Carter <apa...@entertain-me.com>
Subject Returning large objects from a user implemented hook
Date Wed, 13 Feb 2008 21:04:04 GMT
Hi,

I'm trying to implement a hook in a module I'm developing that will
allow languages such as PHP to access it. Part of the information I need
to pass back will be in the form of 64 byte data blocks. As I see it,
these are my options:

1. Return the block as the return value. Compiler complains, as it
should.
2. Pass in a pointer to memory that will contain the data. This
segfaults.
3. Allocate memory and return a pointer. Wouldn't this segfault as well?
4. ???

Suggestions?

Not all of life fits in an integer :)

TIA,
Dave



Mime
View raw message