gio2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/gio2/extconf.rb +4 -42
- data/ext/gio2/gio2.c +18 -117
- data/ext/gio2/gio2.h +20 -339
- data/ext/gio2/rbgio.c +132 -0
- data/ext/gio2/rbgio2.h +156 -0
- data/ext/gio2/rbgio2conversions.h +154 -0
- data/ext/gio2/rbgio2private.h +147 -0
- data/ext/gio2/{gappinfo.c → rbgioappinfo.c} +81 -82
- data/ext/gio2/rbgioapplaunchcontext.c +81 -0
- data/ext/gio2/{gasyncinitable.c → rbgioasyncinitable.c} +33 -30
- data/ext/gio2/rbgioasyncresult.c +41 -0
- data/ext/gio2/{gbufferedinputstream.c → rbgiobufferedinputstream.c} +37 -35
- data/ext/gio2/rbgiobufferedoutputstream.c +50 -0
- data/ext/gio2/rbgiocancellable.c +180 -0
- data/ext/gio2/rbgiocharsetconverter.c +57 -0
- data/ext/gio2/rbgiocontenttype.c +131 -0
- data/ext/gio2/{gconverter.c → rbgioconverter.c} +24 -28
- data/ext/gio2/rbgioconverterinputstream.c +43 -0
- data/ext/gio2/rbgioconverteroutputstream.c +43 -0
- data/ext/gio2/{gdatainputstream.c → rbgiodatainputstream.c} +49 -58
- data/ext/gio2/{gdataoutputstream.c → rbgiodataoutputstream.c} +39 -37
- data/ext/gio2/rbgiodesktopappinfo.c +87 -0
- data/ext/gio2/{gdrive.c → rbgiodrive.c} +75 -76
- data/ext/gio2/rbgioemblem.c +52 -0
- data/ext/gio2/rbgioemblemedicon.c +65 -0
- data/ext/gio2/{gfile.c → rbgiofile.c} +256 -266
- data/ext/gio2/rbgiofileattribute.c +114 -0
- data/ext/gio2/rbgiofileattributeinfo.c +86 -0
- data/ext/gio2/rbgiofileattributeinfolist.c +106 -0
- data/ext/gio2/rbgiofileattributematcher.c +93 -0
- data/ext/gio2/rbgiofiledescriptorbased.c +45 -0
- data/ext/gio2/{gfileenumerator.c → rbgiofileenumerator.c} +42 -40
- data/ext/gio2/rbgiofileicon.c +41 -0
- data/ext/gio2/{gfileinfo.c → rbgiofileinfo.c} +159 -163
- data/ext/gio2/{gfileinputstream.c → rbgiofileinputstream.c} +26 -25
- data/ext/gio2/{gfileiostream.c → rbgiofileiostream.c} +28 -26
- data/ext/gio2/rbgiofilemonitor.c +46 -0
- data/ext/gio2/rbgiofilenamecompleter.c +74 -0
- data/ext/gio2/{gfileoutputstream.c → rbgiofileoutputstream.c} +28 -26
- data/ext/gio2/rbgiofilterinputstream.c +28 -0
- data/ext/gio2/rbgiofilteroutputstream.c +28 -0
- data/ext/gio2/rbgioicon.c +69 -0
- data/ext/gio2/rbgioinetaddress.c +118 -0
- data/ext/gio2/rbgioinetsocketaddress.c +41 -0
- data/ext/gio2/{ginitable.c → rbgioinitable.c} +29 -25
- data/ext/gio2/{ginputstream.c → rbgioinputstream.c} +50 -48
- data/ext/gio2/rbgioio.c +73 -0
- data/ext/gio2/rbgioiomodule.c +45 -0
- data/ext/gio2/rbgioiomodules.c +47 -0
- data/ext/gio2/rbgioioscheduler.c +102 -0
- data/ext/gio2/rbgioioschedulerjob.c +121 -0
- data/ext/gio2/rbgioiostream.c +108 -0
- data/ext/gio2/{gloadableicon.c → rbgioloadableicon.c} +26 -24
- data/ext/gio2/rbgiomemoryinputstream.c +67 -0
- data/ext/gio2/rbgiomemoryoutputstream.c +44 -0
- data/ext/gio2/{gmount.c → rbgiomount.c} +70 -68
- data/ext/gio2/rbgiomountoperation.c +53 -0
- data/ext/gio2/rbgionetworkaddress.c +59 -0
- data/ext/gio2/rbgionetworkservice.c +45 -0
- data/ext/gio2/{goutputstream.c → rbgiooutputstream.c} +61 -62
- data/ext/gio2/{gresolver.c → rbgioresolver.c} +50 -48
- data/ext/gio2/rbgioseekable.c +91 -0
- data/ext/gio2/rbgiosimpleasyncresult.c +155 -0
- data/ext/gio2/{gsocket.c → rbgiosocket.c} +74 -76
- data/ext/gio2/rbgiosocketaddress.c +34 -0
- data/ext/gio2/rbgiosocketaddressenumerator.c +83 -0
- data/ext/gio2/{gsocketclient.c → rbgiosocketclient.c} +41 -39
- data/ext/gio2/rbgiosocketconnectable.c +41 -0
- data/ext/gio2/rbgiosocketconnection.c +66 -0
- data/ext/gio2/rbgiosocketconnectionfactory.c +39 -0
- data/ext/gio2/rbgiosocketcontrolmessage.c +82 -0
- data/ext/gio2/{gsocketlistener.c → rbgiosocketlistener.c} +49 -47
- data/ext/gio2/rbgiosocketservice.c +66 -0
- data/ext/gio2/rbgiosrvtarget.c +76 -0
- data/ext/gio2/rbgiotcpconnection.c +28 -0
- data/ext/gio2/rbgiothemedicon.c +83 -0
- data/ext/gio2/rbgiothreadedsocketservice.c +43 -0
- data/ext/gio2/rbgiounixconnection.c +71 -0
- data/ext/gio2/rbgiounixfdlist.c +115 -0
- data/ext/gio2/rbgiounixfdmessage.c +74 -0
- data/ext/gio2/rbgiounixinputstream.c +51 -0
- data/ext/gio2/rbgiounixmount.c +164 -0
- data/ext/gio2/rbgiounixmountmonitor.c +66 -0
- data/ext/gio2/rbgiounixmountpoint.c +136 -0
- data/ext/gio2/rbgiounixmountpoints.c +58 -0
- data/ext/gio2/rbgiounixmounts.c +58 -0
- data/ext/gio2/rbgiounixoutputstream.c +51 -0
- data/ext/gio2/rbgiounixsocketaddress.c +69 -0
- data/ext/gio2/rbgiovfs.c +84 -0
- data/ext/gio2/rbgiovolume.c +193 -0
- data/ext/gio2/rbgiovolumemonitor.c +77 -0
- data/ext/gio2/rbgiozlibcompressor.c +52 -0
- data/ext/gio2/rbgiozlibdecompressor.c +45 -0
- data/ext/gio2/util.c +57 -60
- data/lib/1.8/gio2.so +0 -0
- data/lib/1.9/gio2.so +0 -0
- data/lib/gio2/deprecated.rb +102 -0
- data/lib/gio2.rb +14 -12
- metadata +100 -88
- data/ChangeLog +0 -129
- data/ext/gio2/gapplaunchcontext.c +0 -79
- data/ext/gio2/gasyncresult.c +0 -39
- data/ext/gio2/gbufferedoutputstream.c +0 -48
- data/ext/gio2/gcancellable.c +0 -177
- data/ext/gio2/gcharsetconverter.c +0 -55
- data/ext/gio2/gcontenttype.c +0 -128
- data/ext/gio2/gconverterinputstream.c +0 -41
- data/ext/gio2/gconverteroutputstream.c +0 -41
- data/ext/gio2/gdesktopappinfo.c +0 -88
- data/ext/gio2/gemblem.c +0 -52
- data/ext/gio2/gemblemedicon.c +0 -63
- data/ext/gio2/gfileattribute.c +0 -111
- data/ext/gio2/gfileattributeinfo.c +0 -89
- data/ext/gio2/gfileattributeinfolist.c +0 -109
- data/ext/gio2/gfileattributematcher.c +0 -90
- data/ext/gio2/gfiledescriptorbased.c +0 -42
- data/ext/gio2/gfileicon.c +0 -39
- data/ext/gio2/gfilemonitor.c +0 -44
- data/ext/gio2/gfilenamecompleter.c +0 -72
- data/ext/gio2/gfilterinputstream.c +0 -27
- data/ext/gio2/gfilteroutputstream.c +0 -27
- data/ext/gio2/gicon.c +0 -67
- data/ext/gio2/ginetaddress.c +0 -116
- data/ext/gio2/ginetsocketaddress.c +0 -38
- data/ext/gio2/gioerror.c +0 -70
- data/ext/gio2/giomodule.c +0 -63
- data/ext/gio2/gioscheduler.c +0 -193
- data/ext/gio2/giostream.c +0 -106
- data/ext/gio2/gmemoryinputstream.c +0 -65
- data/ext/gio2/gmemoryoutputstream.c +0 -41
- data/ext/gio2/gmountoperation.c +0 -66
- data/ext/gio2/gnetworkaddress.c +0 -57
- data/ext/gio2/gnetworkservice.c +0 -43
- data/ext/gio2/gseekable.c +0 -89
- data/ext/gio2/gsimpleasyncresult.c +0 -153
- data/ext/gio2/gsocketaddress.c +0 -33
- data/ext/gio2/gsocketconnectable.c +0 -97
- data/ext/gio2/gsocketconnection.c +0 -75
- data/ext/gio2/gsocketcontrolmessage.c +0 -80
- data/ext/gio2/gsocketservice.c +0 -64
- data/ext/gio2/gsrvtarget.c +0 -77
- data/ext/gio2/gtcpconnection.c +0 -27
- data/ext/gio2/gthemedicon.c +0 -81
- data/ext/gio2/gthreadedsocketservice.c +0 -40
- data/ext/gio2/gunixconnection.c +0 -69
- data/ext/gio2/gunixfdlist.c +0 -112
- data/ext/gio2/gunixfdmessage.c +0 -72
- data/ext/gio2/gunixinputstream.c +0 -49
- data/ext/gio2/gunixmounts.c +0 -343
- data/ext/gio2/gunixoutputstream.c +0 -49
- data/ext/gio2/gunixsocketaddress.c +0 -67
- data/ext/gio2/gvfs.c +0 -82
- data/ext/gio2/gvolume.c +0 -191
- data/ext/gio2/gvolumemonitor.c +0 -75
- data/ext/gio2/gzlibcompressor.c +0 -50
- data/ext/gio2/gzlibdecompressor.c +0 -43
@@ -1,52 +1,42 @@
|
|
1
|
-
/* -*- c-file-style: "ruby" -*- */
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
|
5
5
|
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
10
|
*
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
15
|
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
19
20
|
*/
|
20
21
|
|
21
|
-
#include "
|
22
|
+
#include "rbgio2private.h"
|
22
23
|
|
24
|
+
#define RG_TARGET_NAMESPACE mFile
|
23
25
|
#define _SELF(value) RVAL2GFILE(value)
|
24
26
|
|
25
|
-
#define RVAL2GFILECOPYFLAGS(value) \
|
26
|
-
RVAL2GFLAGS((value), G_TYPE_FILE_COPY_FLAGS)
|
27
|
-
|
28
27
|
#define RVAL2GFILECOPYFLAGSDEFAULT(value) \
|
29
28
|
RVAL2TYPE_WITH_DEFAULT((value), RVAL2GFILECOPYFLAGS, G_FILE_COPY_NONE)
|
30
29
|
|
31
|
-
#define RVAL2GFILECREATEFLAGS(value) \
|
32
|
-
RVAL2GFLAGS((value), G_TYPE_FILE_CREATE_FLAGS)
|
33
|
-
|
34
30
|
#define RVAL2GFILECREATEFLAGSDEFAULT(value) \
|
35
31
|
RVAL2TYPE_WITH_DEFAULT((value), \
|
36
32
|
RVAL2GFILECREATEFLAGS, \
|
37
33
|
G_FILE_CREATE_NONE)
|
38
34
|
|
39
|
-
#define RVAL2GFILEMONITORFLAGS(value) \
|
40
|
-
RVAL2GFLAGS((value), G_TYPE_FILE_MONITOR_FLAGS)
|
41
|
-
|
42
35
|
#define RVAL2GFILEMONITORFLAGSDEFAULT(value) \
|
43
36
|
RVAL2TYPE_WITH_DEFAULT((value), \
|
44
37
|
RVAL2GFILEMONITORFLAGS, \
|
45
38
|
G_FILE_MONITOR_NONE)
|
46
39
|
|
47
|
-
#define RVAL2GFILEQUERYINFOFLAGS(value) \
|
48
|
-
RVAL2GFLAGS((value), G_TYPE_FILE_QUERY_INFO_FLAGS)
|
49
|
-
|
50
40
|
#define RVAL2GFILEQUERYINFOFLAGSDEFAULT(value) \
|
51
41
|
RVAL2TYPE_WITH_DEFAULT((value), \
|
52
42
|
RVAL2GFILEQUERYINFOFLAGS, \
|
@@ -56,79 +46,79 @@
|
|
56
46
|
RVAL2TYPE_WITH_DEFAULT((value), RVAL2CSTR, "fs::*")
|
57
47
|
|
58
48
|
static VALUE
|
59
|
-
|
49
|
+
rg_s_new_for_path(G_GNUC_UNUSED VALUE self, VALUE value)
|
60
50
|
{
|
61
51
|
return GOBJ2RVAL_UNREF(g_file_new_for_path(RVAL2CSTR(value)));
|
62
52
|
}
|
63
53
|
|
64
54
|
static VALUE
|
65
|
-
|
55
|
+
rg_s_new_for_uri(G_GNUC_UNUSED VALUE self, VALUE value)
|
66
56
|
{
|
67
57
|
return GOBJ2RVAL_UNREF(g_file_new_for_uri(RVAL2CSTR(value)));
|
68
58
|
}
|
69
59
|
|
70
60
|
static VALUE
|
71
|
-
|
61
|
+
rg_s_new_for_commandline_arg(G_GNUC_UNUSED VALUE self, VALUE value)
|
72
62
|
{
|
73
63
|
return GOBJ2RVAL_UNREF(g_file_new_for_commandline_arg(RVAL2CSTR(value)));
|
74
64
|
}
|
75
65
|
|
76
66
|
static VALUE
|
77
|
-
|
67
|
+
rg_s_parse_name(G_GNUC_UNUSED VALUE self, VALUE value)
|
78
68
|
{
|
79
69
|
return GOBJ2RVAL_UNREF(g_file_parse_name(RVAL2CSTR(value)));
|
80
70
|
}
|
81
71
|
|
82
72
|
static VALUE
|
83
|
-
|
73
|
+
rg_dup(VALUE self)
|
84
74
|
{
|
85
75
|
return GOBJ2RVAL_UNREF(g_file_dup(_SELF(self)));
|
86
76
|
}
|
87
77
|
|
88
78
|
static VALUE
|
89
|
-
|
79
|
+
rg_hash(VALUE self)
|
90
80
|
{
|
91
81
|
return GUINT2RVAL(g_file_hash(_SELF(self)));
|
92
82
|
}
|
93
83
|
|
94
84
|
static VALUE
|
95
|
-
|
85
|
+
rg_operator_file_equal(VALUE self, VALUE other)
|
96
86
|
{
|
97
87
|
return CBOOL2RVAL(g_file_equal(_SELF(self), _SELF(other)));
|
98
88
|
}
|
99
89
|
|
100
90
|
static VALUE
|
101
|
-
|
91
|
+
rg_basename(VALUE self)
|
102
92
|
{
|
103
93
|
return CSTR2RVAL_FREE(g_file_get_basename(_SELF(self)));
|
104
94
|
}
|
105
95
|
|
106
96
|
static VALUE
|
107
|
-
|
97
|
+
rg_path(VALUE self)
|
108
98
|
{
|
109
99
|
return CSTR2RVAL_FREE(g_file_get_path(_SELF(self)));
|
110
100
|
}
|
111
101
|
|
112
102
|
static VALUE
|
113
|
-
|
103
|
+
rg_uri(VALUE self)
|
114
104
|
{
|
115
105
|
return CSTR2RVAL_FREE(g_file_get_uri(_SELF(self)));
|
116
106
|
}
|
117
107
|
|
118
108
|
static VALUE
|
119
|
-
|
109
|
+
rg_parse_name(VALUE self)
|
120
110
|
{
|
121
111
|
return CSTR2RVAL_FREE(g_file_get_parse_name(_SELF(self)));
|
122
112
|
}
|
123
113
|
|
124
114
|
static VALUE
|
125
|
-
|
115
|
+
rg_parent(VALUE self)
|
126
116
|
{
|
127
117
|
return GOBJ2RVAL_UNREF(g_file_get_parent(_SELF(self)));
|
128
118
|
}
|
129
119
|
|
130
120
|
static VALUE
|
131
|
-
|
121
|
+
rg_has_parent_p(int argc, VALUE *argv, VALUE self)
|
132
122
|
{
|
133
123
|
VALUE parent;
|
134
124
|
|
@@ -137,13 +127,13 @@ file_has_parent(int argc, VALUE *argv, VALUE self)
|
|
137
127
|
}
|
138
128
|
|
139
129
|
static VALUE
|
140
|
-
|
130
|
+
rg_get_child(VALUE self, VALUE name)
|
141
131
|
{
|
142
132
|
return GOBJ2RVAL_UNREF(g_file_get_child(_SELF(self), RVAL2CSTR(name)));
|
143
133
|
}
|
144
134
|
|
145
135
|
static VALUE
|
146
|
-
|
136
|
+
rg_get_child_for_display_name(VALUE self, VALUE name)
|
147
137
|
{
|
148
138
|
GError *error = NULL;
|
149
139
|
GFile *file = g_file_get_child_for_display_name(_SELF(self),
|
@@ -156,37 +146,37 @@ file_get_child_for_display_name(VALUE self, VALUE name)
|
|
156
146
|
}
|
157
147
|
|
158
148
|
static VALUE
|
159
|
-
|
149
|
+
rg_has_prefix_p(VALUE self, VALUE prefix)
|
160
150
|
{
|
161
151
|
return CBOOL2RVAL(g_file_has_prefix(_SELF(self), _SELF(prefix)));
|
162
152
|
}
|
163
153
|
|
164
154
|
static VALUE
|
165
|
-
|
155
|
+
rg_get_relative_path(VALUE self, VALUE other)
|
166
156
|
{
|
167
157
|
return CSTR2RVAL_FREE(g_file_get_relative_path(_SELF(self), _SELF(other)));
|
168
158
|
}
|
169
159
|
|
170
160
|
static VALUE
|
171
|
-
|
161
|
+
rg_resolve_relative_path(VALUE self, VALUE path)
|
172
162
|
{
|
173
163
|
return GOBJ2RVAL_UNREF(g_file_resolve_relative_path(_SELF(self), RVAL2CSTR(path)));
|
174
164
|
}
|
175
165
|
|
176
166
|
static VALUE
|
177
|
-
|
167
|
+
rg_native_p(VALUE self)
|
178
168
|
{
|
179
169
|
return CBOOL2RVAL(g_file_is_native(_SELF(self)));
|
180
170
|
}
|
181
171
|
|
182
172
|
static VALUE
|
183
|
-
|
173
|
+
rg_has_uri_scheme_p(VALUE self, VALUE scheme)
|
184
174
|
{
|
185
175
|
return CBOOL2RVAL(g_file_has_uri_scheme(_SELF(self), RVAL2CSTR(scheme)));
|
186
176
|
}
|
187
177
|
|
188
178
|
static VALUE
|
189
|
-
|
179
|
+
rg_uri_scheme(VALUE self)
|
190
180
|
{
|
191
181
|
return CSTR2RVAL_FREE(g_file_get_uri_scheme(_SELF(self)));
|
192
182
|
}
|
@@ -214,7 +204,7 @@ file_input_stream_close(VALUE data)
|
|
214
204
|
}
|
215
205
|
|
216
206
|
static VALUE
|
217
|
-
|
207
|
+
rg_read(int argc, VALUE *argv, VALUE self)
|
218
208
|
{
|
219
209
|
VALUE cancellable;
|
220
210
|
struct file_input_stream_close_data data;
|
@@ -234,7 +224,7 @@ file_read(int argc, VALUE *argv, VALUE self)
|
|
234
224
|
}
|
235
225
|
|
236
226
|
static VALUE
|
237
|
-
|
227
|
+
rg_read_async(int argc, VALUE *argv, VALUE self)
|
238
228
|
{
|
239
229
|
VALUE rbio_priority, rbcancellable, block;
|
240
230
|
int io_priority;
|
@@ -254,7 +244,7 @@ file_read_async(int argc, VALUE *argv, VALUE self)
|
|
254
244
|
}
|
255
245
|
|
256
246
|
static VALUE
|
257
|
-
|
247
|
+
rg_read_finish(VALUE self, VALUE result)
|
258
248
|
{
|
259
249
|
GError *error = NULL;
|
260
250
|
GFileInputStream *stream;
|
@@ -317,19 +307,19 @@ create_method(CreateMethod method, int argc, VALUE *argv, VALUE self)
|
|
317
307
|
}
|
318
308
|
|
319
309
|
static VALUE
|
320
|
-
|
310
|
+
rg_append_to(int argc, VALUE *argv, VALUE self)
|
321
311
|
{
|
322
312
|
return create_method(g_file_append_to, argc, argv, self);
|
323
313
|
}
|
324
314
|
|
325
315
|
static VALUE
|
326
|
-
|
316
|
+
rg_create(int argc, VALUE *argv, VALUE self)
|
327
317
|
{
|
328
318
|
return create_method(g_file_create, argc, argv, self);
|
329
319
|
}
|
330
320
|
|
331
321
|
static VALUE
|
332
|
-
|
322
|
+
rg_replace(int argc, VALUE *argv, VALUE self)
|
333
323
|
{
|
334
324
|
VALUE etag, make_backup, flags, cancellable;
|
335
325
|
struct file_output_stream_close_data data;
|
@@ -381,7 +371,7 @@ create_async_method(CreateAsyncMethod method, int argc, VALUE *argv, VALUE self)
|
|
381
371
|
}
|
382
372
|
|
383
373
|
static VALUE
|
384
|
-
|
374
|
+
rg_append_to_async(int argc, VALUE *argv, VALUE self)
|
385
375
|
{
|
386
376
|
return create_async_method(g_file_append_to_async, argc, argv, self);
|
387
377
|
}
|
@@ -402,19 +392,19 @@ write_finish_method(WriteFinishMethod method, VALUE self, VALUE result)
|
|
402
392
|
}
|
403
393
|
|
404
394
|
static VALUE
|
405
|
-
|
395
|
+
rg_append_to_finish(VALUE self, VALUE result)
|
406
396
|
{
|
407
397
|
return write_finish_method(g_file_append_to_finish, self, result);
|
408
398
|
}
|
409
399
|
|
410
400
|
static VALUE
|
411
|
-
|
401
|
+
rg_create_async(int argc, VALUE *argv, VALUE self)
|
412
402
|
{
|
413
403
|
return create_async_method(g_file_create_async, argc, argv, self);
|
414
404
|
}
|
415
405
|
|
416
406
|
static VALUE
|
417
|
-
|
407
|
+
rg_create_finish(VALUE self, VALUE result)
|
418
408
|
{
|
419
409
|
return write_finish_method(g_file_create_finish, self, result);
|
420
410
|
}
|
@@ -458,19 +448,19 @@ replace_async_method(ReplaceAsyncMethod method, int argc, VALUE *argv, VALUE sel
|
|
458
448
|
}
|
459
449
|
|
460
450
|
static VALUE
|
461
|
-
|
451
|
+
rg_replace_async(int argc, VALUE *argv, VALUE self)
|
462
452
|
{
|
463
453
|
return replace_async_method(g_file_replace_async, argc, argv, self);
|
464
454
|
}
|
465
455
|
|
466
456
|
static VALUE
|
467
|
-
|
457
|
+
rg_replace_finish(VALUE self, VALUE result)
|
468
458
|
{
|
469
459
|
return write_finish_method(g_file_replace_finish, self, result);
|
470
460
|
}
|
471
461
|
|
472
462
|
static VALUE
|
473
|
-
|
463
|
+
rg_query_info(int argc, VALUE *argv, VALUE self)
|
474
464
|
{
|
475
465
|
VALUE attributes, flags, cancellable;
|
476
466
|
GError *error = NULL;
|
@@ -489,7 +479,7 @@ file_query_info(int argc, VALUE *argv, VALUE self)
|
|
489
479
|
}
|
490
480
|
|
491
481
|
static VALUE
|
492
|
-
|
482
|
+
rg_query_info_async(int argc, VALUE *argv, VALUE self)
|
493
483
|
{
|
494
484
|
VALUE rbattributes, rbflags, rbio_priority, rbcancellable, block;
|
495
485
|
const char *attributes;
|
@@ -515,7 +505,7 @@ file_query_info_async(int argc, VALUE *argv, VALUE self)
|
|
515
505
|
}
|
516
506
|
|
517
507
|
static VALUE
|
518
|
-
|
508
|
+
rg_query_info_finish(VALUE self, VALUE result)
|
519
509
|
{
|
520
510
|
GError *error = NULL;
|
521
511
|
|
@@ -527,7 +517,7 @@ file_query_info_finish(VALUE self, VALUE result)
|
|
527
517
|
}
|
528
518
|
|
529
519
|
static VALUE
|
530
|
-
|
520
|
+
rg_query_exists_p(int argc, VALUE *argv, VALUE self)
|
531
521
|
{
|
532
522
|
VALUE cancellable;
|
533
523
|
|
@@ -537,7 +527,7 @@ file_query_exists(int argc, VALUE *argv, VALUE self)
|
|
537
527
|
}
|
538
528
|
|
539
529
|
static VALUE
|
540
|
-
|
530
|
+
rg_query_file_type(int argc, VALUE *argv, VALUE self)
|
541
531
|
{
|
542
532
|
VALUE flags, cancellable;
|
543
533
|
|
@@ -549,7 +539,7 @@ file_query_file_type(int argc, VALUE *argv, VALUE self)
|
|
549
539
|
}
|
550
540
|
|
551
541
|
static VALUE
|
552
|
-
|
542
|
+
rg_query_filesystem_info(int argc, VALUE *argv, VALUE self)
|
553
543
|
{
|
554
544
|
VALUE attributes, cancellable;
|
555
545
|
GError *error = NULL;
|
@@ -567,7 +557,7 @@ file_query_filesystem_info(int argc, VALUE *argv, VALUE self)
|
|
567
557
|
}
|
568
558
|
|
569
559
|
static VALUE
|
570
|
-
|
560
|
+
rg_query_filesystem_info_async(int argc, VALUE *argv, VALUE self)
|
571
561
|
{
|
572
562
|
VALUE rbattributes, rbio_priority, rbcancellable, block;
|
573
563
|
const char *attributes;
|
@@ -590,7 +580,7 @@ file_query_filesystem_info_async(int argc, VALUE *argv, VALUE self)
|
|
590
580
|
}
|
591
581
|
|
592
582
|
static VALUE
|
593
|
-
|
583
|
+
rg_query_filesystem_info_finish(VALUE self, VALUE result)
|
594
584
|
{
|
595
585
|
GError *error = NULL;
|
596
586
|
GFileInfo *info;
|
@@ -605,7 +595,7 @@ file_query_filesystem_info_finish(VALUE self, VALUE result)
|
|
605
595
|
}
|
606
596
|
|
607
597
|
static VALUE
|
608
|
-
|
598
|
+
rg_query_default_handler(int argc, VALUE *argv, VALUE self)
|
609
599
|
{
|
610
600
|
VALUE cancellable;
|
611
601
|
GError *error = NULL;
|
@@ -622,7 +612,7 @@ file_query_default_handler(int argc, VALUE *argv, VALUE self)
|
|
622
612
|
}
|
623
613
|
|
624
614
|
static VALUE
|
625
|
-
|
615
|
+
rg_find_enclosing_mount(int argc, VALUE *argv, VALUE self)
|
626
616
|
{
|
627
617
|
VALUE cancellable;
|
628
618
|
GError *error = NULL;
|
@@ -639,7 +629,7 @@ file_find_enclosing_mount(int argc, VALUE *argv, VALUE self)
|
|
639
629
|
}
|
640
630
|
|
641
631
|
static VALUE
|
642
|
-
|
632
|
+
rg_find_enclosing_mount_async(int argc, VALUE *argv, VALUE self)
|
643
633
|
{
|
644
634
|
VALUE rbio_priority, rbcancellable, block;
|
645
635
|
int io_priority;
|
@@ -659,7 +649,7 @@ file_find_enclosing_mount_async(int argc, VALUE *argv, VALUE self)
|
|
659
649
|
}
|
660
650
|
|
661
651
|
static VALUE
|
662
|
-
|
652
|
+
rg_find_enclosing_mount_finish(VALUE self, VALUE result)
|
663
653
|
{
|
664
654
|
GError *error = NULL;
|
665
655
|
|
@@ -721,7 +711,7 @@ file_enumerator_each_ensure(VALUE data)
|
|
721
711
|
}
|
722
712
|
|
723
713
|
static VALUE
|
724
|
-
|
714
|
+
rg_enumerate_children(int argc, VALUE *argv, VALUE self)
|
725
715
|
{
|
726
716
|
VALUE attributes, flags, cancellable;
|
727
717
|
struct file_enumerator_each_data data;
|
@@ -747,7 +737,7 @@ file_enumerate_children(int argc, VALUE *argv, VALUE self)
|
|
747
737
|
}
|
748
738
|
|
749
739
|
static VALUE
|
750
|
-
|
740
|
+
rg_enumerate_children_async(int argc, VALUE *argv, VALUE self)
|
751
741
|
{
|
752
742
|
VALUE rbattributes, rbflags, rbio_priority, rbcancellable, block;
|
753
743
|
const char *attributes;
|
@@ -773,7 +763,7 @@ file_enumerate_children_async(int argc, VALUE *argv, VALUE self)
|
|
773
763
|
}
|
774
764
|
|
775
765
|
static VALUE
|
776
|
-
|
766
|
+
rg_enumerate_children_finish(VALUE self, VALUE result)
|
777
767
|
{
|
778
768
|
GError *error = NULL;
|
779
769
|
GFileEnumerator *enumerator;
|
@@ -788,7 +778,7 @@ file_enumerate_children_finish(VALUE self, VALUE result)
|
|
788
778
|
}
|
789
779
|
|
790
780
|
static VALUE
|
791
|
-
|
781
|
+
rg_set_display_name(int argc, VALUE *argv, VALUE self)
|
792
782
|
{
|
793
783
|
VALUE display_name, cancellable;
|
794
784
|
GError *error = NULL;
|
@@ -807,7 +797,7 @@ file_set_display_name(int argc, VALUE *argv, VALUE self)
|
|
807
797
|
}
|
808
798
|
|
809
799
|
static VALUE
|
810
|
-
|
800
|
+
rg_set_display_name_async(int argc, VALUE *argv, VALUE self)
|
811
801
|
{
|
812
802
|
VALUE rbdisplay_name, rbio_priority, rbcancellable, block;
|
813
803
|
const char *display_name;
|
@@ -830,7 +820,7 @@ file_set_display_name_async(int argc, VALUE *argv, VALUE self)
|
|
830
820
|
}
|
831
821
|
|
832
822
|
static VALUE
|
833
|
-
|
823
|
+
rg_set_display_name_finish(VALUE self, VALUE result)
|
834
824
|
{
|
835
825
|
GError *error = NULL;
|
836
826
|
GFileInfo *info;
|
@@ -860,13 +850,13 @@ cancellable_method(CancellableMethod method, int argc, VALUE *argv, VALUE self)
|
|
860
850
|
}
|
861
851
|
|
862
852
|
static VALUE
|
863
|
-
|
853
|
+
rg_delete(int argc, VALUE *argv, VALUE self)
|
864
854
|
{
|
865
855
|
return cancellable_method(g_file_delete, argc, argv, self);
|
866
856
|
}
|
867
857
|
|
868
858
|
static VALUE
|
869
|
-
|
859
|
+
rg_trash(int argc, VALUE *argv, VALUE self)
|
870
860
|
{
|
871
861
|
return cancellable_method(g_file_trash, argc, argv, self);
|
872
862
|
}
|
@@ -945,13 +935,13 @@ copy_move_method(CopyMoveMethod method, int argc, VALUE *argv, VALUE self)
|
|
945
935
|
}
|
946
936
|
|
947
937
|
static VALUE
|
948
|
-
|
938
|
+
rg_copy(int argc, VALUE *argv, VALUE self)
|
949
939
|
{
|
950
940
|
return copy_move_method(g_file_copy, argc, argv, self);
|
951
941
|
}
|
952
942
|
|
953
943
|
static VALUE
|
954
|
-
|
944
|
+
rg_copy_async(int argc, VALUE *argv, VALUE self)
|
955
945
|
{
|
956
946
|
VALUE rbdestination, rbflags, rbio_priority, rbcancellable, block;
|
957
947
|
GFile *destination;
|
@@ -995,31 +985,31 @@ boolean_finish_method(BooleanFinishMethod method, VALUE self, VALUE result)
|
|
995
985
|
}
|
996
986
|
|
997
987
|
static VALUE
|
998
|
-
|
988
|
+
rg_copy_finish(VALUE self, VALUE result)
|
999
989
|
{
|
1000
990
|
return boolean_finish_method(g_file_copy_finish, self, result);
|
1001
991
|
}
|
1002
992
|
|
1003
993
|
static VALUE
|
1004
|
-
|
994
|
+
rg_move(int argc, VALUE *argv, VALUE self)
|
1005
995
|
{
|
1006
996
|
return copy_move_method(g_file_move, argc, argv, self);
|
1007
997
|
}
|
1008
998
|
|
1009
999
|
static VALUE
|
1010
|
-
|
1000
|
+
rg_make_directory(int argc, VALUE *argv, VALUE self)
|
1011
1001
|
{
|
1012
1002
|
return cancellable_method(g_file_make_directory, argc, argv, self);
|
1013
1003
|
}
|
1014
1004
|
|
1015
1005
|
static VALUE
|
1016
|
-
|
1006
|
+
rg_make_directory_with_parents(int argc, VALUE *argv, VALUE self)
|
1017
1007
|
{
|
1018
1008
|
return cancellable_method(g_file_make_directory_with_parents, argc, argv, self);
|
1019
1009
|
}
|
1020
1010
|
|
1021
1011
|
static VALUE
|
1022
|
-
|
1012
|
+
rg_make_symbolic_link(int argc, VALUE *argv, VALUE self)
|
1023
1013
|
{
|
1024
1014
|
VALUE symlink_value, cancellable;
|
1025
1015
|
GError *error = NULL;
|
@@ -1055,21 +1045,21 @@ query_attributes_method(QueryAttributesMethod method,
|
|
1055
1045
|
}
|
1056
1046
|
|
1057
1047
|
static VALUE
|
1058
|
-
|
1048
|
+
rg_query_settable_attributes(int argc, VALUE *argv, VALUE self)
|
1059
1049
|
{
|
1060
1050
|
return query_attributes_method(g_file_query_settable_attributes,
|
1061
1051
|
argc, argv, self);
|
1062
1052
|
}
|
1063
1053
|
|
1064
1054
|
static VALUE
|
1065
|
-
|
1055
|
+
rg_query_writable_namespaces(int argc, VALUE *argv, VALUE self)
|
1066
1056
|
{
|
1067
1057
|
return query_attributes_method(g_file_query_writable_namespaces,
|
1068
1058
|
argc, argv, self);
|
1069
1059
|
}
|
1070
1060
|
|
1071
1061
|
static VALUE
|
1072
|
-
|
1062
|
+
rg_set_attribute(int argc, VALUE *argv, VALUE self)
|
1073
1063
|
{
|
1074
1064
|
VALUE rbattribute, rbtype, rbvalue, rbflags, rbcancellable;
|
1075
1065
|
const char *attribute;
|
@@ -1143,7 +1133,7 @@ file_set_attribute(int argc, VALUE *argv, VALUE self)
|
|
1143
1133
|
}
|
1144
1134
|
|
1145
1135
|
static VALUE
|
1146
|
-
|
1136
|
+
rg_set_attributes_from_info(int argc, VALUE *argv, VALUE self)
|
1147
1137
|
{
|
1148
1138
|
VALUE info, flags, cancellable;
|
1149
1139
|
GError *error = NULL;
|
@@ -1160,7 +1150,7 @@ file_set_attributes_from_info(int argc, VALUE *argv, VALUE self)
|
|
1160
1150
|
}
|
1161
1151
|
|
1162
1152
|
static VALUE
|
1163
|
-
|
1153
|
+
rg_set_attributes_async(int argc, VALUE *argv, VALUE self)
|
1164
1154
|
{
|
1165
1155
|
VALUE rbinfo, rbflags, rbio_priority, rbcancellable, block;
|
1166
1156
|
GFileInfo *info;
|
@@ -1186,7 +1176,7 @@ file_set_attributes_async(int argc, VALUE *argv, VALUE self)
|
|
1186
1176
|
}
|
1187
1177
|
|
1188
1178
|
static VALUE
|
1189
|
-
|
1179
|
+
rg_set_attributes_finish(VALUE self, VALUE result)
|
1190
1180
|
{
|
1191
1181
|
GFileInfo *info;
|
1192
1182
|
GError *error = NULL;
|
@@ -1201,7 +1191,7 @@ file_set_attributes_finish(VALUE self, VALUE result)
|
|
1201
1191
|
}
|
1202
1192
|
|
1203
1193
|
static VALUE
|
1204
|
-
|
1194
|
+
rg_set_attribute_string(int argc, VALUE *argv, VALUE self)
|
1205
1195
|
{
|
1206
1196
|
VALUE attribute, value, flags, cancellable;
|
1207
1197
|
GError *error = NULL;
|
@@ -1219,7 +1209,7 @@ file_set_attribute_string(int argc, VALUE *argv, VALUE self)
|
|
1219
1209
|
}
|
1220
1210
|
|
1221
1211
|
static VALUE
|
1222
|
-
|
1212
|
+
rg_set_attribute_byte_string(int argc, VALUE *argv, VALUE self)
|
1223
1213
|
{
|
1224
1214
|
VALUE attribute, value, flags, cancellable;
|
1225
1215
|
GError *error = NULL;
|
@@ -1237,7 +1227,7 @@ file_set_attribute_byte_string(int argc, VALUE *argv, VALUE self)
|
|
1237
1227
|
}
|
1238
1228
|
|
1239
1229
|
static VALUE
|
1240
|
-
|
1230
|
+
rg_set_attribute_uint32(int argc, VALUE *argv, VALUE self)
|
1241
1231
|
{
|
1242
1232
|
VALUE attribute, value, flags, cancellable;
|
1243
1233
|
GError *error = NULL;
|
@@ -1255,7 +1245,7 @@ file_set_attribute_uint32(int argc, VALUE *argv, VALUE self)
|
|
1255
1245
|
}
|
1256
1246
|
|
1257
1247
|
static VALUE
|
1258
|
-
|
1248
|
+
rg_set_attribute_int32(int argc, VALUE *argv, VALUE self)
|
1259
1249
|
{
|
1260
1250
|
VALUE attribute, value, flags, cancellable;
|
1261
1251
|
GError *error = NULL;
|
@@ -1273,7 +1263,7 @@ file_set_attribute_int32(int argc, VALUE *argv, VALUE self)
|
|
1273
1263
|
}
|
1274
1264
|
|
1275
1265
|
static VALUE
|
1276
|
-
|
1266
|
+
rg_set_attribute_uint64(int argc, VALUE *argv, VALUE self)
|
1277
1267
|
{
|
1278
1268
|
VALUE attribute, value, flags, cancellable;
|
1279
1269
|
GError *error = NULL;
|
@@ -1291,7 +1281,7 @@ file_set_attribute_uint64(int argc, VALUE *argv, VALUE self)
|
|
1291
1281
|
}
|
1292
1282
|
|
1293
1283
|
static VALUE
|
1294
|
-
|
1284
|
+
rg_set_attribute_int64(int argc, VALUE *argv, VALUE self)
|
1295
1285
|
{
|
1296
1286
|
VALUE attribute, value, flags, cancellable;
|
1297
1287
|
GError *error = NULL;
|
@@ -1339,13 +1329,13 @@ mount_method(MountMethod method, int argc, VALUE *argv, VALUE self)
|
|
1339
1329
|
}
|
1340
1330
|
|
1341
1331
|
static VALUE
|
1342
|
-
|
1332
|
+
rg_mount_mountable(int argc, VALUE *argv, VALUE self)
|
1343
1333
|
{
|
1344
1334
|
return mount_method(g_file_mount_mountable, argc, argv, self);
|
1345
1335
|
}
|
1346
1336
|
|
1347
1337
|
static VALUE
|
1348
|
-
|
1338
|
+
rg_mount_mountable_finish(VALUE self, VALUE result)
|
1349
1339
|
{
|
1350
1340
|
GError *error = NULL;
|
1351
1341
|
GFile *file;
|
@@ -1391,33 +1381,33 @@ unmount_eject_stop_mountable_method(UnmountEjectStopMountableMethod method,
|
|
1391
1381
|
}
|
1392
1382
|
|
1393
1383
|
static VALUE
|
1394
|
-
|
1384
|
+
rg_unmount_mountable_with_operation(int argc, VALUE *argv, VALUE self)
|
1395
1385
|
{
|
1396
1386
|
return unmount_eject_stop_mountable_method(g_file_unmount_mountable_with_operation,
|
1397
1387
|
argc, argv, self);
|
1398
1388
|
}
|
1399
1389
|
|
1400
1390
|
static VALUE
|
1401
|
-
|
1391
|
+
rg_unmount_mountable_with_operation_finish(VALUE self, VALUE result)
|
1402
1392
|
{
|
1403
1393
|
return boolean_finish_method(g_file_unmount_mountable_with_operation_finish, self, result);
|
1404
1394
|
}
|
1405
1395
|
|
1406
1396
|
static VALUE
|
1407
|
-
|
1397
|
+
rg_eject_mountable_with_operation(int argc, VALUE *argv, VALUE self)
|
1408
1398
|
{
|
1409
1399
|
return unmount_eject_stop_mountable_method(g_file_eject_mountable_with_operation,
|
1410
1400
|
argc, argv, self);
|
1411
1401
|
}
|
1412
1402
|
|
1413
1403
|
static VALUE
|
1414
|
-
|
1404
|
+
rg_eject_mountable_with_operation_finish(VALUE self, VALUE result)
|
1415
1405
|
{
|
1416
1406
|
return boolean_finish_method(g_file_eject_mountable_with_operation_finish, self, result);
|
1417
1407
|
}
|
1418
1408
|
|
1419
1409
|
static VALUE
|
1420
|
-
|
1410
|
+
rg_start_mountable(int argc, VALUE *argv, VALUE self)
|
1421
1411
|
{
|
1422
1412
|
VALUE rbflags, rbstart_operation, rbcancellable, block;
|
1423
1413
|
GDriveStartFlags flags;
|
@@ -1440,20 +1430,20 @@ file_start_mountable(int argc, VALUE *argv, VALUE self)
|
|
1440
1430
|
}
|
1441
1431
|
|
1442
1432
|
static VALUE
|
1443
|
-
|
1433
|
+
rg_start_mountable_finish(VALUE self, VALUE result)
|
1444
1434
|
{
|
1445
1435
|
return boolean_finish_method(g_file_start_mountable_finish, self, result);
|
1446
1436
|
}
|
1447
1437
|
|
1448
1438
|
static VALUE
|
1449
|
-
|
1439
|
+
rg_stop_mountable(int argc, VALUE *argv, VALUE self)
|
1450
1440
|
{
|
1451
1441
|
return unmount_eject_stop_mountable_method(g_file_stop_mountable,
|
1452
1442
|
argc, argv, self);
|
1453
1443
|
}
|
1454
1444
|
|
1455
1445
|
static VALUE
|
1456
|
-
|
1446
|
+
rg_stop_mountable_finish(VALUE self, VALUE result)
|
1457
1447
|
{
|
1458
1448
|
return boolean_finish_method(g_file_stop_mountable_finish, self, result);
|
1459
1449
|
}
|
@@ -1478,25 +1468,25 @@ cancellable_async_method(CancellableAsyncMethod method, int argc, VALUE *argv, V
|
|
1478
1468
|
}
|
1479
1469
|
|
1480
1470
|
static VALUE
|
1481
|
-
|
1471
|
+
rg_poll_mountable(int argc, VALUE *argv, VALUE self)
|
1482
1472
|
{
|
1483
1473
|
return cancellable_async_method(g_file_poll_mountable, argc, argv, self);
|
1484
1474
|
}
|
1485
1475
|
|
1486
1476
|
static VALUE
|
1487
|
-
|
1477
|
+
rg_poll_mountable_finish(VALUE self, VALUE result)
|
1488
1478
|
{
|
1489
1479
|
return boolean_finish_method(g_file_poll_mountable_finish, self, result);
|
1490
1480
|
}
|
1491
1481
|
|
1492
1482
|
static VALUE
|
1493
|
-
|
1483
|
+
rg_mount_enclosing_volume(int argc, VALUE *argv, VALUE self)
|
1494
1484
|
{
|
1495
1485
|
return mount_method(g_file_mount_enclosing_volume, argc, argv, self);
|
1496
1486
|
}
|
1497
1487
|
|
1498
1488
|
static VALUE
|
1499
|
-
|
1489
|
+
rg_mount_enclosing_volume_finish(VALUE self, VALUE result)
|
1500
1490
|
{
|
1501
1491
|
return boolean_finish_method(g_file_mount_enclosing_volume_finish, self, result);
|
1502
1492
|
}
|
@@ -1525,25 +1515,25 @@ monitor_method(MonitorMethod method, int argc, VALUE *argv, VALUE self)
|
|
1525
1515
|
}
|
1526
1516
|
|
1527
1517
|
static VALUE
|
1528
|
-
|
1518
|
+
rg_monitor_directory(int argc, VALUE *argv, VALUE self)
|
1529
1519
|
{
|
1530
1520
|
return monitor_method(g_file_monitor_directory, argc, argv, self);
|
1531
1521
|
}
|
1532
1522
|
|
1533
1523
|
static VALUE
|
1534
|
-
|
1524
|
+
rg_monitor_file(int argc, VALUE *argv, VALUE self)
|
1535
1525
|
{
|
1536
1526
|
return monitor_method(g_file_monitor_file, argc, argv, self);
|
1537
1527
|
}
|
1538
1528
|
|
1539
1529
|
static VALUE
|
1540
|
-
|
1530
|
+
rg_monitor(int argc, VALUE *argv, VALUE self)
|
1541
1531
|
{
|
1542
1532
|
return monitor_method(g_file_monitor, argc, argv, self);
|
1543
1533
|
}
|
1544
1534
|
|
1545
1535
|
static VALUE
|
1546
|
-
|
1536
|
+
rg_load_contents(int argc, VALUE *argv, VALUE self)
|
1547
1537
|
{
|
1548
1538
|
VALUE cancellable;
|
1549
1539
|
char *contents;
|
@@ -1565,13 +1555,13 @@ file_load_contents(int argc, VALUE *argv, VALUE self)
|
|
1565
1555
|
}
|
1566
1556
|
|
1567
1557
|
static VALUE
|
1568
|
-
|
1558
|
+
rg_load_contents_async(int argc, VALUE *argv, VALUE self)
|
1569
1559
|
{
|
1570
1560
|
return cancellable_async_method(g_file_load_contents_async, argc, argv, self);
|
1571
1561
|
}
|
1572
1562
|
|
1573
1563
|
static VALUE
|
1574
|
-
|
1564
|
+
rg_load_contents_finish(VALUE self, VALUE result)
|
1575
1565
|
{
|
1576
1566
|
char *contents;
|
1577
1567
|
gsize length;
|
@@ -1633,7 +1623,7 @@ load_partial_contents_async_read_more_callback(const char *file_contents,
|
|
1633
1623
|
}
|
1634
1624
|
|
1635
1625
|
static VALUE
|
1636
|
-
|
1626
|
+
rg_load_partial_contents_async(int argc, VALUE *argv, VALUE self)
|
1637
1627
|
{
|
1638
1628
|
VALUE rbcancellable, rbuse_read_more_callback, block;
|
1639
1629
|
GCancellable *cancellable;
|
@@ -1656,7 +1646,7 @@ file_load_partial_contents_async(int argc, VALUE *argv, VALUE self)
|
|
1656
1646
|
}
|
1657
1647
|
|
1658
1648
|
static VALUE
|
1659
|
-
|
1649
|
+
rg_load_partial_contents_finish(VALUE self, VALUE result)
|
1660
1650
|
{
|
1661
1651
|
char *contents;
|
1662
1652
|
gsize length;
|
@@ -1676,7 +1666,7 @@ file_load_partial_contents_finish(VALUE self, VALUE result)
|
|
1676
1666
|
}
|
1677
1667
|
|
1678
1668
|
static VALUE
|
1679
|
-
|
1669
|
+
rg_replace_contents(int argc, VALUE *argv, VALUE self)
|
1680
1670
|
{
|
1681
1671
|
VALUE rbcontents, etag, make_backup, flags, cancellable;
|
1682
1672
|
const char *contents;
|
@@ -1700,7 +1690,7 @@ file_replace_contents(int argc, VALUE *argv, VALUE self)
|
|
1700
1690
|
}
|
1701
1691
|
|
1702
1692
|
static VALUE
|
1703
|
-
|
1693
|
+
rg_replace_contents_async(int argc, VALUE *argv, VALUE self)
|
1704
1694
|
{
|
1705
1695
|
VALUE rbcontents, rbetag, rbmake_backup, rbflags, rbcancellable, block;
|
1706
1696
|
const char *contents;
|
@@ -1732,7 +1722,7 @@ file_replace_contents_async(int argc, VALUE *argv, VALUE self)
|
|
1732
1722
|
}
|
1733
1723
|
|
1734
1724
|
static VALUE
|
1735
|
-
|
1725
|
+
rg_replace_contents_finish(VALUE self, VALUE result)
|
1736
1726
|
{
|
1737
1727
|
char *new_etag;
|
1738
1728
|
GError *error = NULL;
|
@@ -1747,7 +1737,7 @@ file_replace_contents_finish(VALUE self, VALUE result)
|
|
1747
1737
|
}
|
1748
1738
|
|
1749
1739
|
static VALUE
|
1750
|
-
|
1740
|
+
rg_copy_attributes(int argc, VALUE *argv, VALUE self)
|
1751
1741
|
{
|
1752
1742
|
VALUE destination, flags, cancellable;
|
1753
1743
|
GError *error = NULL;
|
@@ -1786,7 +1776,7 @@ file_io_stream_close(VALUE data)
|
|
1786
1776
|
}
|
1787
1777
|
|
1788
1778
|
static VALUE
|
1789
|
-
|
1779
|
+
rg_create_readwrite(int argc, VALUE *argv, VALUE self)
|
1790
1780
|
{
|
1791
1781
|
VALUE flags, cancellable;
|
1792
1782
|
struct file_io_stream_close_data data;
|
@@ -1809,7 +1799,7 @@ file_create_readwrite(int argc, VALUE *argv, VALUE self)
|
|
1809
1799
|
}
|
1810
1800
|
|
1811
1801
|
static VALUE
|
1812
|
-
|
1802
|
+
rg_create_readwrite_async(int argc, VALUE *argv, VALUE self)
|
1813
1803
|
{
|
1814
1804
|
return create_async_method(g_file_create_readwrite_async, argc, argv, self);
|
1815
1805
|
}
|
@@ -1829,13 +1819,13 @@ readwrite_finish_method(ReadwriteFinishMethod method, VALUE self, VALUE result)
|
|
1829
1819
|
}
|
1830
1820
|
|
1831
1821
|
static VALUE
|
1832
|
-
|
1822
|
+
rg_create_readwrite_finish(VALUE self, VALUE result)
|
1833
1823
|
{
|
1834
1824
|
return readwrite_finish_method(g_file_create_readwrite_finish, self, result);
|
1835
1825
|
}
|
1836
1826
|
|
1837
1827
|
static VALUE
|
1838
|
-
|
1828
|
+
rg_open_readwrite(int argc, VALUE *argv, VALUE self)
|
1839
1829
|
{
|
1840
1830
|
VALUE cancellable;
|
1841
1831
|
struct file_io_stream_close_data data;
|
@@ -1857,7 +1847,7 @@ file_open_readwrite(int argc, VALUE *argv, VALUE self)
|
|
1857
1847
|
}
|
1858
1848
|
|
1859
1849
|
static VALUE
|
1860
|
-
|
1850
|
+
rg_open_readwrite_async(int argc, VALUE *argv, VALUE self)
|
1861
1851
|
{
|
1862
1852
|
VALUE rbio_priority, rbcancellable, block;
|
1863
1853
|
int io_priority;
|
@@ -1874,13 +1864,13 @@ file_open_readwrite_async(int argc, VALUE *argv, VALUE self)
|
|
1874
1864
|
}
|
1875
1865
|
|
1876
1866
|
static VALUE
|
1877
|
-
|
1867
|
+
rg_open_readwrite_finish(VALUE self, VALUE result)
|
1878
1868
|
{
|
1879
1869
|
return readwrite_finish_method(g_file_open_readwrite_finish, self, result);
|
1880
1870
|
}
|
1881
1871
|
|
1882
1872
|
static VALUE
|
1883
|
-
|
1873
|
+
rg_replace_readwrite(int argc, VALUE *argv, VALUE self)
|
1884
1874
|
{
|
1885
1875
|
VALUE etag, make_backup, flags, cancellable;
|
1886
1876
|
struct file_io_stream_close_data data;
|
@@ -1905,153 +1895,153 @@ file_replace_readwrite(int argc, VALUE *argv, VALUE self)
|
|
1905
1895
|
}
|
1906
1896
|
|
1907
1897
|
static VALUE
|
1908
|
-
|
1898
|
+
rg_replace_readwrite_async(int argc, VALUE *argv, VALUE self)
|
1909
1899
|
{
|
1910
1900
|
return replace_async_method(g_file_replace_readwrite_async, argc, argv, self);
|
1911
1901
|
}
|
1912
1902
|
|
1913
1903
|
static VALUE
|
1914
|
-
|
1904
|
+
rg_replace_readwrite_finish(VALUE self, VALUE result)
|
1915
1905
|
{
|
1916
1906
|
return readwrite_finish_method(g_file_replace_readwrite_finish, self, result);
|
1917
1907
|
}
|
1918
1908
|
|
1919
1909
|
static VALUE
|
1920
|
-
|
1910
|
+
rg_supports_thread_contexts_p(VALUE self)
|
1921
1911
|
{
|
1922
1912
|
return CBOOL2RVAL(g_file_supports_thread_contexts(_SELF(self)));
|
1923
1913
|
}
|
1924
1914
|
|
1925
1915
|
void
|
1926
|
-
Init_gfile(VALUE
|
1927
|
-
{
|
1928
|
-
VALUE
|
1929
|
-
|
1930
|
-
G_DEF_CLASS(G_TYPE_FILE_QUERY_INFO_FLAGS, "QueryInfoFlags",
|
1931
|
-
G_DEF_CONSTANTS(
|
1932
|
-
|
1933
|
-
G_DEF_CLASS(G_TYPE_FILE_CREATE_FLAGS, "CreateFlags",
|
1934
|
-
G_DEF_CONSTANTS(
|
1935
|
-
|
1936
|
-
G_DEF_CLASS(G_TYPE_FILE_COPY_FLAGS, "CopyFlags",
|
1937
|
-
G_DEF_CONSTANTS(
|
1938
|
-
|
1939
|
-
G_DEF_CLASS(G_TYPE_FILE_MONITOR_FLAGS, "MonitorFlags",
|
1940
|
-
G_DEF_CONSTANTS(
|
1941
|
-
|
1942
|
-
G_DEF_CLASS(G_TYPE_FILE_TYPE, "Type",
|
1943
|
-
G_DEF_CONSTANTS(
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
G_DEF_SETTER(
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
G_DEF_SETTER(
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
1916
|
+
Init_gfile(VALUE mGio)
|
1917
|
+
{
|
1918
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(G_TYPE_FILE, "File", mGio);
|
1919
|
+
|
1920
|
+
G_DEF_CLASS(G_TYPE_FILE_QUERY_INFO_FLAGS, "QueryInfoFlags", RG_TARGET_NAMESPACE);
|
1921
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_FILE_QUERY_INFO_FLAGS, "G_FILE_");
|
1922
|
+
|
1923
|
+
G_DEF_CLASS(G_TYPE_FILE_CREATE_FLAGS, "CreateFlags", RG_TARGET_NAMESPACE);
|
1924
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_FILE_CREATE_FLAGS, "G_FILE_");
|
1925
|
+
|
1926
|
+
G_DEF_CLASS(G_TYPE_FILE_COPY_FLAGS, "CopyFlags", RG_TARGET_NAMESPACE);
|
1927
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_FILE_COPY_FLAGS, "G_FILE_");
|
1928
|
+
|
1929
|
+
G_DEF_CLASS(G_TYPE_FILE_MONITOR_FLAGS, "MonitorFlags", RG_TARGET_NAMESPACE);
|
1930
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_FILE_MONITOR_FLAGS, "G_FILE_");
|
1931
|
+
|
1932
|
+
G_DEF_CLASS(G_TYPE_FILE_TYPE, "Type", RG_TARGET_NAMESPACE);
|
1933
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, G_TYPE_FILE_TYPE, "G_FILE_");
|
1934
|
+
|
1935
|
+
RG_DEF_SMETHOD(new_for_path, 1);
|
1936
|
+
RG_DEF_SMETHOD(new_for_uri, 1);
|
1937
|
+
RG_DEF_SMETHOD(new_for_commandline_arg, 1);
|
1938
|
+
RG_DEF_SMETHOD(parse_name, 1);
|
1939
|
+
|
1940
|
+
RG_DEF_METHOD(dup, 0);
|
1941
|
+
RG_DEF_METHOD(hash, 0);
|
1942
|
+
RG_DEF_METHOD_OPERATOR("==", file_equal, 1);
|
1943
|
+
RG_DEF_METHOD(basename, 0);
|
1944
|
+
RG_DEF_METHOD(path, 0);
|
1945
|
+
RG_DEF_METHOD(uri, 0);
|
1946
|
+
RG_DEF_METHOD(parse_name, 0);
|
1947
|
+
RG_DEF_METHOD(parent, 0);
|
1948
|
+
RG_DEF_METHOD_P(has_parent, -1);
|
1949
|
+
RG_DEF_METHOD(get_child, 1);
|
1950
|
+
RG_DEF_METHOD(get_child_for_display_name, 1);
|
1951
|
+
RG_DEF_METHOD_P(has_prefix, 1);
|
1952
|
+
RG_DEF_METHOD(get_relative_path, 1);
|
1953
|
+
RG_DEF_METHOD(resolve_relative_path, 1);
|
1954
|
+
RG_DEF_METHOD_P(native, 0);
|
1955
|
+
RG_DEF_METHOD_P(has_uri_scheme, 1);
|
1956
|
+
RG_DEF_METHOD(uri_scheme, 0);
|
1957
|
+
RG_DEF_METHOD(read, -1);
|
1958
|
+
RG_DEF_METHOD(read_async, -1);
|
1959
|
+
RG_DEF_METHOD(read_finish, 1);
|
1960
|
+
RG_DEF_METHOD(append_to, -1);
|
1961
|
+
RG_DEF_METHOD(create, -1);
|
1962
|
+
RG_DEF_METHOD(replace, -1);
|
1963
|
+
RG_DEF_METHOD(append_to_async, -1);
|
1964
|
+
RG_DEF_METHOD(append_to_finish, 1);
|
1965
|
+
RG_DEF_METHOD(create_async, -1);
|
1966
|
+
RG_DEF_METHOD(create_finish, 1);
|
1967
|
+
RG_DEF_METHOD(replace_async, -1);
|
1968
|
+
RG_DEF_METHOD(replace_finish, 1);
|
1969
|
+
RG_DEF_METHOD(query_info, -1);
|
1970
|
+
RG_DEF_METHOD(query_info_async, -1);
|
1971
|
+
RG_DEF_METHOD(query_info_finish, 1);
|
1972
|
+
RG_DEF_METHOD_P(query_exists, -1);
|
1973
|
+
RG_DEF_ALIAS("exists?", "query_exists?");
|
1974
|
+
RG_DEF_METHOD(query_file_type, -1);
|
1975
|
+
RG_DEF_METHOD(query_filesystem_info, -1);
|
1976
|
+
RG_DEF_METHOD(query_filesystem_info_async, -1);
|
1977
|
+
RG_DEF_METHOD(query_filesystem_info_finish, 1);
|
1978
|
+
RG_DEF_METHOD(query_default_handler, -1);
|
1979
|
+
RG_DEF_METHOD(find_enclosing_mount, -1);
|
1980
|
+
RG_DEF_METHOD(find_enclosing_mount_async, -1);
|
1981
|
+
RG_DEF_METHOD(find_enclosing_mount_finish, 1);
|
1982
|
+
RG_DEF_METHOD(enumerate_children, -1);
|
1983
|
+
RG_DEF_METHOD(enumerate_children_async, -1);
|
1984
|
+
RG_DEF_METHOD(enumerate_children_finish, 1);
|
1985
|
+
RG_DEF_METHOD(set_display_name, -1);
|
1986
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "display_name");
|
1987
|
+
RG_DEF_METHOD(set_display_name_async, -1);
|
1988
|
+
RG_DEF_METHOD(set_display_name_finish, 1);
|
1989
|
+
RG_DEF_METHOD(delete, -1);
|
1990
|
+
RG_DEF_METHOD(trash, -1);
|
1991
|
+
RG_DEF_METHOD(copy, -1);
|
1992
|
+
RG_DEF_METHOD(copy_async, -1);
|
1993
|
+
RG_DEF_METHOD(copy_finish, 1);
|
1994
|
+
RG_DEF_METHOD(move, -1);
|
1995
|
+
RG_DEF_METHOD(make_directory, -1);
|
1996
|
+
RG_DEF_METHOD(make_directory_with_parents, -1);
|
1997
|
+
RG_DEF_METHOD(make_symbolic_link, -1);
|
1998
|
+
RG_DEF_METHOD(query_settable_attributes, -1);
|
1999
|
+
RG_DEF_METHOD(query_writable_namespaces, -1);
|
2000
|
+
RG_DEF_METHOD(set_attribute, -1);
|
2001
|
+
RG_DEF_METHOD(set_attributes_from_info, -1);
|
2002
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "attributes_from_info");
|
2003
|
+
RG_DEF_METHOD(set_attributes_async, -1);
|
2004
|
+
RG_DEF_METHOD(set_attributes_finish, 1);
|
2005
|
+
RG_DEF_METHOD(set_attribute_string, -1);
|
2006
|
+
RG_DEF_METHOD(set_attribute_byte_string, -1);
|
2007
|
+
RG_DEF_METHOD(set_attribute_uint32, -1);
|
2008
|
+
RG_DEF_METHOD(set_attribute_int32, -1);
|
2009
|
+
RG_DEF_METHOD(set_attribute_uint64, -1);
|
2010
|
+
RG_DEF_METHOD(set_attribute_int64, -1);
|
2011
|
+
RG_DEF_METHOD(mount_mountable, -1);
|
2012
|
+
RG_DEF_METHOD(mount_mountable_finish, 1);
|
2013
|
+
RG_DEF_METHOD(unmount_mountable_with_operation, -1);
|
2014
|
+
RG_DEF_METHOD(unmount_mountable_with_operation_finish, 1);
|
2015
|
+
RG_DEF_METHOD(eject_mountable_with_operation, -1);
|
2016
|
+
RG_DEF_METHOD(eject_mountable_with_operation_finish, 1);
|
2017
|
+
RG_DEF_METHOD(start_mountable, -1);
|
2018
|
+
RG_DEF_METHOD(start_mountable_finish, 1);
|
2019
|
+
RG_DEF_METHOD(stop_mountable, -1);
|
2020
|
+
RG_DEF_METHOD(stop_mountable_finish, 1);
|
2021
|
+
RG_DEF_METHOD(poll_mountable, -1);
|
2022
|
+
RG_DEF_METHOD(poll_mountable_finish, 1);
|
2023
|
+
RG_DEF_METHOD(mount_enclosing_volume, -1);
|
2024
|
+
RG_DEF_METHOD(mount_enclosing_volume_finish, 1);
|
2025
|
+
RG_DEF_METHOD(monitor_directory, -1);
|
2026
|
+
RG_DEF_METHOD(monitor_file, -1);
|
2027
|
+
RG_DEF_METHOD(monitor, -1);
|
2028
|
+
RG_DEF_METHOD(load_contents, -1);
|
2029
|
+
RG_DEF_METHOD(load_contents_async, -1);
|
2030
|
+
RG_DEF_METHOD(load_contents_finish, 1);
|
2031
|
+
RG_DEF_METHOD(load_partial_contents_async, -1);
|
2032
|
+
RG_DEF_METHOD(load_partial_contents_finish, 1);
|
2033
|
+
RG_DEF_METHOD(replace_contents, -1);
|
2034
|
+
RG_DEF_METHOD(replace_contents_async, -1);
|
2035
|
+
RG_DEF_METHOD(replace_contents_finish, 1);
|
2036
|
+
RG_DEF_METHOD(copy_attributes, -1);
|
2037
|
+
RG_DEF_METHOD(create_readwrite, -1);
|
2038
|
+
RG_DEF_METHOD(create_readwrite_async, -1);
|
2039
|
+
RG_DEF_METHOD(create_readwrite_finish, 1);
|
2040
|
+
RG_DEF_METHOD(open_readwrite, -1);
|
2041
|
+
RG_DEF_METHOD(open_readwrite_async, -1);
|
2042
|
+
RG_DEF_METHOD(open_readwrite_finish, 1);
|
2043
|
+
RG_DEF_METHOD(replace_readwrite, -1);
|
2044
|
+
RG_DEF_METHOD(replace_readwrite_async, -1);
|
2045
|
+
RG_DEF_METHOD(replace_readwrite_finish, 1);
|
2046
|
+
RG_DEF_METHOD_P(supports_thread_contexts, 0);
|
2057
2047
|
}
|