summaryrefslogtreecommitdiff
path: root/subversion/bindings/swig/ruby/svn_ra.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/bindings/swig/ruby/svn_ra.c')
-rw-r--r--subversion/bindings/swig/ruby/svn_ra.c124
1 files changed, 122 insertions, 2 deletions
diff --git a/subversion/bindings/swig/ruby/svn_ra.c b/subversion/bindings/swig/ruby/svn_ra.c
index 41349ab..81bccf1 100644
--- a/subversion/bindings/swig/ruby/svn_ra.c
+++ b/subversion/bindings/swig/ruby/svn_ra.c
@@ -2099,7 +2099,7 @@ SWIG_ruby_failed(void)
}
-/*@SWIG:/opt/svnrm/prefix/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/tmp/svn-rel/prefix/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
{
VALUE obj = args[0];
@@ -2144,7 +2144,7 @@ SWIG_AsVal_int (VALUE obj, int *val)
}
-/*@SWIG:/opt/svnrm/prefix/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/tmp/svn-rel/prefix/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
{
VALUE obj = args[0];
@@ -4639,6 +4639,125 @@ fail:
SWIGINTERN VALUE
+_wrap_svn_ra_open5(int argc, VALUE *argv, VALUE self) {
+ svn_ra_session_t **arg1 = (svn_ra_session_t **) 0 ;
+ char **arg2 = (char **) 0 ;
+ char **arg3 = (char **) 0 ;
+ char *arg4 = (char *) 0 ;
+ char *arg5 = (char *) 0 ;
+ svn_ra_callbacks2_t *arg6 = (svn_ra_callbacks2_t *) 0 ;
+ void *arg7 = (void *) 0 ;
+ apr_hash_t *arg8 = (apr_hash_t *) 0 ;
+ apr_pool_t *arg9 = (apr_pool_t *) 0 ;
+ VALUE _global_svn_swig_rb_pool ;
+ apr_pool_t *_global_pool ;
+ svn_ra_session_t *temp1 ;
+ char *temp2 ;
+ char *temp3 ;
+ int res4 ;
+ char *buf4 = 0 ;
+ int alloc4 = 0 ;
+ int res5 ;
+ char *buf5 = 0 ;
+ int alloc5 = 0 ;
+ svn_error_t *result = 0 ;
+ VALUE vresult = Qnil;
+
+ {
+ svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg9);
+ _global_pool = arg9;
+ svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
+ }
+ arg1 = &temp1;
+ arg2 = &temp2;
+ arg3 = &temp3;
+ if ((argc < 4) || (argc > 5)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
+ }
+ res4 = SWIG_AsCharPtrAndSize(argv[0], &buf4, NULL, &alloc4);
+ if (!SWIG_IsOK(res4)) {
+ SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","svn_ra_open5", 4, argv[0] ));
+ }
+ arg4 = (char *)(buf4);
+ res5 = SWIG_AsCharPtrAndSize(argv[1], &buf5, NULL, &alloc5);
+ if (!SWIG_IsOK(res5)) {
+ SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","svn_ra_open5", 5, argv[1] ));
+ }
+ arg5 = (char *)(buf5);
+ {
+ svn_swig_rb_setup_ra_callbacks(&arg6, &arg7, argv[2], _global_pool);
+ }
+ {
+ if (NIL_P(argv[3])) {
+ arg8 = NULL;
+ } else {
+ arg8 = svn_swig_rb_hash_to_apr_hash_swig_type(argv[3], "svn_config_t *", _global_pool);
+ }
+ }
+ if (argc > 4) {
+
+ }
+ {
+ if (!arg6) {
+ SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
+ }
+ }
+ {
+ result = (svn_error_t *)svn_ra_open5(arg1,(char const **)arg2,(char const **)arg3,(char const *)arg4,(char const *)arg5,(struct svn_ra_callbacks2_t const *)arg6,arg7,arg8,arg9);
+
+
+
+ }
+ {
+ if (result) {
+ svn_swig_rb_destroy_pool(_global_svn_swig_rb_pool);
+ svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
+ svn_swig_rb_handle_svn_error(result);
+ }
+ vresult = Qnil;
+ }
+ {
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_ra_session_t, 0));
+ }
+ {
+ if (*arg2) {
+ vresult = SWIG_Ruby_AppendOutput(vresult, rb_str_new2(*arg2));
+ } else {
+ vresult = SWIG_Ruby_AppendOutput(vresult, Qnil);
+ }
+ }
+ {
+ if (*arg3) {
+ vresult = SWIG_Ruby_AppendOutput(vresult, rb_str_new2(*arg3));
+ } else {
+ vresult = SWIG_Ruby_AppendOutput(vresult, Qnil);
+ }
+ }
+ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+ if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
+ {
+ VALUE target;
+ target = _global_vresult_address == &vresult ? self : vresult;
+ if (!svn_swig_rb_set_pool(target, _global_svn_swig_rb_pool))
+ svn_swig_rb_destroy_pool(_global_svn_swig_rb_pool);
+ svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
+ }
+ return vresult;
+fail:
+ if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
+ if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
+ {
+ VALUE target;
+ target = _global_vresult_address == &vresult ? self : vresult;
+ if (!svn_swig_rb_set_pool(target, _global_svn_swig_rb_pool))
+ svn_swig_rb_destroy_pool(_global_svn_swig_rb_pool);
+ svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
+ }
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_svn_ra_open4(int argc, VALUE *argv, VALUE self) {
svn_ra_session_t **arg1 = (svn_ra_session_t **) 0 ;
char **arg2 = (char **) 0 ;
@@ -17146,6 +17265,7 @@ SWIGEXPORT void Init_ra(void) {
SwigClassSvn_ra_callbacks_t.trackObjects = 0;
rb_define_module_function(mRa, "svn_ra_initialize", _wrap_svn_ra_initialize, -1);
rb_define_module_function(mRa, "svn_ra_create_callbacks", _wrap_svn_ra_create_callbacks, -1);
+ rb_define_module_function(mRa, "svn_ra_open5", _wrap_svn_ra_open5, -1);
rb_define_module_function(mRa, "svn_ra_open4", _wrap_svn_ra_open4, -1);
rb_define_module_function(mRa, "svn_ra_open3", _wrap_svn_ra_open3, -1);
rb_define_module_function(mRa, "svn_ra_open2", _wrap_svn_ra_open2, -1);