I wanted to get some feedback on how to add APR::Table support for apreq-2's "polymorphic"
value strings.
The issue is that apreq-2 uses apr_tables, but adds additional metadata to each table value. The current APR::Table glue uses
newSVpv((char *)val, 0)
to convert the char* to an SV*. That's not totally adequate for apreq-2, since it forgets about the metadata stored in front of val.
For apreq-2, what I'd like to have happen
is for a callback to do the type conversion instead of newSVpv. The callback would be
attached to the APR::Table object, so the XS glue for APR::Table would need a patch to use the callback in place of the newSVpv calls.
It looks to me like mg_ptr is NULL for the TIEHASH magic associated to APR::Table
objects. Are there any objections to a patch that uses a callback stored there?
Can anyone recommend a better approach?
Joe, what meta data are you talking about? Is it that new things that you've merged into apr tables? Can you please point me to the source you are talking about?
Also how about using a sub-class of APR::Table which overrides get/set to read/write this meta data? It's probably more maitenance overhead, but will be faster code-wise, no?
__________________________________________________________________ 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]
