/[Apache-SVN]
ViewVC logotype

Revision 1561387


Jump to revision: Previous Next
Author: rhuijben
Date: Sat Jan 25 20:16:57 2014 UTC (10 years, 3 months ago)
Changed paths: 12
Log Message:
[Reverted in r1561424, to avoid svn_stream_t limitation]

Following up on r1531610 and related revisions, extend the ra-svn tunnel
creation callback to allow providing Subversion streams instead of only
apr_file_t * handles to allow hooking in third party libraries without
requiring external applications and/or advanced multithread synchronization
in any application that wants to use this.

This should allow things like using libssh2 as in-process ssh client on
Windows, with callbacks for authentication in the primary thread without
patching Subversion.
(It should also allow simplifying the test of the callback in JavaHL,
 which now uses a simplified multithreading implementation)

* subversion/bindings/javahl/native/OperationContext.cpp
* subversion/bindings/javahl/native/OperationContext.h
  (OperationContext::openTunnel): Update callback.

* subversion/include/svn_ra.h
  (svn_ra_open_tunnel_func_t): Update argument type.

* subversion/include/svn_ra_svn.h
  (svn_ra_svn_create_conn4): New function.
  (svn_ra_svn_create_conn3): Deprecate function.

* subversion/libsvn_ra_svn/client.c
  (handle_child_process_error,
   make_tunnel,
   open_session): Update caller.

* subversion/libsvn_ra_svn/deprecated.c
  (SVN_DEPRECATED): Declare here to suppress deprecated warnings.
  (svn_ra_svn_create_conn3): New function.

* subversion/libsvn_ra_svn/marshal.c
  (svn_ra_svn_create_conn3): Rename to ...
  (svn_ra_svn_create_conn4): ... this and update caller. Rename pool.

* subversion/libsvn_ra_svn/ra_svn.h
  (svn_ra_svn__stream_from_streams): New function.

* subversion/libsvn_ra_svn/streams.c
  (includes): Add svn_io_private.h.

* subversion/svnserve/serve.c
  (serve_interruptable): Update caller.

* subversion/svnserve/svnserve.c
  (sub_main): Reduce scope of some variables. Update caller.

* subversion/tests/libsvn_ra/ra-test.c
  (open_tunnel): Update callback.


Changed paths

Path Details
Directorysubversion/trunk/subversion/bindings/javahl/native/OperationContext.cpp modified , text changed
Directorysubversion/trunk/subversion/bindings/javahl/native/OperationContext.h modified , text changed
Directorysubversion/trunk/subversion/include/svn_ra.h modified , text changed
Directorysubversion/trunk/subversion/include/svn_ra_svn.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/client.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/deprecated.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/marshal.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/ra_svn.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_ra_svn/streams.c modified , text changed
Directorysubversion/trunk/subversion/svnserve/serve.c modified , text changed
Directorysubversion/trunk/subversion/svnserve/svnserve.c modified , text changed
Directorysubversion/trunk/subversion/tests/libsvn_ra/ra-test.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26