gio2 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. data/ext/gio2/extconf.rb +4 -42
  2. data/ext/gio2/gio2.c +18 -117
  3. data/ext/gio2/gio2.h +20 -339
  4. data/ext/gio2/rbgio.c +132 -0
  5. data/ext/gio2/rbgio2.h +156 -0
  6. data/ext/gio2/rbgio2conversions.h +154 -0
  7. data/ext/gio2/rbgio2private.h +147 -0
  8. data/ext/gio2/{gappinfo.c → rbgioappinfo.c} +81 -82
  9. data/ext/gio2/rbgioapplaunchcontext.c +81 -0
  10. data/ext/gio2/{gasyncinitable.c → rbgioasyncinitable.c} +33 -30
  11. data/ext/gio2/rbgioasyncresult.c +41 -0
  12. data/ext/gio2/{gbufferedinputstream.c → rbgiobufferedinputstream.c} +37 -35
  13. data/ext/gio2/rbgiobufferedoutputstream.c +50 -0
  14. data/ext/gio2/rbgiocancellable.c +180 -0
  15. data/ext/gio2/rbgiocharsetconverter.c +57 -0
  16. data/ext/gio2/rbgiocontenttype.c +131 -0
  17. data/ext/gio2/{gconverter.c → rbgioconverter.c} +24 -28
  18. data/ext/gio2/rbgioconverterinputstream.c +43 -0
  19. data/ext/gio2/rbgioconverteroutputstream.c +43 -0
  20. data/ext/gio2/{gdatainputstream.c → rbgiodatainputstream.c} +49 -58
  21. data/ext/gio2/{gdataoutputstream.c → rbgiodataoutputstream.c} +39 -37
  22. data/ext/gio2/rbgiodesktopappinfo.c +87 -0
  23. data/ext/gio2/{gdrive.c → rbgiodrive.c} +75 -76
  24. data/ext/gio2/rbgioemblem.c +52 -0
  25. data/ext/gio2/rbgioemblemedicon.c +65 -0
  26. data/ext/gio2/{gfile.c → rbgiofile.c} +256 -266
  27. data/ext/gio2/rbgiofileattribute.c +114 -0
  28. data/ext/gio2/rbgiofileattributeinfo.c +86 -0
  29. data/ext/gio2/rbgiofileattributeinfolist.c +106 -0
  30. data/ext/gio2/rbgiofileattributematcher.c +93 -0
  31. data/ext/gio2/rbgiofiledescriptorbased.c +45 -0
  32. data/ext/gio2/{gfileenumerator.c → rbgiofileenumerator.c} +42 -40
  33. data/ext/gio2/rbgiofileicon.c +41 -0
  34. data/ext/gio2/{gfileinfo.c → rbgiofileinfo.c} +159 -163
  35. data/ext/gio2/{gfileinputstream.c → rbgiofileinputstream.c} +26 -25
  36. data/ext/gio2/{gfileiostream.c → rbgiofileiostream.c} +28 -26
  37. data/ext/gio2/rbgiofilemonitor.c +46 -0
  38. data/ext/gio2/rbgiofilenamecompleter.c +74 -0
  39. data/ext/gio2/{gfileoutputstream.c → rbgiofileoutputstream.c} +28 -26
  40. data/ext/gio2/rbgiofilterinputstream.c +28 -0
  41. data/ext/gio2/rbgiofilteroutputstream.c +28 -0
  42. data/ext/gio2/rbgioicon.c +69 -0
  43. data/ext/gio2/rbgioinetaddress.c +118 -0
  44. data/ext/gio2/rbgioinetsocketaddress.c +41 -0
  45. data/ext/gio2/{ginitable.c → rbgioinitable.c} +29 -25
  46. data/ext/gio2/{ginputstream.c → rbgioinputstream.c} +50 -48
  47. data/ext/gio2/rbgioio.c +73 -0
  48. data/ext/gio2/rbgioiomodule.c +45 -0
  49. data/ext/gio2/rbgioiomodules.c +47 -0
  50. data/ext/gio2/rbgioioscheduler.c +102 -0
  51. data/ext/gio2/rbgioioschedulerjob.c +121 -0
  52. data/ext/gio2/rbgioiostream.c +108 -0
  53. data/ext/gio2/{gloadableicon.c → rbgioloadableicon.c} +26 -24
  54. data/ext/gio2/rbgiomemoryinputstream.c +67 -0
  55. data/ext/gio2/rbgiomemoryoutputstream.c +44 -0
  56. data/ext/gio2/{gmount.c → rbgiomount.c} +70 -68
  57. data/ext/gio2/rbgiomountoperation.c +53 -0
  58. data/ext/gio2/rbgionetworkaddress.c +59 -0
  59. data/ext/gio2/rbgionetworkservice.c +45 -0
  60. data/ext/gio2/{goutputstream.c → rbgiooutputstream.c} +61 -62
  61. data/ext/gio2/{gresolver.c → rbgioresolver.c} +50 -48
  62. data/ext/gio2/rbgioseekable.c +91 -0
  63. data/ext/gio2/rbgiosimpleasyncresult.c +155 -0
  64. data/ext/gio2/{gsocket.c → rbgiosocket.c} +74 -76
  65. data/ext/gio2/rbgiosocketaddress.c +34 -0
  66. data/ext/gio2/rbgiosocketaddressenumerator.c +83 -0
  67. data/ext/gio2/{gsocketclient.c → rbgiosocketclient.c} +41 -39
  68. data/ext/gio2/rbgiosocketconnectable.c +41 -0
  69. data/ext/gio2/rbgiosocketconnection.c +66 -0
  70. data/ext/gio2/rbgiosocketconnectionfactory.c +39 -0
  71. data/ext/gio2/rbgiosocketcontrolmessage.c +82 -0
  72. data/ext/gio2/{gsocketlistener.c → rbgiosocketlistener.c} +49 -47
  73. data/ext/gio2/rbgiosocketservice.c +66 -0
  74. data/ext/gio2/rbgiosrvtarget.c +76 -0
  75. data/ext/gio2/rbgiotcpconnection.c +28 -0
  76. data/ext/gio2/rbgiothemedicon.c +83 -0
  77. data/ext/gio2/rbgiothreadedsocketservice.c +43 -0
  78. data/ext/gio2/rbgiounixconnection.c +71 -0
  79. data/ext/gio2/rbgiounixfdlist.c +115 -0
  80. data/ext/gio2/rbgiounixfdmessage.c +74 -0
  81. data/ext/gio2/rbgiounixinputstream.c +51 -0
  82. data/ext/gio2/rbgiounixmount.c +164 -0
  83. data/ext/gio2/rbgiounixmountmonitor.c +66 -0
  84. data/ext/gio2/rbgiounixmountpoint.c +136 -0
  85. data/ext/gio2/rbgiounixmountpoints.c +58 -0
  86. data/ext/gio2/rbgiounixmounts.c +58 -0
  87. data/ext/gio2/rbgiounixoutputstream.c +51 -0
  88. data/ext/gio2/rbgiounixsocketaddress.c +69 -0
  89. data/ext/gio2/rbgiovfs.c +84 -0
  90. data/ext/gio2/rbgiovolume.c +193 -0
  91. data/ext/gio2/rbgiovolumemonitor.c +77 -0
  92. data/ext/gio2/rbgiozlibcompressor.c +52 -0
  93. data/ext/gio2/rbgiozlibdecompressor.c +45 -0
  94. data/ext/gio2/util.c +57 -60
  95. data/lib/gio2/deprecated.rb +102 -0
  96. data/lib/gio2.rb +14 -12
  97. metadata +100 -88
  98. data/ChangeLog +0 -129
  99. data/ext/gio2/gapplaunchcontext.c +0 -79
  100. data/ext/gio2/gasyncresult.c +0 -39
  101. data/ext/gio2/gbufferedoutputstream.c +0 -48
  102. data/ext/gio2/gcancellable.c +0 -177
  103. data/ext/gio2/gcharsetconverter.c +0 -55
  104. data/ext/gio2/gcontenttype.c +0 -128
  105. data/ext/gio2/gconverterinputstream.c +0 -41
  106. data/ext/gio2/gconverteroutputstream.c +0 -41
  107. data/ext/gio2/gdesktopappinfo.c +0 -88
  108. data/ext/gio2/gemblem.c +0 -52
  109. data/ext/gio2/gemblemedicon.c +0 -63
  110. data/ext/gio2/gfileattribute.c +0 -111
  111. data/ext/gio2/gfileattributeinfo.c +0 -89
  112. data/ext/gio2/gfileattributeinfolist.c +0 -109
  113. data/ext/gio2/gfileattributematcher.c +0 -90
  114. data/ext/gio2/gfiledescriptorbased.c +0 -42
  115. data/ext/gio2/gfileicon.c +0 -39
  116. data/ext/gio2/gfilemonitor.c +0 -44
  117. data/ext/gio2/gfilenamecompleter.c +0 -72
  118. data/ext/gio2/gfilterinputstream.c +0 -27
  119. data/ext/gio2/gfilteroutputstream.c +0 -27
  120. data/ext/gio2/gicon.c +0 -67
  121. data/ext/gio2/ginetaddress.c +0 -116
  122. data/ext/gio2/ginetsocketaddress.c +0 -38
  123. data/ext/gio2/gioerror.c +0 -70
  124. data/ext/gio2/giomodule.c +0 -63
  125. data/ext/gio2/gioscheduler.c +0 -193
  126. data/ext/gio2/giostream.c +0 -106
  127. data/ext/gio2/gmemoryinputstream.c +0 -65
  128. data/ext/gio2/gmemoryoutputstream.c +0 -41
  129. data/ext/gio2/gmountoperation.c +0 -66
  130. data/ext/gio2/gnetworkaddress.c +0 -57
  131. data/ext/gio2/gnetworkservice.c +0 -43
  132. data/ext/gio2/gseekable.c +0 -89
  133. data/ext/gio2/gsimpleasyncresult.c +0 -153
  134. data/ext/gio2/gsocketaddress.c +0 -33
  135. data/ext/gio2/gsocketconnectable.c +0 -97
  136. data/ext/gio2/gsocketconnection.c +0 -75
  137. data/ext/gio2/gsocketcontrolmessage.c +0 -80
  138. data/ext/gio2/gsocketservice.c +0 -64
  139. data/ext/gio2/gsrvtarget.c +0 -77
  140. data/ext/gio2/gtcpconnection.c +0 -27
  141. data/ext/gio2/gthemedicon.c +0 -81
  142. data/ext/gio2/gthreadedsocketservice.c +0 -40
  143. data/ext/gio2/gunixconnection.c +0 -69
  144. data/ext/gio2/gunixfdlist.c +0 -112
  145. data/ext/gio2/gunixfdmessage.c +0 -72
  146. data/ext/gio2/gunixinputstream.c +0 -49
  147. data/ext/gio2/gunixmounts.c +0 -343
  148. data/ext/gio2/gunixoutputstream.c +0 -49
  149. data/ext/gio2/gunixsocketaddress.c +0 -67
  150. data/ext/gio2/gvfs.c +0 -82
  151. data/ext/gio2/gvolume.c +0 -191
  152. data/ext/gio2/gvolumemonitor.c +0 -75
  153. data/ext/gio2/gzlibcompressor.c +0 -50
  154. 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
