On Tue, Oct 18, 2005 at 12:31:54PM -0700, [EMAIL PROTECTED] wrote:
> I'm trying to implement filesystem extended attributes - getxattr & 
> listxattr - on top of neon
> 
> To do so efficiently, I need to cache ne_prop_result_set data from 
> ne_simple_propfind - for use first by listxattr (ne_propset_iterate) & 
> second by getxattr (ne_propset_value)
> 
> I tried creating an ne_props_result callback which populates a cache, 
> but I guess ne_simple_propfind frees the ne_prop_result_set data when 
> it returns, so subsequent cache access results in segfaults : P
> 
> Copying the ne_prop_result_set data didn't work because 
> ne_prop_result_set is an incomplete type

You could duplicate the contents of a result set using 
ne_propset_iterate and use the output in some custom caching code; but 
other than that, no easy way.

Adding functions to duplicate and manually destroy a result set would be 
possible; patches welcome.

Regards,

joe
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to