~ubuntu-branches/ubuntu/trusty/subversion/trusty-proposed

« back to all changes in this revision

Viewing changes to subversion/bindings/swig/proxy/svn_io_h.swg

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft
  • Date: 2012-06-21 15:36:36 UTC
  • mfrom: (0.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120621153636-amqqmuidgwgxz1ly
Tags: 1.7.5-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Create pot file on build.
  - Build a python-subversion-dbg package.
  - Build-depend on python-dbg.
  - Build-depend on default-jre-headless/-jdk.
  - Do not apply java-build patch.
  - debian/rules: Manually create the doxygen output directory, otherwise
    we get weird build failures when running parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/* No default constructors for opaque structs */
5
5
#ifdef SWIGPYTHON
6
6
%nodefault svn_stream_t;
 
7
%nodefault svn_stream_mark_t;
7
8
#endif
8
9
 
9
10
/* Callback typemaps */
10
11
#ifdef SWIGPYTHON
11
12
%apply CALLABLE_CALLBACK {
12
13
  svn_read_fn_t,
 
14
  svn_stream_skip_fn_t,
13
15
  svn_write_fn_t,
14
16
  svn_close_fn_t,
 
17
  svn_stream_mark_fn_t,
 
18
  svn_stream_seek_fn_t,
15
19
  svn_io_walk_func_t
16
20
};
17
21
%apply CALLABLE_CALLBACK * {
18
22
  svn_read_fn_t *,
 
23
  svn_stream_skip_fn_t *,
19
24
  svn_write_fn_t *,
20
25
  svn_close_fn_t *,
 
26
  svn_stream_mark_fn_t *,
 
27
  svn_stream_seek_fn_t *,
21
28
  svn_io_walk_func_t *
22
29
};
23
30
#endif
39
46
 
40
47
/* Structure definitions */
41
48
#ifdef SWIGPYTHON
 
49
%proxy(svn_io_dirent2_t);
42
50
%proxy(svn_io_dirent_t);
43
51
%opaque_proxy(svn_stream_t);
 
52
%opaque_proxy(svn_stream_mark_t);
44
53
#endif
45
54
 
46
55
/* Callbacks */
51
60
  return _obj(baton, buffer, len);
52
61
}
53
62
 
 
63
static svn_error_t * svn_stream_invoke_skip_fn(
 
64
  svn_stream_skip_fn_t _obj, void *baton, apr_size_t len) {
 
65
  return _obj(baton, len);
 
66
}
 
67
 
54
68
static svn_error_t * svn_write_invoke_fn(
55
69
  svn_write_fn_t _obj, void *baton, const char *data, apr_size_t *len) {
56
70
  return _obj(baton, data, len);
61
75
  return _obj(baton);
62
76
}
63
77
 
 
78
static svn_error_t * svn_stream_invoke_mark_fn(
 
79
  svn_stream_mark_fn_t _obj, void *baton, svn_stream_mark_t **mark, apr_pool_t *pool) {
 
80
  return _obj(baton, mark, pool);
 
81
}
 
82
 
 
83
static svn_error_t * svn_stream_invoke_seek_fn(
 
84
  svn_stream_seek_fn_t _obj, void *baton, const svn_stream_mark_t *mark) {
 
85
  return _obj(baton, mark);
 
86
}
 
87
 
64
88
static svn_error_t * svn_io_invoke_walk_func(
65
89
  svn_io_walk_func_t _obj, void *baton, const char *path, const apr_finfo_t *finfo, apr_pool_t *pool) {
66
90
  return _obj(baton, path, finfo, pool);
70
94
 
71
95
#ifdef SWIGPYTHON
72
96
%funcptr_proxy(svn_read_fn_t, svn_read_invoke_fn);
 
97
%funcptr_proxy(svn_stream_skip_fn_t, svn_stream_invoke_skip_fn);
73
98
%funcptr_proxy(svn_write_fn_t, svn_write_invoke_fn);
74
99
%funcptr_proxy(svn_close_fn_t, svn_close_invoke_fn);
 
100
%funcptr_proxy(svn_stream_mark_fn_t, svn_stream_invoke_mark_fn);
 
101
%funcptr_proxy(svn_stream_seek_fn_t, svn_stream_invoke_seek_fn);
75
102
%funcptr_proxy(svn_io_walk_func_t, svn_io_invoke_walk_func);
76
103
 
77
104
#endif