📄 svn_fs.c
字号:
arg3 = RTEST(argv[1]); if (argc > 2) { } { result = (svn_error_t *)svn_fs_berkeley_logfiles(arg1,(char const *)arg2,arg3,arg4); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } { vresult = output_helper(vresult, svn_swig_rb_apr_array_to_array_string(*arg1)); } { svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool); svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); } return vresult;}static VALUE_wrap_svn_fs_new(int argc, VALUE *argv, VALUE self) { apr_hash_t *arg1 = (apr_hash_t *) 0 ; apr_pool_t *arg2 = (apr_pool_t *) 0 ; svn_fs_t *result; VALUE _global_svn_swig_rb_pool ; apr_pool_t *_global_pool ; VALUE vresult = Qnil; { svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg2); _global_pool = arg2; svn_swig_rb_push_pool(_global_svn_swig_rb_pool); } if ((argc < 1) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); { arg1 = svn_swig_rb_hash_to_apr_hash_string(argv[0], _global_pool); } if (argc > 1) { } { result = (svn_fs_t *)svn_fs_new(arg1,arg2); } vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_fs_t,0); { svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool); svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); } return vresult;}static VALUE_wrap_svn_fs_create_berkeley(int argc, VALUE *argv, VALUE self) { svn_fs_t *arg1 = (svn_fs_t *) 0 ; char *arg2 = (char *) 0 ; svn_error_t *result; void *temp1 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); { SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_t, 1); arg1 = (svn_fs_t *)temp1; } arg2 = StringValuePtr(argv[1]); { result = (svn_error_t *)svn_fs_create_berkeley(arg1,(char const *)arg2); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } return vresult;}static VALUE_wrap_svn_fs_open_berkeley(int argc, VALUE *argv, VALUE self) { svn_fs_t *arg1 = (svn_fs_t *) 0 ; char *arg2 = (char *) 0 ; svn_error_t *result; void *temp1 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); { SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_t, 1); arg1 = (svn_fs_t *)temp1; } arg2 = StringValuePtr(argv[1]); { result = (svn_error_t *)svn_fs_open_berkeley(arg1,(char const *)arg2); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } return vresult;}static VALUE_wrap_svn_fs_berkeley_path(int argc, VALUE *argv, VALUE self) { svn_fs_t *arg1 = (svn_fs_t *) 0 ; apr_pool_t *arg2 = (apr_pool_t *) 0 ; char *result; VALUE _global_svn_swig_rb_pool ; apr_pool_t *_global_pool ; void *temp1 ; VALUE vresult = Qnil; { svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg2); _global_pool = arg2; svn_swig_rb_push_pool(_global_svn_swig_rb_pool); } if ((argc < 1) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); { SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_t, 1); arg1 = (svn_fs_t *)temp1; } if (argc > 1) { } { result = (char *)svn_fs_berkeley_path(arg1,arg2); } { if (result) { vresult = rb_str_new2(result); } else { vresult = Qnil; } } { svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool); svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); } return vresult;}static VALUE_wrap_svn_fs_delete_berkeley(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; apr_pool_t *arg2 = (apr_pool_t *) 0 ; svn_error_t *result; VALUE _global_svn_swig_rb_pool ; apr_pool_t *_global_pool ; VALUE vresult = Qnil; { svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg2); _global_pool = arg2; svn_swig_rb_push_pool(_global_svn_swig_rb_pool); } if ((argc < 1) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); arg1 = StringValuePtr(argv[0]); if (argc > 1) { } { result = (svn_error_t *)svn_fs_delete_berkeley((char const *)arg1,arg2); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } { svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool); svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); } return vresult;}static VALUE_wrap_svn_fs_hotcopy_berkeley(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; svn_boolean_t arg3 ; apr_pool_t *arg4 = (apr_pool_t *) 0 ; svn_error_t *result; VALUE _global_svn_swig_rb_pool ; apr_pool_t *_global_pool ; VALUE vresult = Qnil; { svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4); _global_pool = arg4; svn_swig_rb_push_pool(_global_svn_swig_rb_pool); } if ((argc < 3) || (argc > 4)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); arg1 = StringValuePtr(argv[0]); arg2 = StringValuePtr(argv[1]); arg3 = RTEST(argv[2]); if (argc > 3) { } { result = (svn_error_t *)svn_fs_hotcopy_berkeley((char const *)arg1,(char const *)arg2,arg3,arg4); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } { svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool); svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); } return vresult;}static VALUE_wrap_svn_fs_create_access(int argc, VALUE *argv, VALUE self) { svn_fs_access_t **arg1 = (svn_fs_access_t **) 0 ; char *arg2 = (char *) 0 ; apr_pool_t *arg3 = (apr_pool_t *) 0 ; svn_error_t *result; VALUE _global_svn_swig_rb_pool ; apr_pool_t *_global_pool ; svn_fs_access_t *temp1 ; VALUE vresult = Qnil; { svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg3); _global_pool = arg3; svn_swig_rb_push_pool(_global_svn_swig_rb_pool); } { temp1 = NULL; arg1 = (svn_fs_access_t **)&temp1; } if ((argc < 1) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); arg2 = StringValuePtr(argv[0]); if (argc > 1) { } { result = (svn_error_t *)svn_fs_create_access(arg1,(char const *)arg2,arg3); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } { vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_fs_access_t, 0)); } { svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool); svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); } return vresult;}static VALUE_wrap_svn_fs_set_access(int argc, VALUE *argv, VALUE self) { svn_fs_t *arg1 = (svn_fs_t *) 0 ; svn_fs_access_t *arg2 = (svn_fs_access_t *) 0 ; svn_error_t *result; void *temp1 ; void *temp2 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); { SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_t, 1); arg1 = (svn_fs_t *)temp1; } { SWIG_ConvertPtr(argv[1], &temp2, SWIGTYPE_p_svn_fs_access_t, 1); arg2 = (svn_fs_access_t *)temp2; } { result = (svn_error_t *)svn_fs_set_access(arg1,arg2); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } return vresult;}static VALUE_wrap_svn_fs_get_access(int argc, VALUE *argv, VALUE self) { svn_fs_access_t **arg1 = (svn_fs_access_t **) 0 ; svn_fs_t *arg2 = (svn_fs_t *) 0 ; svn_error_t *result; svn_fs_access_t *temp1 ; void *temp2 ; VALUE vresult = Qnil; { temp1 = NULL; arg1 = (svn_fs_access_t **)&temp1; } if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); { SWIG_ConvertPtr(argv[0], &temp2, SWIGTYPE_p_svn_fs_t, 1); arg2 = (svn_fs_t *)temp2; } { result = (svn_error_t *)svn_fs_get_access(arg1,arg2); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } { vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_fs_access_t, 0)); } return vresult;}static VALUE_wrap_svn_fs_access_get_username(int argc, VALUE *argv, VALUE self) { char **arg1 = (char **) 0 ; svn_fs_access_t *arg2 = (svn_fs_access_t *) 0 ; svn_error_t *result; char const *temp1 = NULL ; void *temp2 ; VALUE vresult = Qnil; arg1 = (char **)&temp1; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); { SWIG_ConvertPtr(argv[0], &temp2, SWIGTYPE_p_svn_fs_access_t, 1); arg2 = (svn_fs_access_t *)temp2; } { result = (svn_error_t *)svn_fs_access_get_username((char const **)arg1,arg2); } { if (result) { svn_swig_rb_pop_pool(_global_svn_swig_rb_pool); svn_swig_rb_handle_svn_error(result); } vresult = Qnil; } { if (*arg1) { vresult = output_helper(vresult, rb_str_new2(*arg1)); } else { vresult = output_helper(vresult, Qnil); } } return vresult;}static VALUE_wrap_svn_fs_access_add_lock_token(int argc, VALUE *argv, VALUE self) { svn_fs_access_t *arg1 = (svn_fs_access_t *) 0 ; char *arg2 = (char *) 0 ; svn_error_t *result; void *temp1 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); { SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_access_t, 1); arg1 = (svn_fs_access_t *)temp1; } { if (NIL_P(argv[1])) { arg2 = NULL; } else { arg2 = StringValuePtr(argv[1]); } } { result = (svn_error_t *)svn_fs_access_add_lock_token(arg1,(char const *)arg2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -