Alien-SVN

 view release on metacpan or  search on metacpan

src/subversion/subversion/bindings/swig/ruby/svn_repos.c  view on Meta::CPAN

  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  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_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_svn_repos_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "svn_repos_t *","svn_repos_post_unlock_hook", 1, argv[0] )); 
  }
  arg1 = (svn_repos_t *)(argp1);
  if (argc > 1) {
    
  }
  {
    if (!arg1) {
      svn_swig_rb_raise_svn_repos_already_close();
    }
  }
  {
    result = (char *)svn_repos_post_unlock_hook(arg1,arg2);
    
    
    
  }
  {
    if (result) {
      vresult = rb_str_new2(result);
    } else {
      vresult = Qnil;
    }
  }
  {
    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:
  {
    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_repos_hooks_setenv(int argc, VALUE *argv, VALUE self) {
  svn_repos_t *arg1 = (svn_repos_t *) 0 ;
  char *arg2 = (char *) 0 ;
  apr_pool_t *arg3 = (apr_pool_t *) 0 ;
  VALUE _global_svn_swig_rb_pool ;
  apr_pool_t *_global_pool ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  svn_error_t *result = 0 ;
  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);
  }
  if ((argc < 2) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_svn_repos_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "svn_repos_t *","svn_repos_hooks_setenv", 1, argv[0] )); 
  }
  arg1 = (svn_repos_t *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","svn_repos_hooks_setenv", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  if (argc > 2) {
    
  }
  {
    if (!arg1) {
      svn_swig_rb_raise_svn_repos_already_close();
    }
  }
  {
    result = (svn_error_t *)svn_repos_hooks_setenv(arg1,(char const *)arg2,arg3);
    
    
    
  }
  {
    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;
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  {
    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 (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  {
    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_repos_begin_report3(int argc, VALUE *argv, VALUE self) {
  void **arg1 = (void **) 0 ;
  svn_revnum_t arg2 ;
  svn_repos_t *arg3 = (svn_repos_t *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  svn_boolean_t arg7 ;
  svn_depth_t arg8 ;
  svn_boolean_t arg9 ;
  svn_boolean_t arg10 ;
  svn_delta_editor_t *arg11 = (svn_delta_editor_t *) 0 ;
  void *arg12 = (void *) 0 ;
  svn_repos_authz_func_t arg13 = (svn_repos_authz_func_t) 0 ;
  void *arg14 = (void *) 0 ;
  apr_size_t arg15 ;
  apr_pool_t *arg16 = (apr_pool_t *) 0 ;
  VALUE _global_svn_swig_rb_pool ;
  apr_pool_t *_global_pool ;
  void *temp1 ;
  long val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 ;

src/subversion/subversion/bindings/swig/ruby/svn_repos.c  view on Meta::CPAN

  SwigClassSvn_repos_notify_t.klass = rb_define_class_under(mRepos, "Svn_repos_notify_t", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_svn_repos_notify_t, (void *) &SwigClassSvn_repos_notify_t);
  rb_undef_alloc_func(SwigClassSvn_repos_notify_t.klass);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "action=", _wrap_svn_repos_notify_t_action_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "action", _wrap_svn_repos_notify_t_action_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "revision=", _wrap_svn_repos_notify_t_revision_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "revision", _wrap_svn_repos_notify_t_revision_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "warning_str=", _wrap_svn_repos_notify_t_warning_str_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "warning_str", _wrap_svn_repos_notify_t_warning_str_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "warning=", _wrap_svn_repos_notify_t_warning_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "warning", _wrap_svn_repos_notify_t_warning_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "shard=", _wrap_svn_repos_notify_t_shard_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "shard", _wrap_svn_repos_notify_t_shard_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "new_revision=", _wrap_svn_repos_notify_t_new_revision_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "new_revision", _wrap_svn_repos_notify_t_new_revision_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "old_revision=", _wrap_svn_repos_notify_t_old_revision_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "old_revision", _wrap_svn_repos_notify_t_old_revision_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "node_action=", _wrap_svn_repos_notify_t_node_action_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "node_action", _wrap_svn_repos_notify_t_node_action_get, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "path=", _wrap_svn_repos_notify_t_path_set, -1);
  rb_define_method(SwigClassSvn_repos_notify_t.klass, "path", _wrap_svn_repos_notify_t_path_get, -1);
  SwigClassSvn_repos_notify_t.mark = 0;
  SwigClassSvn_repos_notify_t.trackObjects = 0;
  rb_define_module_function(mRepos, "svn_repos_notify_create", _wrap_svn_repos_notify_create, -1);
  rb_define_module_function(mRepos, "svn_repos_find_root_path", _wrap_svn_repos_find_root_path, -1);
  rb_define_module_function(mRepos, "svn_repos_open2", _wrap_svn_repos_open2, -1);
  rb_define_module_function(mRepos, "svn_repos_open", _wrap_svn_repos_open, -1);
  rb_define_module_function(mRepos, "svn_repos_create", _wrap_svn_repos_create, -1);
  rb_define_module_function(mRepos, "svn_repos_upgrade2", _wrap_svn_repos_upgrade2, -1);
  rb_define_module_function(mRepos, "svn_repos_upgrade", _wrap_svn_repos_upgrade, -1);
  rb_define_module_function(mRepos, "svn_repos_delete", _wrap_svn_repos_delete, -1);
  rb_define_module_function(mRepos, "svn_repos_has_capability", _wrap_svn_repos_has_capability, -1);
  rb_define_const(mRepos, "SVN_REPOS_CAPABILITY_MERGEINFO", SWIG_FromCharPtr("mergeinfo"));
  rb_define_module_function(mRepos, "svn_repos_hotcopy2", _wrap_svn_repos_hotcopy2, -1);
  rb_define_module_function(mRepos, "svn_repos_hotcopy", _wrap_svn_repos_hotcopy, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_pack2", _wrap_svn_repos_fs_pack2, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_pack", _wrap_svn_repos_fs_pack, -1);
  rb_define_module_function(mRepos, "svn_repos_recover4", _wrap_svn_repos_recover4, -1);
  rb_define_module_function(mRepos, "svn_repos_recover3", _wrap_svn_repos_recover3, -1);
  rb_define_module_function(mRepos, "svn_repos_recover2", _wrap_svn_repos_recover2, -1);
  rb_define_module_function(mRepos, "svn_repos_recover", _wrap_svn_repos_recover, -1);
  rb_define_module_function(mRepos, "svn_repos_freeze", _wrap_svn_repos_freeze, -1);
  rb_define_module_function(mRepos, "svn_repos_db_logfiles", _wrap_svn_repos_db_logfiles, -1);
  rb_define_module_function(mRepos, "svn_repos_path", _wrap_svn_repos_path, -1);
  rb_define_module_function(mRepos, "svn_repos_db_env", _wrap_svn_repos_db_env, -1);
  rb_define_module_function(mRepos, "svn_repos_conf_dir", _wrap_svn_repos_conf_dir, -1);
  rb_define_module_function(mRepos, "svn_repos_svnserve_conf", _wrap_svn_repos_svnserve_conf, -1);
  rb_define_module_function(mRepos, "svn_repos_lock_dir", _wrap_svn_repos_lock_dir, -1);
  rb_define_module_function(mRepos, "svn_repos_db_lockfile", _wrap_svn_repos_db_lockfile, -1);
  rb_define_module_function(mRepos, "svn_repos_db_logs_lockfile", _wrap_svn_repos_db_logs_lockfile, -1);
  rb_define_module_function(mRepos, "svn_repos_hook_dir", _wrap_svn_repos_hook_dir, -1);
  rb_define_module_function(mRepos, "svn_repos_start_commit_hook", _wrap_svn_repos_start_commit_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_pre_commit_hook", _wrap_svn_repos_pre_commit_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_post_commit_hook", _wrap_svn_repos_post_commit_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_pre_revprop_change_hook", _wrap_svn_repos_pre_revprop_change_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_post_revprop_change_hook", _wrap_svn_repos_post_revprop_change_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_pre_lock_hook", _wrap_svn_repos_pre_lock_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_post_lock_hook", _wrap_svn_repos_post_lock_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_pre_unlock_hook", _wrap_svn_repos_pre_unlock_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_post_unlock_hook", _wrap_svn_repos_post_unlock_hook, -1);
  rb_define_module_function(mRepos, "svn_repos_hooks_setenv", _wrap_svn_repos_hooks_setenv, -1);
  rb_define_module_function(mRepos, "svn_repos_begin_report3", _wrap_svn_repos_begin_report3, -1);
  rb_define_module_function(mRepos, "svn_repos_begin_report2", _wrap_svn_repos_begin_report2, -1);
  rb_define_module_function(mRepos, "svn_repos_begin_report", _wrap_svn_repos_begin_report, -1);
  rb_define_module_function(mRepos, "svn_repos_set_path3", _wrap_svn_repos_set_path3, -1);
  rb_define_module_function(mRepos, "svn_repos_set_path2", _wrap_svn_repos_set_path2, -1);
  rb_define_module_function(mRepos, "svn_repos_set_path", _wrap_svn_repos_set_path, -1);
  rb_define_module_function(mRepos, "svn_repos_link_path3", _wrap_svn_repos_link_path3, -1);
  rb_define_module_function(mRepos, "svn_repos_link_path2", _wrap_svn_repos_link_path2, -1);
  rb_define_module_function(mRepos, "svn_repos_link_path", _wrap_svn_repos_link_path, -1);
  rb_define_module_function(mRepos, "svn_repos_delete_path", _wrap_svn_repos_delete_path, -1);
  rb_define_module_function(mRepos, "svn_repos_finish_report", _wrap_svn_repos_finish_report, -1);
  rb_define_module_function(mRepos, "svn_repos_abort_report", _wrap_svn_repos_abort_report, -1);
  rb_define_module_function(mRepos, "svn_repos_dir_delta2", _wrap_svn_repos_dir_delta2, -1);
  rb_define_module_function(mRepos, "svn_repos_dir_delta", _wrap_svn_repos_dir_delta, -1);
  rb_define_module_function(mRepos, "svn_repos_replay2", _wrap_svn_repos_replay2, -1);
  rb_define_module_function(mRepos, "svn_repos_replay", _wrap_svn_repos_replay, -1);
  rb_define_module_function(mRepos, "svn_repos_get_commit_editor5", _wrap_svn_repos_get_commit_editor5, -1);
  rb_define_module_function(mRepos, "svn_repos_get_commit_editor4", _wrap_svn_repos_get_commit_editor4, -1);
  rb_define_module_function(mRepos, "svn_repos_get_commit_editor3", _wrap_svn_repos_get_commit_editor3, -1);
  rb_define_module_function(mRepos, "svn_repos_get_commit_editor2", _wrap_svn_repos_get_commit_editor2, -1);
  rb_define_module_function(mRepos, "svn_repos_get_commit_editor", _wrap_svn_repos_get_commit_editor, -1);
  rb_define_module_function(mRepos, "svn_repos_dated_revision", _wrap_svn_repos_dated_revision, -1);
  rb_define_module_function(mRepos, "svn_repos_get_committed_info", _wrap_svn_repos_get_committed_info, -1);
  rb_define_module_function(mRepos, "svn_repos_stat", _wrap_svn_repos_stat, -1);
  rb_define_module_function(mRepos, "svn_repos_deleted_rev", _wrap_svn_repos_deleted_rev, -1);
  rb_define_module_function(mRepos, "svn_repos_history2", _wrap_svn_repos_history2, -1);
  rb_define_module_function(mRepos, "svn_repos_history", _wrap_svn_repos_history, -1);
  rb_define_module_function(mRepos, "svn_repos_trace_node_locations", _wrap_svn_repos_trace_node_locations, -1);
  rb_define_module_function(mRepos, "svn_repos_node_location_segments", _wrap_svn_repos_node_location_segments, -1);
  rb_define_module_function(mRepos, "svn_repos_get_logs4", _wrap_svn_repos_get_logs4, -1);
  rb_define_module_function(mRepos, "svn_repos_get_logs3", _wrap_svn_repos_get_logs3, -1);
  rb_define_module_function(mRepos, "svn_repos_get_logs2", _wrap_svn_repos_get_logs2, -1);
  rb_define_module_function(mRepos, "svn_repos_get_logs", _wrap_svn_repos_get_logs, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_get_mergeinfo", _wrap_svn_repos_fs_get_mergeinfo, -1);
  rb_define_module_function(mRepos, "svn_repos_get_file_revs2", _wrap_svn_repos_get_file_revs2, -1);
  rb_define_module_function(mRepos, "svn_repos_get_file_revs", _wrap_svn_repos_get_file_revs, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_commit_txn", _wrap_svn_repos_fs_commit_txn, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_begin_txn_for_commit2", _wrap_svn_repos_fs_begin_txn_for_commit2, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_begin_txn_for_commit", _wrap_svn_repos_fs_begin_txn_for_commit, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_begin_txn_for_update", _wrap_svn_repos_fs_begin_txn_for_update, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_lock", _wrap_svn_repos_fs_lock, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_unlock", _wrap_svn_repos_fs_unlock, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_get_locks2", _wrap_svn_repos_fs_get_locks2, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_get_locks", _wrap_svn_repos_fs_get_locks, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_rev_prop4", _wrap_svn_repos_fs_change_rev_prop4, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_rev_prop3", _wrap_svn_repos_fs_change_rev_prop3, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_rev_prop2", _wrap_svn_repos_fs_change_rev_prop2, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_rev_prop", _wrap_svn_repos_fs_change_rev_prop, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_revision_prop", _wrap_svn_repos_fs_revision_prop, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_revision_proplist", _wrap_svn_repos_fs_revision_proplist, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_node_prop", _wrap_svn_repos_fs_change_node_prop, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_txn_prop", _wrap_svn_repos_fs_change_txn_prop, -1);
  rb_define_module_function(mRepos, "svn_repos_fs_change_txn_props", _wrap_svn_repos_fs_change_txn_props, -1);
  
  SwigClassSvn_repos_node_t.klass = rb_define_class_under(mRepos, "Svn_repos_node_t", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_svn_repos_node_t, (void *) &SwigClassSvn_repos_node_t);
  rb_undef_alloc_func(SwigClassSvn_repos_node_t.klass);
  rb_define_method(SwigClassSvn_repos_node_t.klass, "kind=", _wrap_svn_repos_node_t_kind_set, -1);
  rb_define_method(SwigClassSvn_repos_node_t.klass, "kind", _wrap_svn_repos_node_t_kind_get, -1);
  rb_define_method(SwigClassSvn_repos_node_t.klass, "action=", _wrap_svn_repos_node_t_action_set, -1);



( run in 0.716 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )