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

Re: Question about editors und batons

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-07-19 18:41:59 CEST

Alexander Mueller <alex@littleblue.de> writes:

> Hi!
>
> Still working on several tests with the java library. Right now I am
> figuring out, how to route the editor calls (like with
> svn_client_update) back to the Java object instance, that call the
> function. Therefore I need some extra data to get hold of the
> context.
>
> With Windows when sending a message you can add extra parameters (I
> think they are named lParam, wParam). The receiving callback can use
> them to retrieve the context.
>
> How can I do this here?

Editors always come with their own context objects... we call them
`batons' throughout the subversion codebase, and they're always passed
around as (void *). Go ahead and define your own context struct and
pass it with the editor.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:33 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.