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,38 +1,34 @@
|
|
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 cFileInfo
|
23
25
|
#define _SELF(value) RVAL2GFILEINFO(value)
|
24
26
|
|
25
|
-
#define GFILEATTRIBUTESTATUS2RVAL(value) \
|
26
|
-
GENUM2RVAL((value), G_TYPE_FILE_ATTRIBUTE_STATUS)
|
27
|
-
|
28
|
-
#define RVAL2GFILEATTRIBUTESTATUS(value) \
|
29
|
-
GENUM2RVAL((value), G_TYPE_FILE_ATTRIBUTE_STATUS)
|
30
|
-
|
31
27
|
#define RVAL2FILEINFONAMESPACEDEFAULT(value) \
|
32
28
|
RVAL2TYPE_WITH_DEFAULT((value), RVAL2CSTR, "*")
|
33
29
|
|
34
30
|
static VALUE
|
35
|
-
|
31
|
+
rg_initialize(VALUE self)
|
36
32
|
{
|
37
33
|
G_INITIALIZE(self, g_file_info_new());
|
38
34
|
|
@@ -40,13 +36,13 @@ fileinfo_initialize(VALUE self)
|
|
40
36
|
}
|
41
37
|
|
42
38
|
static VALUE
|
43
|
-
|
39
|
+
rg_dup(VALUE self)
|
44
40
|
{
|
45
41
|
return GOBJ2RVAL_UNREF(g_file_info_dup(_SELF(self)));
|
46
42
|
}
|
47
43
|
|
48
44
|
static VALUE
|
49
|
-
|
45
|
+
rg_copy_into(VALUE self, VALUE other)
|
50
46
|
{
|
51
47
|
g_file_info_copy_into(_SELF(self), _SELF(other));
|
52
48
|
|
@@ -54,19 +50,19 @@ fileinfo_copy_into(VALUE self, VALUE other)
|
|
54
50
|
}
|
55
51
|
|
56
52
|
static VALUE
|
57
|
-
|
53
|
+
rg_has_attribute_p(VALUE self, VALUE attribute)
|
58
54
|
{
|
59
55
|
return CBOOL2RVAL(g_file_info_has_attribute(_SELF(self), RVAL2CSTR(attribute)));
|
60
56
|
}
|
61
57
|
|
62
58
|
static VALUE
|
63
|
-
|
59
|
+
rg_has_namespace_p(VALUE self, VALUE namespace)
|
64
60
|
{
|
65
61
|
return CBOOL2RVAL(g_file_info_has_namespace(_SELF(self), RVAL2CSTR(namespace)));
|
66
62
|
}
|
67
63
|
|
68
64
|
static VALUE
|
69
|
-
|
65
|
+
rg_set_attribute_status(VALUE self, VALUE attribute, VALUE status)
|
70
66
|
{
|
71
67
|
return CBOOL2RVAL(g_file_info_set_attribute_status(_SELF(self),
|
72
68
|
RVAL2CSTR(attribute),
|
@@ -74,24 +70,24 @@ fileinfo_set_attribute_status(VALUE self, VALUE attribute, VALUE status)
|
|
74
70
|
}
|
75
71
|
|
76
72
|
static VALUE
|
77
|
-
|
73
|
+
rg_list_attributes(int argc, VALUE *argv, VALUE self)
|
78
74
|
{
|
79
75
|
VALUE name_space;
|
80
76
|
|
81
77
|
rb_scan_args(argc, argv, "01", &name_space);
|
82
78
|
|
83
|
-
return
|
84
|
-
|
79
|
+
return STRV2RVAL_FREE(g_file_info_list_attributes(_SELF(self),
|
80
|
+
RVAL2FILEINFONAMESPACEDEFAULT(name_space)));
|
85
81
|
}
|
86
82
|
|
87
83
|
static VALUE
|
88
|
-
|
84
|
+
rg_get_attribute_type(VALUE self, VALUE attribute)
|
89
85
|
{
|
90
86
|
return GFILEATTRIBUTETYPE2RVAL(g_file_info_get_attribute_type(_SELF(self), RVAL2CSTR(attribute)));
|
91
87
|
}
|
92
88
|
|
93
89
|
static VALUE
|
94
|
-
|
90
|
+
rg_remove_attribute(VALUE self, VALUE attribute)
|
95
91
|
{
|
96
92
|
g_file_info_remove_attribute(_SELF(self), RVAL2CSTR(attribute));
|
97
93
|
|
@@ -99,7 +95,7 @@ fileinfo_remove_attribute(VALUE self, VALUE attribute)
|
|
99
95
|
}
|
100
96
|
|
101
97
|
static VALUE
|
102
|
-
|
98
|
+
rg_get_attribute_as_string(VALUE self, VALUE attribute)
|
103
99
|
{
|
104
100
|
return CSTR2RVAL_FREE(g_file_info_get_attribute_as_string(_SELF(self), RVAL2CSTR(attribute)));
|
105
101
|
}
|
@@ -124,7 +120,7 @@ file_attribute_to_value(GFileAttributeType type, gpointer value)
|
|
124
120
|
case G_FILE_ATTRIBUTE_TYPE_OBJECT:
|
125
121
|
return GOBJ2RVAL((GObject *)value);
|
126
122
|
case G_FILE_ATTRIBUTE_TYPE_STRINGV:
|
127
|
-
return
|
123
|
+
return STRV2RVAL_FREE((gchar **)value);
|
128
124
|
case G_FILE_ATTRIBUTE_TYPE_INVALID:
|
129
125
|
rb_raise(rb_eArgError, "invalid file attribute type");
|
130
126
|
break;
|
@@ -135,7 +131,7 @@ file_attribute_to_value(GFileAttributeType type, gpointer value)
|
|
135
131
|
}
|
136
132
|
|
137
133
|
static VALUE
|
138
|
-
|
134
|
+
rg_get_attribute_data(VALUE self, VALUE attribute)
|
139
135
|
{
|
140
136
|
GFileAttributeType type;
|
141
137
|
gpointer value;
|
@@ -155,77 +151,77 @@ fileinfo_get_attribute_data(VALUE self, VALUE attribute)
|
|
155
151
|
}
|
156
152
|
|
157
153
|
static VALUE
|
158
|
-
|
154
|
+
rg_get_attribute_status(VALUE self, VALUE attribute)
|
159
155
|
{
|
160
156
|
return GFILEATTRIBUTESTATUS2RVAL(g_file_info_get_attribute_status(_SELF(self),
|
161
157
|
RVAL2CSTR(attribute)));
|
162
158
|
}
|
163
159
|
|
164
160
|
static VALUE
|
165
|
-
|
161
|
+
rg_get_attribute_string(VALUE self, VALUE attribute)
|
166
162
|
{
|
167
163
|
return CSTR2RVAL(g_file_info_get_attribute_string(_SELF(self),
|
168
164
|
RVAL2CSTR(attribute)));
|
169
165
|
}
|
170
166
|
|
171
167
|
static VALUE
|
172
|
-
|
168
|
+
rg_get_attribute_stringv(VALUE self, VALUE attribute)
|
173
169
|
{
|
174
|
-
return
|
175
|
-
|
170
|
+
return STRV2RVAL((const gchar **)g_file_info_get_attribute_stringv(_SELF(self),
|
171
|
+
RVAL2CSTR(attribute)));
|
176
172
|
}
|
177
173
|
|
178
174
|
static VALUE
|
179
|
-
|
175
|
+
rg_get_attribute_byte_string(VALUE self, VALUE attribute)
|
180
176
|
{
|
181
177
|
return CSTR2RVAL(g_file_info_get_attribute_byte_string(_SELF(self),
|
182
178
|
RVAL2CSTR(attribute)));
|
183
179
|
}
|
184
180
|
|
185
181
|
static VALUE
|
186
|
-
|
182
|
+
rg_get_attribute_boolean(VALUE self, VALUE attribute)
|
187
183
|
{
|
188
184
|
return CBOOL2RVAL(g_file_info_get_attribute_boolean(_SELF(self),
|
189
185
|
RVAL2CSTR(attribute)));
|
190
186
|
}
|
191
187
|
|
192
188
|
static VALUE
|
193
|
-
|
189
|
+
rg_get_attribute_uint32(VALUE self, VALUE attribute)
|
194
190
|
{
|
195
191
|
return GUINT322RVAL(g_file_info_get_attribute_uint32(_SELF(self),
|
196
192
|
RVAL2CSTR(attribute)));
|
197
193
|
}
|
198
194
|
|
199
195
|
static VALUE
|
200
|
-
|
196
|
+
rg_get_attribute_int32(VALUE self, VALUE attribute)
|
201
197
|
{
|
202
198
|
return GINT322RVAL(g_file_info_get_attribute_int32(_SELF(self),
|
203
199
|
RVAL2CSTR(attribute)));
|
204
200
|
}
|
205
201
|
|
206
202
|
static VALUE
|
207
|
-
|
203
|
+
rg_get_attribute_uint64(VALUE self, VALUE attribute)
|
208
204
|
{
|
209
205
|
return GUINT642RVAL(g_file_info_get_attribute_uint64(_SELF(self),
|
210
206
|
RVAL2CSTR(attribute)));
|
211
207
|
}
|
212
208
|
|
213
209
|
static VALUE
|
214
|
-
|
210
|
+
rg_get_attribute_int64(VALUE self, VALUE attribute)
|
215
211
|
{
|
216
212
|
return GINT642RVAL(g_file_info_get_attribute_int64(_SELF(self),
|
217
213
|
RVAL2CSTR(attribute)));
|
218
214
|
}
|
219
215
|
|
220
216
|
static VALUE
|
221
|
-
|
217
|
+
rg_get_attribute_object(VALUE self, VALUE attribute)
|
222
218
|
{
|
223
219
|
return GOBJ2RVAL(g_file_info_get_attribute_object(_SELF(self),
|
224
220
|
RVAL2CSTR(attribute)));
|
225
221
|
}
|
226
222
|
|
227
223
|
static VALUE
|
228
|
-
|
224
|
+
rg_get_attribute_value(VALUE self, VALUE attribute)
|
229
225
|
{
|
230
226
|
GFileAttributeType type;
|
231
227
|
gpointer value;
|
@@ -242,7 +238,7 @@ fileinfo_get_attribute_value(VALUE self, VALUE attribute)
|
|
242
238
|
}
|
243
239
|
|
244
240
|
static VALUE
|
245
|
-
|
241
|
+
rg_set_attribute_string(VALUE self, VALUE attribute, VALUE value)
|
246
242
|
{
|
247
243
|
g_file_info_set_attribute_string(_SELF(self),
|
248
244
|
RVAL2CSTR(attribute),
|
@@ -252,7 +248,7 @@ fileinfo_set_attribute_string(VALUE self, VALUE attribute, VALUE value)
|
|
252
248
|
}
|
253
249
|
|
254
250
|
static VALUE
|
255
|
-
|
251
|
+
rg_set_attribute_byte_string(VALUE self, VALUE attribute, VALUE value)
|
256
252
|
{
|
257
253
|
g_file_info_set_attribute_byte_string(_SELF(self),
|
258
254
|
RVAL2CSTR(attribute),
|
@@ -262,7 +258,7 @@ fileinfo_set_attribute_byte_string(VALUE self, VALUE attribute, VALUE value)
|
|
262
258
|
}
|
263
259
|
|
264
260
|
static VALUE
|
265
|
-
|
261
|
+
rg_set_attribute_boolean(VALUE self, VALUE attribute, VALUE value)
|
266
262
|
{
|
267
263
|
g_file_info_set_attribute_boolean(_SELF(self),
|
268
264
|
RVAL2CSTR(attribute),
|
@@ -272,7 +268,7 @@ fileinfo_set_attribute_boolean(VALUE self, VALUE attribute, VALUE value)
|
|
272
268
|
}
|
273
269
|
|
274
270
|
static VALUE
|
275
|
-
|
271
|
+
rg_set_attribute_uint32(VALUE self, VALUE attribute, VALUE value)
|
276
272
|
{
|
277
273
|
g_file_info_set_attribute_uint32(_SELF(self),
|
278
274
|
RVAL2CSTR(attribute),
|
@@ -282,7 +278,7 @@ fileinfo_set_attribute_uint32(VALUE self, VALUE attribute, VALUE value)
|
|
282
278
|
}
|
283
279
|
|
284
280
|
static VALUE
|
285
|
-
|
281
|
+
rg_set_attribute_int32(VALUE self, VALUE attribute, VALUE value)
|
286
282
|
{
|
287
283
|
g_file_info_set_attribute_int32(_SELF(self),
|
288
284
|
RVAL2CSTR(attribute),
|
@@ -292,7 +288,7 @@ fileinfo_set_attribute_int32(VALUE self, VALUE attribute, VALUE value)
|
|
292
288
|
}
|
293
289
|
|
294
290
|
static VALUE
|
295
|
-
|
291
|
+
rg_set_attribute_uint64(VALUE self, VALUE attribute, VALUE value)
|
296
292
|
{
|
297
293
|
g_file_info_set_attribute_uint64(_SELF(self),
|
298
294
|
RVAL2CSTR(attribute),
|
@@ -302,7 +298,7 @@ fileinfo_set_attribute_uint64(VALUE self, VALUE attribute, VALUE value)
|
|
302
298
|
}
|
303
299
|
|
304
300
|
static VALUE
|
305
|
-
|
301
|
+
rg_set_attribute_int64(VALUE self, VALUE attribute, VALUE value)
|
306
302
|
{
|
307
303
|
g_file_info_set_attribute_int64(_SELF(self),
|
308
304
|
RVAL2CSTR(attribute),
|
@@ -312,7 +308,7 @@ fileinfo_set_attribute_int64(VALUE self, VALUE attribute, VALUE value)
|
|
312
308
|
}
|
313
309
|
|
314
310
|
static VALUE
|
315
|
-
|
311
|
+
rg_set_attribute_object(VALUE self, VALUE attribute, VALUE value)
|
316
312
|
{
|
317
313
|
g_file_info_set_attribute_object(_SELF(self),
|
318
314
|
RVAL2CSTR(attribute),
|
@@ -322,7 +318,7 @@ fileinfo_set_attribute_object(VALUE self, VALUE attribute, VALUE value)
|
|
322
318
|
}
|
323
319
|
|
324
320
|
static VALUE
|
325
|
-
|
321
|
+
rg_clear_status(VALUE self)
|
326
322
|
{
|
327
323
|
g_file_info_clear_status(_SELF(self));
|
328
324
|
|
@@ -330,67 +326,67 @@ fileinfo_clear_status(VALUE self)
|
|
330
326
|
}
|
331
327
|
|
332
328
|
static VALUE
|
333
|
-
|
329
|
+
rg_file_type(VALUE self)
|
334
330
|
{
|
335
331
|
return GFILETYPE2RVAL(g_file_info_get_file_type(_SELF(self)));
|
336
332
|
}
|
337
333
|
|
338
334
|
static VALUE
|
339
|
-
|
335
|
+
rg_hidden_p(VALUE self)
|
340
336
|
{
|
341
337
|
return CBOOL2RVAL(g_file_info_get_is_hidden(_SELF(self)));
|
342
338
|
}
|
343
339
|
|
344
340
|
static VALUE
|
345
|
-
|
341
|
+
rg_backup_p(VALUE self)
|
346
342
|
{
|
347
343
|
return CBOOL2RVAL(g_file_info_get_is_backup(_SELF(self)));
|
348
344
|
}
|
349
345
|
|
350
346
|
static VALUE
|
351
|
-
|
347
|
+
rg_symlink_p(VALUE self)
|
352
348
|
{
|
353
349
|
return CBOOL2RVAL(g_file_info_get_is_symlink(_SELF(self)));
|
354
350
|
}
|
355
351
|
|
356
352
|
static VALUE
|
357
|
-
|
353
|
+
rg_name(VALUE self)
|
358
354
|
{
|
359
355
|
return CSTR2RVAL(g_file_info_get_name(_SELF(self)));
|
360
356
|
}
|
361
357
|
|
362
358
|
static VALUE
|
363
|
-
|
359
|
+
rg_display_name(VALUE self)
|
364
360
|
{
|
365
361
|
return CSTR2RVAL(g_file_info_get_display_name(_SELF(self)));
|
366
362
|
}
|
367
363
|
|
368
364
|
static VALUE
|
369
|
-
|
365
|
+
rg_edit_name(VALUE self)
|
370
366
|
{
|
371
367
|
return CSTR2RVAL(g_file_info_get_edit_name(_SELF(self)));
|
372
368
|
}
|
373
369
|
|
374
370
|
static VALUE
|
375
|
-
|
371
|
+
rg_icon(VALUE self)
|
376
372
|
{
|
377
373
|
return GOBJ2RVAL(g_file_info_get_icon(_SELF(self)));
|
378
374
|
}
|
379
375
|
|
380
376
|
static VALUE
|
381
|
-
|
377
|
+
rg_content_type(VALUE self)
|
382
378
|
{
|
383
379
|
return CSTR2RVAL(g_file_info_get_content_type(_SELF(self)));
|
384
380
|
}
|
385
381
|
|
386
382
|
static VALUE
|
387
|
-
|
383
|
+
rg_size(VALUE self)
|
388
384
|
{
|
389
385
|
return GOFFSET2RVAL(g_file_info_get_size(_SELF(self)));
|
390
386
|
}
|
391
387
|
|
392
388
|
static VALUE
|
393
|
-
|
389
|
+
rg_modification_time(VALUE self)
|
394
390
|
{
|
395
391
|
GTimeVal time;
|
396
392
|
|
@@ -400,25 +396,25 @@ fileinfo_get_modification_time(VALUE self)
|
|
400
396
|
}
|
401
397
|
|
402
398
|
static VALUE
|
403
|
-
|
399
|
+
rg_symlink_target(VALUE self)
|
404
400
|
{
|
405
401
|
return CSTR2RVAL(g_file_info_get_symlink_target(_SELF(self)));
|
406
402
|
}
|
407
403
|
|
408
404
|
static VALUE
|
409
|
-
|
405
|
+
rg_etag(VALUE self)
|
410
406
|
{
|
411
407
|
return CSTR2RVAL(g_file_info_get_etag(_SELF(self)));
|
412
408
|
}
|
413
409
|
|
414
410
|
static VALUE
|
415
|
-
|
411
|
+
rg_sort_order(VALUE self)
|
416
412
|
{
|
417
413
|
return GINT322RVAL(g_file_info_get_sort_order(_SELF(self)));
|
418
414
|
}
|
419
415
|
|
420
416
|
static VALUE
|
421
|
-
|
417
|
+
rg_set_attribute_mask(VALUE self, VALUE rbmask)
|
422
418
|
{
|
423
419
|
gboolean should_unref;
|
424
420
|
GFileAttributeMatcher *mask;
|
@@ -445,7 +441,7 @@ fileinfo_set_attribute_mask(VALUE self, VALUE rbmask)
|
|
445
441
|
}
|
446
442
|
|
447
443
|
static VALUE
|
448
|
-
|
444
|
+
rg_unset_attribute_mask(VALUE self)
|
449
445
|
{
|
450
446
|
g_file_info_unset_attribute_mask(_SELF(self));
|
451
447
|
|
@@ -453,7 +449,7 @@ fileinfo_unset_attribute_mask(VALUE self)
|
|
453
449
|
}
|
454
450
|
|
455
451
|
static VALUE
|
456
|
-
|
452
|
+
rg_set_file_type(VALUE self, VALUE value)
|
457
453
|
{
|
458
454
|
g_file_info_set_file_type(_SELF(self), RVAL2GFILETYPE(value));
|
459
455
|
|
@@ -461,7 +457,7 @@ fileinfo_set_file_type(VALUE self, VALUE value)
|
|
461
457
|
}
|
462
458
|
|
463
459
|
static VALUE
|
464
|
-
|
460
|
+
rg_set_hidden(VALUE self, VALUE value)
|
465
461
|
{
|
466
462
|
g_file_info_set_is_hidden(_SELF(self), RVAL2CBOOL(value));
|
467
463
|
|
@@ -469,7 +465,7 @@ fileinfo_set_is_hidden(VALUE self, VALUE value)
|
|
469
465
|
}
|
470
466
|
|
471
467
|
static VALUE
|
472
|
-
|
468
|
+
rg_set_symlink(VALUE self, VALUE value)
|
473
469
|
{
|
474
470
|
g_file_info_set_is_symlink(_SELF(self), RVAL2CBOOL(value));
|
475
471
|
|
@@ -477,7 +473,7 @@ fileinfo_set_is_symlink(VALUE self, VALUE value)
|
|
477
473
|
}
|
478
474
|
|
479
475
|
static VALUE
|
480
|
-
|
476
|
+
rg_set_name(VALUE self, VALUE value)
|
481
477
|
{
|
482
478
|
g_file_info_set_name(_SELF(self), RVAL2CSTR(value));
|
483
479
|
|
@@ -485,7 +481,7 @@ fileinfo_set_name(VALUE self, VALUE value)
|
|
485
481
|
}
|
486
482
|
|
487
483
|
static VALUE
|
488
|
-
|
484
|
+
rg_set_display_name(VALUE self, VALUE value)
|
489
485
|
{
|
490
486
|
g_file_info_set_display_name(_SELF(self), RVAL2CSTR(value));
|
491
487
|
|
@@ -493,7 +489,7 @@ fileinfo_set_display_name(VALUE self, VALUE value)
|
|
493
489
|
}
|
494
490
|
|
495
491
|
static VALUE
|
496
|
-
|
492
|
+
rg_set_edit_name(VALUE self, VALUE value)
|
497
493
|
{
|
498
494
|
g_file_info_set_edit_name(_SELF(self), RVAL2CSTR(value));
|
499
495
|
|
@@ -501,7 +497,7 @@ fileinfo_set_edit_name(VALUE self, VALUE value)
|
|
501
497
|
}
|
502
498
|
|
503
499
|
static VALUE
|
504
|
-
|
500
|
+
rg_set_icon(VALUE self, VALUE value)
|
505
501
|
{
|
506
502
|
g_file_info_set_icon(_SELF(self), RVAL2GICON(value));
|
507
503
|
|
@@ -509,7 +505,7 @@ fileinfo_set_icon(VALUE self, VALUE value)
|
|
509
505
|
}
|
510
506
|
|
511
507
|
static VALUE
|
512
|
-
|
508
|
+
rg_set_content_type(VALUE self, VALUE value)
|
513
509
|
{
|
514
510
|
g_file_info_set_content_type(_SELF(self), RVAL2CSTR(value));
|
515
511
|
|
@@ -517,7 +513,7 @@ fileinfo_set_content_type(VALUE self, VALUE value)
|
|
517
513
|
}
|
518
514
|
|
519
515
|
static VALUE
|
520
|
-
|
516
|
+
rg_set_size(VALUE self, VALUE value)
|
521
517
|
{
|
522
518
|
g_file_info_set_size(_SELF(self), RVAL2GOFFSET(value));
|
523
519
|
|
@@ -525,7 +521,7 @@ fileinfo_set_size(VALUE self, VALUE value)
|
|
525
521
|
}
|
526
522
|
|
527
523
|
static VALUE
|
528
|
-
|
524
|
+
rg_set_modification_time(VALUE self, VALUE rbtime)
|
529
525
|
{
|
530
526
|
GTimeVal time;
|
531
527
|
|
@@ -537,7 +533,7 @@ fileinfo_set_modification_time(VALUE self, VALUE rbtime)
|
|
537
533
|
}
|
538
534
|
|
539
535
|
static VALUE
|
540
|
-
|
536
|
+
rg_set_symlink_target(VALUE self, VALUE value)
|
541
537
|
{
|
542
538
|
g_file_info_set_symlink_target(_SELF(self), RVAL2CSTR(value));
|
543
539
|
|
@@ -545,7 +541,7 @@ fileinfo_set_symlink_target(VALUE self, VALUE value)
|
|
545
541
|
}
|
546
542
|
|
547
543
|
static VALUE
|
548
|
-
|
544
|
+
rg_set_sort_order(VALUE self, VALUE value)
|
549
545
|
{
|
550
546
|
g_file_info_set_sort_order(_SELF(self), RVAL2GINT32(value));
|
551
547
|
|
@@ -553,82 +549,82 @@ fileinfo_set_sort_order(VALUE self, VALUE value)
|
|
553
549
|
}
|
554
550
|
|
555
551
|
void
|
556
|
-
Init_gfileinfo(VALUE
|
557
|
-
{
|
558
|
-
VALUE
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
G_DEF_SETTER(
|
609
|
-
|
610
|
-
|
611
|
-
G_DEF_SETTER(
|
612
|
-
|
613
|
-
G_DEF_SETTER(
|
614
|
-
|
615
|
-
G_DEF_SETTER(
|
616
|
-
|
617
|
-
G_DEF_SETTER(
|
618
|
-
|
619
|
-
G_DEF_SETTER(
|
620
|
-
|
621
|
-
G_DEF_SETTER(
|
622
|
-
|
623
|
-
G_DEF_SETTER(
|
624
|
-
|
625
|
-
G_DEF_SETTER(
|
626
|
-
|
627
|
-
G_DEF_SETTER(
|
628
|
-
|
629
|
-
G_DEF_SETTER(
|
630
|
-
|
631
|
-
G_DEF_SETTER(
|
632
|
-
|
633
|
-
G_DEF_SETTER(
|
552
|
+
Init_gfileinfo(VALUE mGio)
|
553
|
+
{
|
554
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_FILE_INFO, "FileInfo", mGio);
|
555
|
+
|
556
|
+
RG_DEF_METHOD(initialize, 0);
|
557
|
+
RG_DEF_METHOD(dup, 0);
|
558
|
+
RG_DEF_METHOD(copy_into, 1);
|
559
|
+
RG_DEF_METHOD_P(has_attribute, 1);
|
560
|
+
RG_DEF_METHOD_P(has_namespace, 1);
|
561
|
+
RG_DEF_METHOD(list_attributes, -1);
|
562
|
+
RG_DEF_ALIAS("attributes", "list_attributes");
|
563
|
+
RG_DEF_METHOD(get_attribute_type, 1);
|
564
|
+
RG_DEF_METHOD(remove_attribute, 1);
|
565
|
+
RG_DEF_METHOD(get_attribute_as_string, 1);
|
566
|
+
RG_DEF_METHOD(get_attribute_data, 1);
|
567
|
+
RG_DEF_METHOD(get_attribute_status, 1);
|
568
|
+
RG_DEF_METHOD(get_attribute_string, 1);
|
569
|
+
RG_DEF_METHOD(get_attribute_stringv, 1);
|
570
|
+
RG_DEF_METHOD(get_attribute_byte_string, 1);
|
571
|
+
RG_DEF_METHOD(get_attribute_boolean, 1);
|
572
|
+
RG_DEF_METHOD(get_attribute_uint32, 1);
|
573
|
+
RG_DEF_METHOD(get_attribute_int32, 1);
|
574
|
+
RG_DEF_METHOD(get_attribute_uint64, 1);
|
575
|
+
RG_DEF_METHOD(get_attribute_int64, 1);
|
576
|
+
RG_DEF_METHOD(get_attribute_object, 1);
|
577
|
+
RG_DEF_METHOD(get_attribute_value, 1);
|
578
|
+
RG_DEF_ALIAS("[]", "get_attribute_value");
|
579
|
+
RG_DEF_METHOD(set_attribute_status, 2);
|
580
|
+
RG_DEF_METHOD(set_attribute_string, 2);
|
581
|
+
RG_DEF_METHOD(set_attribute_byte_string, 2);
|
582
|
+
RG_DEF_METHOD(set_attribute_boolean, 2);
|
583
|
+
RG_DEF_METHOD(set_attribute_uint32, 2);
|
584
|
+
RG_DEF_METHOD(set_attribute_int32, 2);
|
585
|
+
RG_DEF_METHOD(set_attribute_uint64, 2);
|
586
|
+
RG_DEF_METHOD(set_attribute_int64, 2);
|
587
|
+
RG_DEF_METHOD(set_attribute_object, 2);
|
588
|
+
RG_DEF_METHOD(clear_status, 0);
|
589
|
+
RG_DEF_METHOD(file_type, 0);
|
590
|
+
RG_DEF_METHOD_P(hidden, 0);
|
591
|
+
RG_DEF_METHOD_P(backup, 0);
|
592
|
+
RG_DEF_METHOD_P(symlink, 0);
|
593
|
+
RG_DEF_METHOD(name, 0);
|
594
|
+
RG_DEF_METHOD(display_name, 0);
|
595
|
+
RG_DEF_METHOD(edit_name, 0);
|
596
|
+
RG_DEF_METHOD(icon, 0);
|
597
|
+
RG_DEF_METHOD(content_type, 0);
|
598
|
+
RG_DEF_METHOD(size, 0);
|
599
|
+
RG_DEF_METHOD(modification_time, 0);
|
600
|
+
RG_DEF_METHOD(symlink_target, 0);
|
601
|
+
RG_DEF_METHOD(etag, 0);
|
602
|
+
RG_DEF_METHOD(sort_order, 0);
|
603
|
+
RG_DEF_METHOD(set_attribute_mask, 1);
|
604
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "attribute_mask");
|
605
|
+
RG_DEF_METHOD(unset_attribute_mask, 0);
|
606
|
+
RG_DEF_METHOD(set_file_type, 1);
|
607
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "file_type");
|
608
|
+
RG_DEF_METHOD(set_hidden, 1);
|
609
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "hidden");
|
610
|
+
RG_DEF_METHOD(set_symlink, 1);
|
611
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "symlink");
|
612
|
+
RG_DEF_METHOD(set_name, 1);
|
613
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "name");
|
614
|
+
RG_DEF_METHOD(set_display_name, 1);
|
615
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "display_name");
|
616
|
+
RG_DEF_METHOD(set_edit_name, 1);
|
617
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "edit_name");
|
618
|
+
RG_DEF_METHOD(set_icon, 1);
|
619
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "icon");
|
620
|
+
RG_DEF_METHOD(set_content_type, 1);
|
621
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "content_type");
|
622
|
+
RG_DEF_METHOD(set_size, 1);
|
623
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "size");
|
624
|
+
RG_DEF_METHOD(set_modification_time, 1);
|
625
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "modification_time");
|
626
|
+
RG_DEF_METHOD(set_symlink_target, 1);
|
627
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "symlink_target");
|
628
|
+
RG_DEF_METHOD(set_sort_order, 1);
|
629
|
+
G_DEF_SETTER(RG_TARGET_NAMESPACE, "sort_order");
|
634
630
|
}
|