[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion generic streams

From: Branko Čibej <brane_at_xbc.nu>
Date: 2000-12-13 01:05:36 CET

Greg Hudson wrote:

>> Is it possible to design a decent generic stream system that is very
>> low on bureaucracy?
>
>
> Seems easy to me. What I'm talking about is a very minor tweak on
> what we have now.
>
>> struct read_string *rs;
>
>> rs = NEW (pool, struct read_string);
>> rs->contents = some string;
>> rs->offset = 0;
>
>> *contents_p = read_string_fn;
>> *contents_baton_p = rs;
>
>
> For what I had in mind, the last two lines would be:
>
> *stream = svn_stream_create (rs);
> svn_stream_set_read (*stream, read_string_fn);
>
> and that's the only difference.

+1, if it can be done so simply. Even better, if it can be made
relatively stand-alone, we might be able to push it into APRUTIL. Then
other people can take care of maintenance.

(Those of us with APR commit access, that is . :-) )

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.