Example #1
0
		static IntPtr GetCancelError ()
		{
			// Subversion destroys the error pool to dispose the error object,
			// so we need to use a non-shared pool.
			IntPtr localpool = newpool (IntPtr.Zero);
			var error = new LibSvnClient.svn_error_t {
				apr_err = LibApr.APR_OS_START_USEERR,
				message = GettextCatalog.GetString ("Operation cancelled."),
				pool = localpool,
			};

			return apr.pcalloc (localpool, error);
		}
Example #2
0
		static IntPtr GetCancelError ()
		{
			LibSvnClient.svn_error_t error = new LibSvnClient.svn_error_t ();
			error.apr_err = LibApr.APR_OS_START_USEERR;
			error.message = "Operation cancelled.";
			
			// Subversion destroys the error pool to dispose the error object,
			// so we need to use a non-shared pool.
			IntPtr localpool = newpool (IntPtr.Zero);
			error.pool = localpool;
			return apr.pcalloc (localpool, error);
		}
Example #3
0
		IntPtr svn_cancel_func_t_impl (IntPtr baton)
		{
			if (updatemonitor == null || !updatemonitor.CancellationToken.IsCancellationRequested)
				return IntPtr.Zero;

			IntPtr localpool = newpool (IntPtr.Zero);
			var err = new LibSvnClient.svn_error_t {
				apr_err = 200015,
				message = GettextCatalog.GetString ("The operation was interrupted"),
				pool = localpool
			};

			return apr.pcalloc (localpool, err);
		}
Example #4
0
		IntPtr svn_cancel_func_t_impl (IntPtr baton)
		{
			if (updatemonitor == null || !updatemonitor.IsCancelRequested)
				return IntPtr.Zero;

			LibSvnClient.svn_error_t err = new LibSvnClient.svn_error_t ();
			err.apr_err = 200015;
			err.message = "The operation was interrupted";

			IntPtr localpool = newpool (IntPtr.Zero);
			err.pool = localpool;
			return apr.pcalloc (localpool, err);
		}