⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svn_ra.c

📁 subversion-1.4.5.tar.gz 配置svn的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
  return result;}/* Check convert */static SWIGINLINE intSWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty){  char *c = SWIG_MangleStr(obj);  if (!c)    return 0;  return SWIG_TypeCheck(c,ty) != 0;}static VALUESWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {  char result[1024];  char *r = result;  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;  *(r++) = '_';  r = SWIG_PackData(r, ptr, sz);  strcpy(r, type->name);  return rb_str_new2(result);}/* Convert a packed value value */static voidSWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty, int flags) {  swig_cast_info *tc;  const char  *c;  if (TYPE(obj) != T_STRING) goto type_error;  c = StringValuePtr(obj);  /* Pointer values must start with leading underscore */  if (*c != '_') goto type_error;  c++;  c = SWIG_UnpackData(c, ptr, sz);  if (ty) {    tc = SWIG_TypeCheck(c, ty);    if (!tc) goto type_error;  }  return;type_error:  if (flags) {    if (ty) {      rb_raise(rb_eTypeError, "Type error. Expected %s", ty->name);    } else {      rb_raise(rb_eTypeError, "Expected a pointer");    }  }}static swig_module_info *SWIG_Ruby_GetModule() {    VALUE pointer;    swig_module_info *ret = 0;   /* first check if pointer already created */    pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);    if (pointer != Qnil) {      Data_Get_Struct(pointer, swig_module_info, ret);    }    return ret;}static void SWIG_Ruby_SetModule(swig_module_info *pointer) {      /* register a new class */      VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);      /* create and store the structure pointer to a global variable */      swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);      rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);}#ifdef __cplusplus}#endif/* -------- TYPES TABLE (BEGIN) -------- */#define SWIGTYPE_p_apr_array_header_t swig_types[0]#define SWIGTYPE_p_apr_file_t swig_types[1]#define SWIGTYPE_p_apr_hash_t swig_types[2]#define SWIGTYPE_p_apr_int32_t swig_types[3]#define SWIGTYPE_p_apr_int64_t swig_types[4]#define SWIGTYPE_p_apr_pool_t swig_types[5]#define SWIGTYPE_p_f_apr_off_t_apr_off_t_p_void_p_apr_pool_t__void swig_types[6]#define SWIGTYPE_p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[7]#define SWIGTYPE_p_f_p_p_apr_file_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[8]#define SWIGTYPE_p_f_p_p_void_p_q_const__char_p_q_const__svn_ra_callbacks_t_p_void_p_apr_hash_t_p_apr_pool_t__p_svn_error_t swig_types[9]#define SWIGTYPE_p_f_p_q_const__svn_commit_info_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[10]#define SWIGTYPE_p_f_p_void_p_apr_hash_t_svn_revnum_t_p_q_const__char_p_q_const__char_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[11]#define SWIGTYPE_p_f_p_void_p_apr_pool_t__p_svn_error_t swig_types[12]#define SWIGTYPE_p_f_p_void_p_p_apr_hash_t_p_q_const__char_svn_revnum_t_p_apr_array_header_t_p_apr_pool_t__p_svn_error_t swig_types[13]#define SWIGTYPE_p_f_p_void_p_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[14]#define SWIGTYPE_p_f_p_void_p_p_q_const__svn_delta_editor_t_p_p_void_p_q_const__char_svn_commit_callback_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[15]#define SWIGTYPE_p_f_p_void_p_p_q_const__svn_ra_reporter_t_p_p_void_p_q_const__char_svn_revnum_t_svn_boolean_t_p_q_const__svn_delta_editor_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[16]#define SWIGTYPE_p_f_p_void_p_p_q_const__svn_ra_reporter_t_p_p_void_svn_revnum_t_p_q_const__char_svn_boolean_t_p_q_const__char_p_q_const__svn_delta_editor_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[17]#define SWIGTYPE_p_f_p_void_p_p_q_const__svn_ra_reporter_t_p_p_void_svn_revnum_t_p_q_const__char_svn_boolean_t_p_q_const__svn_delta_editor_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[18]#define SWIGTYPE_p_f_p_void_p_p_q_const__svn_ra_reporter_t_p_p_void_svn_revnum_t_p_q_const__char_svn_boolean_t_svn_boolean_t_p_q_const__char_p_q_const__svn_delta_editor_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[19]#define SWIGTYPE_p_f_p_void_p_q_const__apr_array_header_t_svn_revnum_t_svn_revnum_t_svn_boolean_t_svn_boolean_t_svn_log_message_receiver_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[20]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[21]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[22]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__char_p_p_q_const__svn_string_t_p_apr_pool_t__p_svn_error_t swig_types[23]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__char_p_q_const__svn_string_t_p_apr_pool_t__p_svn_error_t swig_types[24]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__char_svn_revnum_t_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[25]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__char_svn_revnum_t_svn_boolean_t_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[26]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_boolean_t_p_q_const__svn_lock_t_p_svn_error_t_p_apr_pool_t__p_svn_error_t swig_types[27]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_p_apr_hash_t_p_svn_txdelta_window_handler_t_p_p_void_p_apr_array_header_t_p_apr_pool_t__p_svn_error_t swig_types[28]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_p_p_apr_hash_t_p_svn_revnum_t_p_p_apr_hash_t_p_apr_pool_t__p_svn_error_t swig_types[29]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_p_svn_node_kind_t_p_apr_pool_t__p_svn_error_t swig_types[30]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_p_svn_stream_t_p_svn_revnum_t_p_p_apr_hash_t_p_apr_pool_t__p_svn_error_t swig_types[31]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[32]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_svn_boolean_t_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[33]#define SWIGTYPE_p_f_p_void_p_q_const__char_svn_revnum_t_svn_revnum_t_svn_ra_file_rev_handler_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[34]#define SWIGTYPE_p_f_p_void_p_svn_revnum_t_apr_time_t_p_apr_pool_t__p_svn_error_t swig_types[35]#define SWIGTYPE_p_f_p_void_p_svn_revnum_t_p_apr_pool_t__p_svn_error_t swig_types[36]#define SWIGTYPE_p_f_p_void_svn_revnum_t_p_p_apr_hash_t_p_apr_pool_t__p_svn_error_t swig_types[37]#define SWIGTYPE_p_f_p_void_svn_revnum_t_p_q_const__char_p_p_svn_string_t_p_apr_pool_t__p_svn_error_t swig_types[38]#define SWIGTYPE_p_f_p_void_svn_revnum_t_p_q_const__char_p_q_const__svn_string_t_p_apr_pool_t__p_svn_error_t swig_types[39]#define SWIGTYPE_p_f_svn_revnum_t_p_q_const__char_p_q_const__char_p_void__p_svn_error_t swig_types[40]#define SWIGTYPE_p_f_void__p_svn_version_t swig_types[41]#define SWIGTYPE_p_int swig_types[42]#define SWIGTYPE_p_long swig_types[43]#define SWIGTYPE_p_p_apr_file_t swig_types[44]#define SWIGTYPE_p_p_apr_hash_t swig_types[45]#define SWIGTYPE_p_p_char swig_types[46]#define SWIGTYPE_p_p_svn_delta_editor_t swig_types[47]#define SWIGTYPE_p_p_svn_dirent_t swig_types[48]#define SWIGTYPE_p_p_svn_lock_t swig_types[49]#define SWIGTYPE_p_p_svn_ra_callbacks2_t swig_types[50]#define SWIGTYPE_p_p_svn_ra_plugin_t swig_types[51]#define SWIGTYPE_p_p_svn_ra_reporter2_t swig_types[52]#define SWIGTYPE_p_p_svn_ra_reporter_t swig_types[53]#define SWIGTYPE_p_p_svn_ra_session_t swig_types[54]#define SWIGTYPE_p_p_svn_string_t swig_types[55]#define SWIGTYPE_p_p_svn_stringbuf_t swig_types[56]#define SWIGTYPE_p_p_void swig_types[57]#define SWIGTYPE_p_svn_auth_baton_t swig_types[58]#define SWIGTYPE_p_svn_auth_cred_simple_t swig_types[59]#define SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t swig_types[60]#define SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t swig_types[61]#define SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t swig_types[62]#define SWIGTYPE_p_svn_auth_cred_username_t swig_types[63]#define SWIGTYPE_p_svn_auth_iterstate_t swig_types[64]#define SWIGTYPE_p_svn_auth_provider_object_t swig_types[65]#define SWIGTYPE_p_svn_auth_provider_t swig_types[66]#define SWIGTYPE_p_svn_auth_ssl_server_cert_info_t swig_types[67]#define SWIGTYPE_p_svn_commit_info_t swig_types[68]#define SWIGTYPE_p_svn_config_t swig_types[69]#define SWIGTYPE_p_svn_delta_editor_t swig_types[70]#define SWIGTYPE_p_svn_diff_datasource_e swig_types[71]#define SWIGTYPE_p_svn_diff_file_ignore_space_t swig_types[72]#define SWIGTYPE_p_svn_diff_file_options_t swig_types[73]#define SWIGTYPE_p_svn_diff_fns_t swig_types[74]#define SWIGTYPE_p_svn_diff_output_fns_t swig_types[75]#define SWIGTYPE_p_svn_diff_t swig_types[76]#define SWIGTYPE_p_svn_dirent_t swig_types[77]#define SWIGTYPE_p_svn_errno_t swig_types[78]#define SWIGTYPE_p_svn_error_t swig_types[79]#define SWIGTYPE_p_svn_io_dirent_t swig_types[80]#define SWIGTYPE_p_svn_io_file_del_t swig_types[81]#define SWIGTYPE_p_svn_lock_t swig_types[82]#define SWIGTYPE_p_svn_log_changed_path_t swig_types[83]#define SWIGTYPE_p_svn_node_kind_t swig_types[84]#define SWIGTYPE_p_svn_opt_revision_t swig_types[85]#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[86]#define SWIGTYPE_p_svn_opt_subcommand_desc2_t swig_types[87]#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[88]#define SWIGTYPE_p_svn_prop_kind swig_types[89]#define SWIGTYPE_p_svn_prop_t swig_types[90]#define SWIGTYPE_p_svn_ra_callbacks2_t swig_types[91]#define SWIGTYPE_p_svn_ra_callbacks_t swig_types[92]#define SWIGTYPE_p_svn_ra_plugin_t swig_types[93]#define SWIGTYPE_p_svn_ra_reporter2_t swig_types[94]#define SWIGTYPE_p_svn_ra_reporter_t swig_types[95]#define SWIGTYPE_p_svn_ra_session_t swig_types[96]#define SWIGTYPE_p_svn_stream_t swig_types[97]#define SWIGTYPE_p_svn_string_t swig_types[98]#define SWIGTYPE_p_svn_stringbuf_t swig_types[99]#define SWIGTYPE_p_svn_txdelta_op_t swig_types[100]#define SWIGTYPE_p_svn_txdelta_stream_t swig_types[101]#define SWIGTYPE_p_svn_txdelta_window_t swig_types[102]#define SWIGTYPE_p_svn_version_checklist_t swig_types[103]#define SWIGTYPE_p_svn_version_t swig_types[104]#define SWIGTYPE_p_unsigned_long swig_types[105]#define SWIGTYPE_p_void swig_types[106]static swig_type_info *swig_types[107];static swig_module_info swig_module = {swig_types, 107, 0, 0, 0, 0};#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)/* -------- TYPES TABLE (END) -------- */#define SWIG_init    Init_ra#define SWIG_name    "Svn::Ext::Ra"static VALUE mRa;static void SWIG_AsVal(VALUE obj, int *val){    *val = (int) NUM2INT(obj);}#ifdef __cplusplusextern "C" {#endif#ifdef HAVE_SYS_TIME_H# include <sys/time.h>struct timeval rb_time_timeval(VALUE);#endif#ifdef __cplusplus}#endif#ifdef __cplusplusextern "C" {#endif#include "rubyio.h"#ifdef __cplusplus}#endifstatic VALUE _global_svn_swig_rb_pool = Qnil;#include "svn_time.h"#include "svn_pools.h"#ifdef SWIGPYTHON#include "swigutil_py.h"#endif#ifdef SWIGPERL#include "swigutil_pl.h"#endif#ifdef SWIGRUBY#include "swigutil_rb.h"#endif#include "svn_ra.h"static VALUE output_helper(VALUE target, VALUE o) {    if (NIL_P(target)) {	target = o;    } else {	if (TYPE(target) != T_ARRAY) {	    VALUE o2 = target;	    target = rb_ary_new();	    rb_ary_push(target, o2);	}	rb_ary_push(target, o);    }    return target;}static svn_error_t *svn_ra_reporter2_invoke_set_path(  svn_ra_reporter2_t *_obj, void *report_baton, const char *path, svn_revnum_t revision, svn_boolean_t start_empty, const char *lock_token, apr_pool_t *pool) {  return _obj->set_path(report_baton, path, revision, start_empty, lock_token, pool);}static svn_error_t *svn_ra_reporter2_invoke_delete_path(  svn_ra_reporter2_t *_obj, void *report_baton, const char *path, apr_pool_t *pool) {  return _obj->delete_path(report_baton, path, pool);}static svn_error_t *svn_ra_reporter2_invoke_link_path(  svn_ra_reporter2_t *_obj, void *report_baton, const char *path, const char *url, svn_revnum_t revision, svn_boolean_t start_empty, const char *lock_token, apr_pool_t *pool) {  return _obj->link_path(report_baton, path, url, revision, start_empty, lock_token, pool);}static svn_error_t *svn_ra_reporter2_invoke_finish_report(  svn_ra_reporter2_t *_obj, void *report_baton, apr_pool_t *pool) {  return _obj->finish_report(report_baton, pool);}static svn_error_t *svn_ra_reporter2_invoke_abort_report(  svn_ra_reporter2_t *_obj, void *report_baton, apr_pool_t *pool) {  return _obj->abort_report(report_baton, pool);}static svn_error_t *svn_ra_reporter_invoke_set_path(  svn_ra_reporter_t *_obj, void *report_baton, const char *path, svn_revnum_t revision, svn_boolean_t start_empty, apr_pool_t *pool) {  return _obj->set_path(report_baton, path, revision, start_empty, pool);}static svn_error_t *svn_ra_reporter_invoke_delete_path(  svn_ra_reporter_t *_obj, void *report_baton, const char *path, apr_pool_t *pool) {  return _obj->delete_path(report_baton, path, pool);}static svn_error_t *svn_ra_reporter_invoke_link_path(  svn_ra_reporter_t *_obj, void *report_baton, const char *path, const char *url, svn_revnum_t revision, svn_boolean_t start_empty, apr_pool_t *pool) {  return _obj->link_path(report_baton, path, url, revision, start_empty, pool);}static svn_error_t *svn_ra_reporter_invoke_finish_report(  svn_ra_reporter_t *_obj, void *report_baton, apr_pool_t *pool) {  return _obj->finish_report(report_baton, pool);}static svn_error_t *svn_ra_reporter_invoke_abort_report(  svn_ra_reporter_t *_obj, void *report_baton, apr_pool_t *pool) {  return _obj->abort_report(report_baton, pool);}static svn_error_t *svn_ra_callbacks2_invoke_open_tmp_file(  svn_ra_callbacks2_t *_obj, apr_file_t **fp, void *callback_baton, apr_pool_t *pool) {  return _obj->open_tmp_file(fp, callback_baton, pool);}static svn_error_t *svn_ra_callbacks_invoke_open_tmp_file(  svn_ra_callbacks_t *_obj, apr_file_t **fp, void *callback_baton, apr_pool_t *pool) {  return _obj->open_tmp_file(fp, callback_baton, pool);}static svn_error_t *svn_ra_plugin_invoke_open(  svn_ra_plugin_t *_obj, void **session_baton, const char *repos_URL, const svn_ra_callbacks_t *callbacks, void *callback_baton, apr_hash_t *config, apr_pool_t *pool) {  return _obj->open(session_baton, repos_URL, callbacks, callback_baton, config, pool);}static svn_error_t *svn_ra_plugin_invoke_get_latest_revnum(  svn_ra_plugin_t *_obj, void *session_baton, svn_revnum_t *latest_revnum, apr_pool_t *pool) {  return _obj->get_latest_revnum(session_baton, latest_revnum, pool);}static svn_error_t *svn_ra_plugin_invoke_get_dated_revision(  svn_ra_plugin_t *_obj, void *session_baton, svn_revnum_t *revision, apr_time_t tm, apr_pool_t *pool) {  return _obj->get_dated_revision(session_baton, revision, tm, pool);}static svn_error_t *svn_ra_plugin_invoke_change_rev_prop(  svn_ra_plugin_t *_obj, void *session_baton, svn_revnum_t rev, const char *name, const svn_string_t *value, apr_pool_t *pool) {  return _obj->change_rev_prop(session_baton, rev, name, value, pool);}static svn_error_t *svn_ra_plugin_invoke_rev_proplist(  svn_ra_plugin_t *_obj, void *session_baton, svn_revnum_t rev, apr_hash_t **props, apr_pool_t *pool) {  return _obj->rev_proplist(session_baton, rev, props, pool);}static svn_error_t *svn_ra_plugin_invoke_rev_prop(  svn_ra_plugin_t *_obj, void *session_baton, svn_revnum_t rev, const char *name, svn_string_t **value, apr_pool_t *pool) {  return _obj->rev_prop(session_baton, rev, name, value, pool);}static svn_error_t *svn_ra_plugin_invoke_get_commit_editor(  svn_ra_plugin_t *_obj, void *session_baton, const svn_delta_editor_t **editor, void **edit_baton, const char *log_msg, svn_commit_callback_t callback, void *callback_baton, apr_pool_t *pool) {  return _obj->get_commit_editor(session_baton, editor, edit_baton, log_msg, callback, callback_baton, pool);}static svn_error_t *svn_ra_plugin_invoke_get_file(  svn_ra_plugin_t *_obj, void *session_baton, const char *path, svn_revnum_t revision, svn_stream_t *stream, svn_revnum_t *fetched_rev, apr_hash_t **props, apr_pool_t *pool) {  return _obj->get_file(session_baton, path, revision, stream, fetched_rev, props, pool);}static svn_error_t *svn_ra_plugin_invoke_get_dir(  svn_ra_plugin_t *_obj, void *session_baton, const char *path, svn_revnum_t revision, apr_hash_t **dirents, svn_revnum_t *fetched_rev, apr_hash_t **props, apr_pool_t *pool) {  return _obj->get_dir(session_baton, path, revision, dirents, fetched_rev, props, pool);}static svn_error_t *svn_ra_plugin_invoke_do_update(  svn_ra_plugin_t *_obj, void *session_baton, const svn_ra_reporter_t **reporter, void **report_baton, svn_revnum_t revision_to_update_to, const char *update_target, svn_boolean_t recurse, const svn_delta_editor_t *update_editor, void *update_baton, apr_pool_t *pool) {  return _obj->do_update(session_baton, reporter, report_baton, revision_to_update_to, update_target, recurse, update_editor, update_baton, pool);}static svn_error_t *svn_ra_plugin_invoke_do_switch(  svn_ra_plugin_t *_obj, void *session_baton, const svn_ra_reporter_t **reporter, void **report_baton, svn_revnum_t revision_to_switch_to, const char *switch_target, svn_boolean_t recurse, const char *switch_url, const svn_delta_editor_t *switch_editor, void *switch_baton, apr_pool_t *pool) {  return _obj->do_switch(session_baton, reporter, report_baton, revision_to_switch_to, switch_target, recurse, switch_url, switch_editor, switch_baton, pool);}static svn_error_t *svn_ra_plugin_invoke_do_status(  svn_ra_plugin_t *_obj, void *session_baton, const svn_ra_reporter_t **reporter, void **report_baton, const char *status_target, svn_revnum_t revision, svn_boolean_t recurse, const svn_delta_editor_t *status_editor, void *status_baton, apr_pool_t *pool) {  return _obj->do_status(session_baton, reporter, report_baton, status_target, revision, recurse, status_editor, status_baton, pool);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -