On Sun, Jan 07, 2001, Robert Collins wrote:
> Whatabout turning it into a callback?
>
> StoreGetPublic (carryonfn,data,params)
> return
>
> carryonfn(data,resultstruct *){
> ...
> }
That is what storeLookup() is. It takes a uri, method,
callback and callback_data. When the operation completes,
the callback is called with the callback_data and the
StoreEntry representing a found object (or NULL for
a miss).
I want to get rid of storeGet() / storeGetPublic() altogether.
It should work just dandy for things such as reiserfs_raw.
As noted by Alex this is going to break ICP and cache
digests for now, but I plan on reintroducing the cache digests
as an integral part of the storage mechanism rather than
an addon which is how it is implemented today.
Adrian
-- Adrian Chadd "Here's five for the cake, and <adrian@creative.net.au> five to buy a clue." - Ryan, Whatever it TakesReceived on Sat Jan 06 2001 - 16:18:17 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:11 MST