Hey,
I am writing a Perl interface to an existing C API. I
would like to do something like this in a Perl
handler:
# Handler
sub handler {
my $r = shift;
.
.
my $rv = my_func($r, $some_other_args);
.
.
}
where the corresponding C function looks like:
int my_func(request_rec *r, char *args) {
int n;
.
.
return n
}
The question is: How do I access request_rec * out of
an Apache::Request object($r) in XS/typemap/whatever??
Thanks a lot!
P.S: I'm new to writing Perl extensions in XS..
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/