[EMAIL PROTECTED] wrote:
As you have noticed I've changed the API to be just Apache::current_callback, rather than $r->callback since we now have many more callbacks which has nothing to do with $r.stas 2003/02/17 01:03:17Modified: . Changes lib/Apache compat.pm src/modules/perl modperl_callback.c modperl_callback.h modperl_handler.c t/htdocs .cvsignore t/modperl .cvsignore t/response/TestCompat apache.pm todo api.txt xs/ModPerl/Util ModPerl__Util.h xs/maps modperl_functions.map Added: t/response/TestModperl current_callback.pm Log: - implement Apache::current_callback - $r->current_callback goes into Apache::compat, since now we have a way too many callbacks unrelated to $r - add some tests
Though if you have a better idea for the the internal implementation, than:
+#define modperl_callback_current_callback_sv \
+ get_sv("Apache::__CurrentCallback", TRUE)
+
+#define modperl_callback_current_callback_set(desc) \
+ sv_setpv(modperl_callback_current_callback_sv, desc)
+
+#define modperl_callback_current_callback_get() \
+ SvPVX(modperl_callback_current_callback_sv)
+
please speak up. (This one was copied from 1.x, but dropped the notes(), which
has allowed to simplify the API.Finally, I wasn't sure where to put it. So I ended up putting it into ModPerl::Util. I don't think this is very intuitive as the API goes Apache::current_callback. But I didn't know where to put it in Apache:: modules... Ideas are welcome.
Index: ModPerl__Util.h
...
+#define mpxs_Apache_current_callback modperl_callback_current_callback_get
...
Index: modperl_functions.map
...
+PACKAGE=Apache
+ char *:DEFINE_current_callback
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
