[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: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2000-12-12 16:34:43 CET

> 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.
Received on Sat Oct 21 14:36:16 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.