[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: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-12-12 20:40:43 CET

Greg Stein <gstein@lyra.org> writes:
> Even easier:
>
> *stream = svn_stream_create(pool, rs, read_string_fn, NULL /* write */,
> NULL /* seek */);
>
> One simple entry point which takes the appropriate functions and the baton.
>
> [...]

+1 (C + a crowbar == an object-oriented language).

Go for it. Ben and I are still AWOL on this other (non-Subversion
work), as mentioned in previous mail. We should be done by the end of
this week.

-K
 
> It would also be simple to have utility functions:
>
> svn_stream_create_ro(pool, rs, read_string_fn);
> svn_stream_create_wo(pool, rs, write_string_fn);
>
> (seekable or read/write streams would use the full create() function; or we
> could create _ros(...) and _wos(...) for seekable forms)
>
> Note that it remains quite easy for the creator of the stream. The user of
> the stream would no longer call the read/write functions directly, but would
> go through svn_stream_read() type functions.
>
> Cheers,
> -g
>
> --
> Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:17 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.