- * Ruby/GIO: a Ruby binding of gio-2.0.x.
4
- * Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
5
5
  *
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.
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
- * 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.
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
- * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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 "gio2.h"
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
- file_new_for_path(G_GNUC_UNUSED VALUE self, VALUE value)
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
- file_new_for_uri(G_GNUC_UNUSED VALUE self, VALUE value)
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
- file_new_for_commandline_arg(G_GNUC_UNUSED VALUE self, VALUE value)
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
- file_parse_name(G_GNUC_UNUSED VALUE self, VALUE value)
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
- file_dup(VALUE self)
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
- file_hash(VALUE self)
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
- file_equal(VALUE self, VALUE other)
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
- file_get_basename(VALUE self)
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
- file_get_path(VALUE self)
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
- file_get_uri(VALUE self)
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
- file_get_parse_name(VALUE self)
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
- file_get_parent(VALUE self)
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
- file_has_parent(int argc, VALUE *argv, VALUE self)
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
- file_get_child(VALUE self, VALUE name)
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
- file_get_child_for_display_name(VALUE self, VALUE name)
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
- file_has_prefix(VALUE self, VALUE prefix)
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
- file_get_relative_path(VALUE self, VALUE other)
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
- file_resolve_relative_path(VALUE self, VALUE path)
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
- file_is_native(VALUE self)
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
- file_has_uri_scheme(VALUE self, VALUE scheme)
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
- file_get_uri_scheme(VALUE self)
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
- file_read(int argc, VALUE *argv, VALUE self)
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
- file_read_async(int argc, VALUE *argv, VALUE self)
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
- file_read_finish(VALUE self, VALUE result)
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
- file_append_to(int argc, VALUE *argv, VALUE self)
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
- file_create(int argc, VALUE *argv, VALUE self)
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
- file_replace(int argc, VALUE *argv, VALUE self)
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
- file_append_to_async(int argc, VALUE *argv, VALUE self)
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
- file_append_to_finish(VALUE self, VALUE result)
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
- file_create_async(int argc, VALUE *argv, VALUE self)
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
- file_create_finish(VALUE self, VALUE result)
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
- file_replace_async(int argc, VALUE *argv, VALUE self)
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
- file_replace_finish(VALUE self, VALUE result)
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
- file_query_info(int argc, VALUE *argv, VALUE self)
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
- file_query_info_async(int argc, VALUE *argv, VALUE self)
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
- file_query_info_finish(VALUE self, VALUE result)
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
- file_query_exists(int argc, VALUE *argv, VALUE self)
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
- file_query_file_type(int argc, VALUE *argv, VALUE self)
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
- file_query_filesystem_info(int argc, VALUE *argv, VALUE self)
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
- file_query_filesystem_info_async(int argc, VALUE *argv, VALUE self)
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
- file_query_filesystem_info_finish(VALUE self, VALUE result)
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
- file_query_default_handler(int argc, VALUE *argv, VALUE self)
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
- file_find_enclosing_mount(int argc, VALUE *argv, VALUE self)
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
- file_find_enclosing_mount_async(int argc, VALUE *argv, VALUE self)
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
- file_find_enclosing_mount_finish(VALUE self, VALUE result)
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
- file_enumerate_children(int argc, VALUE *argv, VALUE self)
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
- file_enumerate_children_async(int argc, VALUE *argv, VALUE self)
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
- file_enumerate_children_finish(VALUE self, VALUE result)
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
- file_set_display_name(int argc, VALUE *argv, VALUE self)
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
- file_set_display_name_async(int argc, VALUE *argv, VALUE self)
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
- file_set_display_name_finish(VALUE self, VALUE result)
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
- file_delete(int argc, VALUE *argv, VALUE self)
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
- file_trash(int argc, VALUE *argv, VALUE self)
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
- file_copy(int argc, VALUE *argv, VALUE self)
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
- file_copy_async(int argc, VALUE *argv, VALUE self)
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
- file_copy_finish(VALUE self, VALUE result)
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
- file_move(int argc, VALUE *argv, VALUE self)
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
- file_make_directory(int argc, VALUE *argv, VALUE self)
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
- file_make_directory_with_parents(int argc, VALUE *argv, VALUE self)
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
- file_make_symbolic_link(int argc, VALUE *argv, VALUE self)
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
- file_query_settable_attributes(int argc, VALUE *argv, VALUE self)
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
- file_query_writable_namespaces(int argc, VALUE *argv, VALUE self)
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
- file_set_attribute(int argc, VALUE *argv, VALUE self)
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
- file_set_attributes_from_info(int argc, VALUE *argv, VALUE self)
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
- file_set_attributes_async(int argc, VALUE *argv, VALUE self)
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
- file_set_attributes_finish(VALUE self, VALUE result)
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
- file_set_attribute_string(int argc, VALUE *argv, VALUE self)
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
- file_set_attribute_byte_string(int argc, VALUE *argv, VALUE self)
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
- file_set_attribute_uint32(int argc, VALUE *argv, VALUE self)
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
- file_set_attribute_int32(int argc, VALUE *argv, VALUE self)
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
- file_set_attribute_uint64(int argc, VALUE *argv, VALUE self)
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
- file_set_attribute_int64(int argc, VALUE *argv, VALUE self)
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
- file_mount_mountable(int argc, VALUE *argv, VALUE self)
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
- file_mount_mountable_finish(VALUE self, VALUE result)
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
- file_unmount_mountable_with_operation(int argc, VALUE *argv, VALUE self)
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
- file_unmount_mountable_with_operation_finish(VALUE self, VALUE result)
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
- file_eject_mountable_with_operation(int argc, VALUE *argv, VALUE self)
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
- file_eject_mountable_with_operation_finish(VALUE self, VALUE result)
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
- file_start_mountable(int argc, VALUE *argv, VALUE self)
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
- file_start_mountable_finish(VALUE self, VALUE result)
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
- file_stop_mountable(int argc, VALUE *argv, VALUE self)
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
- file_stop_mountable_finish(VALUE self, VALUE result)
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
- file_poll_mountable(int argc, VALUE *argv, VALUE self)
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
- file_poll_mountable_finish(VALUE self, VALUE result)
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
- file_mount_enclosing_volume(int argc, VALUE *argv, VALUE self)
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
- file_mount_enclosing_volume_finish(VALUE self, VALUE result)
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
- file_monitor_directory(int argc, VALUE *argv, VALUE self)
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
- file_monitor_file(int argc, VALUE *argv, VALUE self)
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
- file_monitor(int argc, VALUE *argv, VALUE self)
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
- file_load_contents(int argc, VALUE *argv, VALUE self)
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
- file_load_contents_async(int argc, VALUE *argv, VALUE self)
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
- file_load_contents_finish(VALUE self, VALUE result)
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
- file_load_partial_contents_async(int argc, VALUE *argv, VALUE self)
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
- file_load_partial_contents_finish(VALUE self, VALUE result)
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
- file_replace_contents(int argc, VALUE *argv, VALUE self)
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
- file_replace_contents_async(int argc, VALUE *argv, VALUE self)
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
- file_replace_contents_finish(VALUE self, VALUE result)
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
- file_copy_attributes(int argc, VALUE *argv, VALUE self)
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
- file_create_readwrite(int argc, VALUE *argv, VALUE self)
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
- file_create_readwrite_async(int argc, VALUE *argv, VALUE self)
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
- file_create_readwrite_finish(VALUE self, VALUE result)
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
- file_open_readwrite(int argc, VALUE *argv, VALUE self)
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
- file_open_readwrite_async(int argc, VALUE *argv, VALUE self)
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
- file_open_readwrite_finish(VALUE self, VALUE result)
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
- file_replace_readwrite(int argc, VALUE *argv, VALUE self)
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
- file_replace_readwrite_async(int argc, VALUE *argv, VALUE self)
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
- file_replace_readwrite_finish(VALUE self, VALUE result)
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
- file_supports_thread_contexts(VALUE self)
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 glib)
1927
- {
1928
- VALUE file = G_DEF_INTERFACE(G_TYPE_FILE, "File", glib);
1929
-
1930
- G_DEF_CLASS(G_TYPE_FILE_QUERY_INFO_FLAGS, "QueryInfoFlags", file);
1931
- G_DEF_CONSTANTS(file, G_TYPE_FILE_QUERY_INFO_FLAGS, "G_FILE_");
1932
-
1933
- G_DEF_CLASS(G_TYPE_FILE_CREATE_FLAGS, "CreateFlags", file);
1934
- G_DEF_CONSTANTS(file, G_TYPE_FILE_CREATE_FLAGS, "G_FILE_");
1935
-
1936
- G_DEF_CLASS(G_TYPE_FILE_COPY_FLAGS, "CopyFlags", file);
1937
- G_DEF_CONSTANTS(file, G_TYPE_FILE_COPY_FLAGS, "G_FILE_");
1938
-
1939
- G_DEF_CLASS(G_TYPE_FILE_MONITOR_FLAGS, "MonitorFlags", file);
1940
- G_DEF_CONSTANTS(file, G_TYPE_FILE_MONITOR_FLAGS, "G_FILE_");
1941
-
1942
- G_DEF_CLASS(G_TYPE_FILE_TYPE, "Type", file);
1943
- G_DEF_CONSTANTS(file, G_TYPE_FILE_TYPE, "G_FILE_");
1944
-
1945
- rb_define_singleton_method(file, "new_for_path", file_new_for_path, 1);
1946
- rb_define_singleton_method(file, "new_for_uri", file_new_for_uri, 1);
1947
- rb_define_singleton_method(file, "new_for_commandline_arg", file_new_for_commandline_arg, 1);
1948
- rb_define_singleton_method(file, "parse_name", file_parse_name, 1);
1949
-
1950
- rb_define_method(file, "dup", file_dup, 0);
1951
- rb_define_method(file, "hash", file_hash, 0);
1952
- rb_define_method(file, "==", file_equal, 1);
1953
- rb_define_method(file, "basename", file_get_basename, 0);
1954
- rb_define_method(file, "path", file_get_path, 0);
1955
- rb_define_method(file, "uri", file_get_uri, 0);
1956
- rb_define_method(file, "parse_name", file_get_parse_name, 0);
1957
- rb_define_method(file, "parent", file_get_parent, 0);
1958
- rb_define_method(file, "has_parent?", file_has_parent, -1);
1959
- rb_define_method(file, "get_child", file_get_child, 1);
1960
- rb_define_method(file, "get_child_for_display_name", file_get_child_for_display_name, 1);
1961
- rb_define_method(file, "has_prefix?", file_has_prefix, 1);
1962
- rb_define_method(file, "get_relative_path", file_get_relative_path, 1);
1963
- rb_define_method(file, "resolve_relative_path", file_resolve_relative_path, 1);
1964
- rb_define_method(file, "native?", file_is_native, 0);
1965
- rb_define_method(file, "has_uri_scheme?", file_has_uri_scheme, 1);
1966
- rb_define_method(file, "uri_scheme", file_get_uri_scheme, 0);
1967
- rb_define_method(file, "read", file_read, -1);
1968
- rb_define_method(file, "read_async", file_read_async, -1);
1969
- rb_define_method(file, "read_finish", file_read_finish, 1);
1970
- rb_define_method(file, "append_to", file_append_to, -1);
1971
- rb_define_method(file, "create", file_create, -1);
1972
- rb_define_method(file, "replace", file_replace, -1);
1973
- rb_define_method(file, "append_to_async", file_append_to_async, -1);
1974
- rb_define_method(file, "append_to_finish", file_append_to_finish, 1);
1975
- rb_define_method(file, "create_async", file_create_async, -1);
1976
- rb_define_method(file, "create_finish", file_create_finish, 1);
1977
- rb_define_method(file, "replace_async", file_replace_async, -1);
1978
- rb_define_method(file, "replace_finish", file_replace_finish, 1);
1979
- rb_define_method(file, "query_info", file_query_info, -1);
1980
- rb_define_method(file, "query_info_async", file_query_info_async, -1);
1981
- rb_define_method(file, "query_info_finish", file_query_info_finish, 1);
1982
- rb_define_method(file, "query_exists?", file_query_exists, -1);
1983
- rb_define_alias(file, "exists?", "query_exists?");
1984
- rb_define_method(file, "query_file_type", file_query_file_type, -1);
1985
- rb_define_method(file, "query_filesystem_info", file_query_filesystem_info, -1);
1986
- rb_define_method(file, "query_filesystem_info_async", file_query_filesystem_info_async, -1);
1987
- rb_define_method(file, "query_filesystem_info_finish", file_query_filesystem_info_finish, 1);
1988
- rb_define_method(file, "query_default_handler", file_query_default_handler, -1);
1989
- rb_define_method(file, "find_enclosing_mount", file_find_enclosing_mount, -1);
1990
- rb_define_method(file, "find_enclosing_mount_async", file_find_enclosing_mount_async, -1);
1991
- rb_define_method(file, "find_enclosing_mount_finish", file_find_enclosing_mount_finish, 1);
1992
- rb_define_method(file, "enumerate_children", file_enumerate_children, -1);
1993
- rb_define_method(file, "enumerate_children_async", file_enumerate_children_async, -1);
1994
- rb_define_method(file, "enumerate_children_finish", file_enumerate_children_finish, 1);
1995
- rb_define_method(file, "set_display_name", file_set_display_name, -1);
1996
- G_DEF_SETTER(file, "display_name");
1997
- rb_define_method(file, "set_display_name_async", file_set_display_name_async, -1);
1998
- rb_define_method(file, "set_display_name_finish", file_set_display_name_finish, 1);
1999
- rb_define_method(file, "delete", file_delete, -1);
2000
- rb_define_method(file, "trash", file_trash, -1);
2001
- rb_define_method(file, "copy", file_copy, -1);
2002
- rb_define_method(file, "copy_async", file_copy_async, -1);
2003
- rb_define_method(file, "copy_finish", file_copy_finish, 1);
2004
- rb_define_method(file, "move", file_move, -1);
2005
- rb_define_method(file, "make_directory", file_make_directory, -1);
2006
- rb_define_method(file, "make_directory_with_parents", file_make_directory_with_parents, -1);
2007
- rb_define_method(file, "make_symbolic_link", file_make_symbolic_link, -1);
2008
- rb_define_method(file, "query_settable_attributes", file_query_settable_attributes, -1);
2009
- rb_define_method(file, "query_writable_namespaces", file_query_writable_namespaces, -1);
2010
- rb_define_method(file, "set_attribute", file_set_attribute, -1);
2011
- rb_define_method(file, "set_attributes_from_info", file_set_attributes_from_info, -1);
2012
- G_DEF_SETTER(file, "attributes_from_info");
2013
- rb_define_method(file, "set_attributes_async", file_set_attributes_async, -1);
2014
- rb_define_method(file, "set_attributes_finish", file_set_attributes_finish, 1);
2015
- rb_define_method(file, "set_attribute_string", file_set_attribute_string, -1);
2016
- rb_define_method(file, "set_attribute_byte_string", file_set_attribute_byte_string, -1);
2017
- rb_define_method(file, "set_attribute_uint32", file_set_attribute_uint32, -1);
2018
- rb_define_method(file, "set_attribute_int32", file_set_attribute_int32, -1);
2019
- rb_define_method(file, "set_attribute_uint64", file_set_attribute_uint64, -1);
2020
- rb_define_method(file, "set_attribute_int64", file_set_attribute_int64, -1);
2021
- rb_define_method(file, "mount_mountable", file_mount_mountable, -1);
2022
- rb_define_method(file, "mount_mountable_finish", file_mount_mountable_finish, 1);
2023
- rb_define_method(file, "unmount_mountable_with_operation", file_unmount_mountable_with_operation, -1);
2024
- rb_define_method(file, "unmount_mountable_with_operation_finish", file_unmount_mountable_with_operation_finish, 1);
2025
- rb_define_method(file, "eject_mountable_with_operation", file_eject_mountable_with_operation, -1);
2026
- rb_define_method(file, "eject_mountable_with_operation_finish", file_eject_mountable_with_operation_finish, 1);
2027
- rb_define_method(file, "start_mountable", file_start_mountable, -1);
2028
- rb_define_method(file, "start_mountable_finish", file_start_mountable_finish, 1);
2029
- rb_define_method(file, "stop_mountable", file_stop_mountable, -1);
2030
- rb_define_method(file, "stop_mountable_finish", file_stop_mountable_finish, 1);
2031
- rb_define_method(file, "poll_mountable", file_poll_mountable, -1);
2032
- rb_define_method(file, "poll_mountable_finish", file_poll_mountable_finish, 1);
2033
- rb_define_method(file, "mount_enclosing_volume", file_mount_enclosing_volume, -1);
2034
- rb_define_method(file, "mount_enclosing_volume_finish", file_mount_enclosing_volume_finish, 1);
2035
- rb_define_method(file, "monitor_directory", file_monitor_directory, -1);
2036
- rb_define_method(file, "monitor_file", file_monitor_file, -1);
2037
- rb_define_method(file, "monitor", file_monitor, -1);
2038
- rb_define_method(file, "load_contents", file_load_contents, -1);
2039
- rb_define_method(file, "load_contents_async", file_load_contents_async, -1);
2040
- rb_define_method(file, "load_contents_finish", file_load_contents_finish, 1);
2041
- rb_define_method(file, "load_partial_contents_async", file_load_partial_contents_async, -1);
2042
- rb_define_method(file, "load_partial_contents_finish", file_load_partial_contents_finish, 1);
2043
- rb_define_method(file, "replace_contents", file_replace_contents, -1);
2044
- rb_define_method(file, "replace_contents_async", file_replace_contents_async, -1);
2045
- rb_define_method(file, "replace_contents_finish", file_replace_contents_finish, 1);
2046
- rb_define_method(file, "copy_attributes", file_copy_attributes, -1);
2047
- rb_define_method(file, "create_readwrite", file_create_readwrite, -1);
2048
- rb_define_method(file, "create_readwrite_async", file_create_readwrite_async, -1);
2049
- rb_define_method(file, "create_readwrite_finish", file_create_readwrite_finish, 1);
2050
- rb_define_method(file, "open_readwrite", file_open_readwrite, -1);
2051
- rb_define_method(file, "open_readwrite_async", file_open_readwrite_async, -1);
2052
- rb_define_method(file, "open_readwrite_finish", file_open_readwrite_finish, 1);
2053
- rb_define_method(file, "replace_readwrite", file_replace_readwrite, -1);
2054
- rb_define_method(file, "replace_readwrite_async", file_replace_readwrite_async, -1);
2055
- rb_define_method(file, "replace_readwrite_finish", file_replace_readwrite_finish, 1);
2056
- rb_define_method(file, "supports_thread_contexts?", file_supports_thread_contexts, 0);
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
  }