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
data/ext/gio2/rbgio.c
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18
|
+
* MA 02110-1301 USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#include "rbgio2private.h"
|
22
|
+
|
23
|
+
#define RG_TARGET_NAMESPACE mGio
|
24
|
+
|
25
|
+
static VALUE
|
26
|
+
rg_m_has_unix_p(G_GNUC_UNUSED VALUE self)
|
27
|
+
{
|
28
|
+
#ifdef HAVE_GIO_UNIX
|
29
|
+
return Qtrue;
|
30
|
+
#else
|
31
|
+
return Qfalse;
|
32
|
+
#endif
|
33
|
+
}
|
34
|
+
|
35
|
+
void
|
36
|
+
Init_gio(void)
|
37
|
+
{
|
38
|
+
VALUE RG_TARGET_NAMESPACE = rb_define_module("Gio");
|
39
|
+
G_DEF_CLASS(G_TYPE_FILESYSTEM_PREVIEW_TYPE, "FilesystemPreviewType", RG_TARGET_NAMESPACE);
|
40
|
+
G_DEF_CLASS(G_TYPE_DATA_STREAM_BYTE_ORDER, "DataStreamByteOrder", RG_TARGET_NAMESPACE);
|
41
|
+
G_DEF_CLASS(G_TYPE_DATA_STREAM_NEWLINE_TYPE, "DataStreamNewlineType", RG_TARGET_NAMESPACE);
|
42
|
+
G_DEF_CLASS(G_TYPE_ASK_PASSWORD_FLAGS, "AskPasswordFlags", RG_TARGET_NAMESPACE);
|
43
|
+
G_DEF_CLASS(G_TYPE_PASSWORD_SAVE, "PasswordSave", RG_TARGET_NAMESPACE);
|
44
|
+
|
45
|
+
RG_DEF_MODFUNC_P(has_unix, 0);
|
46
|
+
|
47
|
+
Init_gappinfo(RG_TARGET_NAMESPACE);
|
48
|
+
Init_gapplaunchcontext(RG_TARGET_NAMESPACE);
|
49
|
+
Init_gasyncinitable(RG_TARGET_NAMESPACE);
|
50
|
+
Init_gasyncresult(RG_TARGET_NAMESPACE);
|
51
|
+
Init_gbufferedinputstream(RG_TARGET_NAMESPACE);
|
52
|
+
Init_gbufferedoutputstream(RG_TARGET_NAMESPACE);
|
53
|
+
Init_gcancellable(RG_TARGET_NAMESPACE);
|
54
|
+
Init_gcharsetconverter(RG_TARGET_NAMESPACE);
|
55
|
+
Init_gcontenttype(RG_TARGET_NAMESPACE);
|
56
|
+
Init_gconverter(RG_TARGET_NAMESPACE);
|
57
|
+
Init_gconverterinputstream(RG_TARGET_NAMESPACE);
|
58
|
+
Init_gconverteroutputstream(RG_TARGET_NAMESPACE);
|
59
|
+
Init_gdatainputstream(RG_TARGET_NAMESPACE);
|
60
|
+
Init_gdesktopappinfo(RG_TARGET_NAMESPACE);
|
61
|
+
Init_gdataoutputstream(RG_TARGET_NAMESPACE);
|
62
|
+
Init_gdrive(RG_TARGET_NAMESPACE);
|
63
|
+
Init_gemblem(RG_TARGET_NAMESPACE);
|
64
|
+
Init_gemblemedicon(RG_TARGET_NAMESPACE);
|
65
|
+
Init_gfile(RG_TARGET_NAMESPACE);
|
66
|
+
Init_gfileattribute(RG_TARGET_NAMESPACE);
|
67
|
+
Init_gfileattributeinfo(RG_TARGET_NAMESPACE);
|
68
|
+
Init_gfileattributematcher(RG_TARGET_NAMESPACE);
|
69
|
+
Init_gfiledescriptorbased(RG_TARGET_NAMESPACE);
|
70
|
+
Init_gfileenumerator(RG_TARGET_NAMESPACE);
|
71
|
+
Init_gfileicon(RG_TARGET_NAMESPACE);
|
72
|
+
Init_gfileinfo(RG_TARGET_NAMESPACE);
|
73
|
+
Init_gfileinputstream(RG_TARGET_NAMESPACE);
|
74
|
+
Init_gfileiostream(RG_TARGET_NAMESPACE);
|
75
|
+
Init_gfilemonitor(RG_TARGET_NAMESPACE);
|
76
|
+
Init_gfilenamecompleter(RG_TARGET_NAMESPACE);
|
77
|
+
Init_gfileoutputstream(RG_TARGET_NAMESPACE);
|
78
|
+
Init_gfilterinputstream(RG_TARGET_NAMESPACE);
|
79
|
+
Init_gfilteroutputstream(RG_TARGET_NAMESPACE);
|
80
|
+
Init_gicon(RG_TARGET_NAMESPACE);
|
81
|
+
Init_ginetaddress(RG_TARGET_NAMESPACE);
|
82
|
+
Init_ginetsocketaddress(RG_TARGET_NAMESPACE);
|
83
|
+
Init_ginitable(RG_TARGET_NAMESPACE);
|
84
|
+
Init_ginputstream(RG_TARGET_NAMESPACE);
|
85
|
+
Init_gioerror(RG_TARGET_NAMESPACE);
|
86
|
+
Init_giomodule(RG_TARGET_NAMESPACE);
|
87
|
+
Init_giomodules(RG_TARGET_NAMESPACE);
|
88
|
+
Init_gioscheduler(RG_TARGET_NAMESPACE);
|
89
|
+
Init_gioschedulerjob(RG_TARGET_NAMESPACE);
|
90
|
+
Init_giostream(RG_TARGET_NAMESPACE);
|
91
|
+
Init_gloadableicon(RG_TARGET_NAMESPACE);
|
92
|
+
Init_gmemoryinputstream(RG_TARGET_NAMESPACE);
|
93
|
+
Init_gmemoryoutputstream(RG_TARGET_NAMESPACE);
|
94
|
+
Init_gmount(RG_TARGET_NAMESPACE);
|
95
|
+
Init_gmountoperation(RG_TARGET_NAMESPACE);
|
96
|
+
Init_gnetworkaddress(RG_TARGET_NAMESPACE);
|
97
|
+
Init_gnetworkservice(RG_TARGET_NAMESPACE);
|
98
|
+
Init_goutputstream(RG_TARGET_NAMESPACE);
|
99
|
+
Init_gresolver(RG_TARGET_NAMESPACE);
|
100
|
+
Init_gseekable(RG_TARGET_NAMESPACE);
|
101
|
+
Init_gsimpleasyncresult(RG_TARGET_NAMESPACE);
|
102
|
+
Init_gsocket(RG_TARGET_NAMESPACE);
|
103
|
+
Init_gsocketaddress(RG_TARGET_NAMESPACE);
|
104
|
+
Init_gsocketclient(RG_TARGET_NAMESPACE);
|
105
|
+
Init_gsocketconnectable(RG_TARGET_NAMESPACE);
|
106
|
+
Init_gsocketaddressenumerator(RG_TARGET_NAMESPACE);
|
107
|
+
Init_gsocketconnection(RG_TARGET_NAMESPACE);
|
108
|
+
Init_gsocketconnectionfactory(RG_TARGET_NAMESPACE);
|
109
|
+
Init_gsocketcontrolmessage(RG_TARGET_NAMESPACE);
|
110
|
+
Init_gsocketlistener(RG_TARGET_NAMESPACE);
|
111
|
+
Init_gsocketservice(RG_TARGET_NAMESPACE);
|
112
|
+
Init_gsrvtarget(RG_TARGET_NAMESPACE);
|
113
|
+
Init_gtcpconnection(RG_TARGET_NAMESPACE);
|
114
|
+
Init_gthemedicon(RG_TARGET_NAMESPACE);
|
115
|
+
Init_gthreadedsocketservice(RG_TARGET_NAMESPACE);
|
116
|
+
Init_gunixconnection(RG_TARGET_NAMESPACE);
|
117
|
+
Init_gunixfdlist(RG_TARGET_NAMESPACE);
|
118
|
+
Init_gunixfdmessage(RG_TARGET_NAMESPACE);
|
119
|
+
Init_gunixinputstream(RG_TARGET_NAMESPACE);
|
120
|
+
Init_gunixmount(RG_TARGET_NAMESPACE);
|
121
|
+
Init_gunixmounts(RG_TARGET_NAMESPACE);
|
122
|
+
Init_gunixmountpoint(RG_TARGET_NAMESPACE);
|
123
|
+
Init_gunixmountpoints(RG_TARGET_NAMESPACE);
|
124
|
+
Init_gunixmountmonitor(RG_TARGET_NAMESPACE);
|
125
|
+
Init_gunixoutputstream(RG_TARGET_NAMESPACE);
|
126
|
+
Init_gunixsocketaddress(RG_TARGET_NAMESPACE);
|
127
|
+
Init_gvfs(RG_TARGET_NAMESPACE);
|
128
|
+
Init_gvolume(RG_TARGET_NAMESPACE);
|
129
|
+
Init_gvolumemonitor(RG_TARGET_NAMESPACE);
|
130
|
+
Init_gzlibcompressor(RG_TARGET_NAMESPACE);
|
131
|
+
Init_gzlibdecompressor(RG_TARGET_NAMESPACE);
|
132
|
+
}
|
data/ext/gio2/rbgio2.h
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
|
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, or (at your option) any later version.
|
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.
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#ifndef __RBGIO2_H__
|
23
|
+
#define __RBGIO2_H__
|
24
|
+
|
25
|
+
#include <gio/gio.h>
|
26
|
+
|
27
|
+
#include "rbgio2conversions.h"
|
28
|
+
|
29
|
+
G_BEGIN_DECLS
|
30
|
+
|
31
|
+
/* Block Handling */
|
32
|
+
#define SAVE_BLOCK(block) G_STMT_START { \
|
33
|
+
if (!NIL_P(block)) \
|
34
|
+
G_CHILD_ADD(mGLib, (block)); \
|
35
|
+
} G_STMT_END
|
36
|
+
|
37
|
+
#define USE_BLOCK(data) \
|
38
|
+
rbgio_child_remove_and_return(mGLib, (VALUE)(data))
|
39
|
+
|
40
|
+
#define USE_BLOCK_AND_SAVE(data) ((VALUE)data)
|
41
|
+
|
42
|
+
#define G_TYPE_FILE_ATTRIBUTE_MATCHER (g_file_attribute_matcher_get_type())
|
43
|
+
GType g_file_attribute_matcher_get_type(void);
|
44
|
+
|
45
|
+
#define G_TYPE_FILE_ATTRIBUTE_INFO (g_file_attribute_info_get_type())
|
46
|
+
GType g_file_attribute_info_get_type(void);
|
47
|
+
|
48
|
+
#define G_TYPE_FILE_ATTRIBUTE_INFO_LIST (g_file_attribute_info_list_get_type())
|
49
|
+
GType g_file_attribute_info_list_get_type(void);
|
50
|
+
|
51
|
+
/* Conversion Macros */
|
52
|
+
#define RVAL2TYPE_WITH_DEFAULT(value, type, default_value) \
|
53
|
+
(NIL_P(value) ? (default_value) : type(value))
|
54
|
+
|
55
|
+
#define RVAL2ATTRIBUTESDEFAULT(value) \
|
56
|
+
RVAL2TYPE_WITH_DEFAULT((value), RVAL2CSTR, "standard::*")
|
57
|
+
|
58
|
+
#define RVAL2GDRIVESTARTFLAGSDEFAULT(value) \
|
59
|
+
RVAL2TYPE_WITH_DEFAULT((value), \
|
60
|
+
RVAL2GDRIVESTARTFLAGS, \
|
61
|
+
G_DRIVE_START_NONE)
|
62
|
+
|
63
|
+
#define RVAL2GMOUNTMOUNTFLAGSDEFAULT(value) \
|
64
|
+
RVAL2TYPE_WITH_DEFAULT((value), \
|
65
|
+
RVAL2GMOUNTMOUNTFLAGS, \
|
66
|
+
G_MOUNT_MOUNT_NONE)
|
67
|
+
|
68
|
+
#define RVAL2GMOUNTUNMOUNTFLAGSDEFAULT(value) \
|
69
|
+
RVAL2TYPE_WITH_DEFAULT((value), \
|
70
|
+
RVAL2GMOUNTUNMOUNTFLAGS, \
|
71
|
+
G_MOUNT_UNMOUNT_NONE)
|
72
|
+
|
73
|
+
#define RVAL2GSOCKETPROTOCOLDEFAULT(value) \
|
74
|
+
RVAL2TYPE_WITH_DEFAULT((value), \
|
75
|
+
RVAL2GSOCKETPROTOCOL, \
|
76
|
+
G_SOCKET_PROTOCOL_DEFAULT)
|
77
|
+
|
78
|
+
#define GTIMEVAL2RVAL(value) rb_time_new((value)->tv_sec, (value)->tv_usec)
|
79
|
+
|
80
|
+
#define RVAL2GZLIBCOMPRESSORFORMATDEFAULT(value) \
|
81
|
+
RVAL2TYPE_WITH_DEFAULT((value), \
|
82
|
+
RVAL2GZLIBCOMPRESSORFORMAT, \
|
83
|
+
G_ZLIB_COMPRESSOR_FORMAT_ZLIB)
|
84
|
+
|
85
|
+
#define RVAL2IOPRIORITYDEFAULT(value) \
|
86
|
+
RVAL2TYPE_WITH_DEFAULT((value), NUM2INT, G_PRIORITY_DEFAULT)
|
87
|
+
|
88
|
+
/* Integer Type Conversion Macros */
|
89
|
+
#define FD2RVAL(value) INT2FIX(value)
|
90
|
+
#define RVAL2FD(value) FIX2INT(value)
|
91
|
+
#define RVAL2FDS(value, n) RVAL2GINTS(value, n)
|
92
|
+
|
93
|
+
#define GINT2RVAL(value) INT2NUM(value)
|
94
|
+
#define RVAL2GINT(value) NUM2INT(value)
|
95
|
+
|
96
|
+
#define GINT162RVAL(value) INT2FIX(value)
|
97
|
+
#define RVAL2GINT16(value) FIX2INT(value)
|
98
|
+
|
99
|
+
#define GINT322RVAL(value) INT2NUM(value)
|
100
|
+
#define RVAL2GINT32(value) NUM2INT(value)
|
101
|
+
|
102
|
+
#define GINT642RVAL(value) rbglib_int64_to_num(value)
|
103
|
+
#define RVAL2GINT64(value) rbglib_num_to_int64(value)
|
104
|
+
|
105
|
+
#define GSIZE2RVAL(value) ULONG2NUM(value)
|
106
|
+
#define RVAL2GSIZE(value) NUM2ULONG(value)
|
107
|
+
|
108
|
+
#define GLONG2RVAL(value) LONG2NUM(value)
|
109
|
+
#define RVAL2GLONG(value) NUM2LONG(value)
|
110
|
+
|
111
|
+
#define GOFFSET2RVAL(value) rbglib_int64_to_num(value)
|
112
|
+
#define RVAL2GOFFSET(value) rbglib_num_to_int64(value)
|
113
|
+
|
114
|
+
#define GSSIZE2RVAL(value) LONG2NUM(value)
|
115
|
+
#define RVAL2GSSIZE(value) NUM2LONG(value)
|
116
|
+
|
117
|
+
/* TODO: Should we be zeroing out bits? */
|
118
|
+
#define GUCHAR2RVAL(value) INT2FIX(value)
|
119
|
+
#define RVAL2GUCHAR(value) FIX2INT(value)
|
120
|
+
|
121
|
+
#define GUINT2RVAL(value) UINT2NUM(value)
|
122
|
+
#define RVAL2GUINT(value) NUM2UINT(value)
|
123
|
+
|
124
|
+
/* TODO: Should we be zeroing out bits? */
|
125
|
+
#define GUINT162RVAL(value) INT2FIX(value)
|
126
|
+
#define RVAL2GUINT16(value) FIX2INT(value)
|
127
|
+
|
128
|
+
#define GUINT322RVAL(value) UINT2NUM(value)
|
129
|
+
#define RVAL2GUINT32(value) NUM2UINT(value)
|
130
|
+
|
131
|
+
#define GUINT642RVAL(value) rbglib_uint64_to_num(value)
|
132
|
+
#define RVAL2GUINT64(value) rbglib_num_to_uint64(value)
|
133
|
+
|
134
|
+
#define GULONG2RVAL(value) ULONG2NUM(value)
|
135
|
+
#define RVAL2GULONG(value) NUM2ULONG(value)
|
136
|
+
|
137
|
+
VALUE rbgio_define_domain_error(VALUE module,
|
138
|
+
const char *name,
|
139
|
+
GQuark domain,
|
140
|
+
const char *enum_name,
|
141
|
+
VALUE parent);
|
142
|
+
VALUE rbgio_define_error(VALUE module,
|
143
|
+
const char *name,
|
144
|
+
gint code,
|
145
|
+
VALUE domain_error);
|
146
|
+
NORETURN(void rbgio_raise_error(GError *error));
|
147
|
+
GObject *rbgio_ginitable_new(GType type, VALUE parameters, VALUE cancellable);
|
148
|
+
void rbgio_gasyncinitable_new_async(GType type,
|
149
|
+
VALUE parameters,
|
150
|
+
VALUE io_priority,
|
151
|
+
VALUE cancellable,
|
152
|
+
VALUE block);
|
153
|
+
|
154
|
+
G_END_DECLS
|
155
|
+
|
156
|
+
#endif /* __RBGIO2_H__ */
|
@@ -0,0 +1,154 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18
|
+
* MA 02110-1301 USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifndef __RBGIO2CONVERSIONS_H__
|
22
|
+
#define __RBGIO2CONVERSIONS_H__
|
23
|
+
|
24
|
+
#define RVAL2GAPPINFO(o) (G_APP_INFO(RVAL2GOBJ(o)))
|
25
|
+
#define RVAL2GAPPLAUNCHCONTEXT(o) (G_APP_LAUNCH_CONTEXT(RVAL2GOBJ(o)))
|
26
|
+
#define RVAL2GASYNCINITABLE(o) (G_ASYNC_INITABLE(RVAL2GOBJ(o)))
|
27
|
+
#define RVAL2GASYNCRESULT(o) (G_ASYNC_RESULT(RVAL2GOBJ(o)))
|
28
|
+
#define RVAL2GBUFFEREDINPUTSTREAM(o) (G_BUFFERED_INPUT_STREAM(RVAL2GOBJ(o)))
|
29
|
+
#define RVAL2GBUFFEREDOUTPUTSTREAM(o) (G_BUFFERED_OUTPUT_STREAM(RVAL2GOBJ(o)))
|
30
|
+
#define RVAL2GCANCELLABLE(o) (G_CANCELLABLE(RVAL2GOBJ(o)))
|
31
|
+
#define RVAL2GCHARSETCONVERTER(o) (G_CHARSET_CONVERTER(RVAL2GOBJ(o)))
|
32
|
+
#define RVAL2GCONVERTER(o) (G_CONVERTER(RVAL2GOBJ(o)))
|
33
|
+
#define RVAL2GCONVERTERINPUTSTREAM(o) (G_CONVERTER_INPUT_STREAM(RVAL2GOBJ(o)))
|
34
|
+
#define RVAL2GCONVERTEROUTPUTSTREAM(o) (G_CONVERTER_OUTPUT_STREAM(RVAL2GOBJ(o)))
|
35
|
+
#define RVAL2GDATAINPUTSTREAM(o) (G_DATA_INPUT_STREAM(RVAL2GOBJ(o)))
|
36
|
+
#define RVAL2GDATAOUTPUTSTREAM(o) (G_DATA_OUTPUT_STREAM(RVAL2GOBJ(o)))
|
37
|
+
#define RVAL2GDESKTOPAPPINFO(o) (G_DESKTOP_APP_INFO(RVAL2GOBJ(o)))
|
38
|
+
#define RVAL2GDRIVE(o) (G_DRIVE(RVAL2GOBJ(o)))
|
39
|
+
#define RVAL2GEMBLEM(o) (G_EMBLEM(RVAL2GOBJ(o)))
|
40
|
+
#define RVAL2GEMBLEMEDICON(o) (G_EMBLEMED_ICON(RVAL2GOBJ(o)))
|
41
|
+
#define RVAL2GFILE(o) (G_FILE(RVAL2GOBJ(o)))
|
42
|
+
#define RVAL2GFILEDESCRIPTORBASED(o) (G_FILE_DESCRIPTOR_BASED(RVAL2GOBJ(o)))
|
43
|
+
#define RVAL2GFILEENUMERATOR(o) (G_FILE_ENUMERATOR(RVAL2GOBJ(o)))
|
44
|
+
#define RVAL2GFILEICON(o) (G_FILE_ICON(RVAL2GOBJ(o)))
|
45
|
+
#define RVAL2GFILEINFO(o) (G_FILE_INFO(RVAL2GOBJ(o)))
|
46
|
+
#define RVAL2GFILEINPUTSTREAM(o) (G_FILE_INPUT_STREAM(RVAL2GOBJ(o)))
|
47
|
+
#define RVAL2GFILEIOSTREAM(o) (G_FILE_IO_STREAM(RVAL2GOBJ(o)))
|
48
|
+
#define RVAL2GFILEMONITOR(o) (G_FILE_MONITOR(RVAL2GOBJ(o)))
|
49
|
+
#define RVAL2GFILENAMECOMPLETER(o) (G_FILENAME_COMPLETER(RVAL2GOBJ(o)))
|
50
|
+
#define RVAL2GFILEOUTPUTSTREAM(o) (G_FILE_OUTPUT_STREAM(RVAL2GOBJ(o)))
|
51
|
+
#define RVAL2GICON(o) (G_ICON(RVAL2GOBJ(o)))
|
52
|
+
#define RVAL2GINETADDRESS(o) (G_INET_ADDRESS(RVAL2GOBJ(o)))
|
53
|
+
#define RVAL2GINITABLE(o) (G_INITABLE(RVAL2GOBJ(o)))
|
54
|
+
#define RVAL2GINPUTSTREAM(o) (G_INPUT_STREAM(RVAL2GOBJ(o)))
|
55
|
+
#define RVAL2GIOMODULE(o) (G_IO_MODULE(RVAL2GOBJ(o)))
|
56
|
+
#define RVAL2GIOSTREAM(o) (G_IO_STREAM(RVAL2GOBJ(o)))
|
57
|
+
#define RVAL2GLOADABLEICON(o) (G_LOADABLE_ICON(RVAL2GOBJ(o)))
|
58
|
+
#define RVAL2GMEMORYINPUTSTREAM(o) (G_MEMORY_INPUT_STREAM(RVAL2GOBJ(o)))
|
59
|
+
#define RVAL2GMOUNT(o) (G_MOUNT(RVAL2GOBJ(o)))
|
60
|
+
#define RVAL2GMOUNTOPERATION(o) (G_MOUNT_OPERATION(RVAL2GOBJ(o)))
|
61
|
+
#define RVAL2GNETWORKADDRESS(o) (G_NETWORK_ADDRESS(RVAL2GOBJ(o)))
|
62
|
+
#define RVAL2GNETWORKSERVICE(o) (G_NETWORK_SERVICE(RVAL2GOBJ(o)))
|
63
|
+
#define RVAL2GOUTPUTSTREAM(o) (G_OUTPUT_STREAM(RVAL2GOBJ(o)))
|
64
|
+
#define RVAL2GPERMISSION(o) (G_PERMISSION(RVAL2GOBJ(o)))
|
65
|
+
#define RVAL2GRESOLVER(o) (G_RESOLVER(RVAL2GOBJ(o)))
|
66
|
+
#define RVAL2GSEEKABLE(o) (G_SEEKABLE(RVAL2GOBJ(o)))
|
67
|
+
#define RVAL2GSIMPLEASYNCRESULT(o) (G_SIMPLE_ASYNC_RESULT(RVAL2GOBJ(o)))
|
68
|
+
#define RVAL2GSOCKET(o) (G_SOCKET(RVAL2GOBJ(o)))
|
69
|
+
#define RVAL2GSOCKETADDRESS(o) (G_SOCKET_ADDRESS(RVAL2GOBJ(o)))
|
70
|
+
#define RVAL2GSOCKETADDRESSENUMERATOR(o) (G_SOCKET_ADDRESS_ENUMERATOR(RVAL2GOBJ(o)))
|
71
|
+
#define RVAL2GSOCKETCLIENT(o) (G_SOCKET_CLIENT(RVAL2GOBJ(o)))
|
72
|
+
#define RVAL2GSOCKETCONNECTABLE(o) (G_SOCKET_CONNECTABLE(RVAL2GOBJ(o)))
|
73
|
+
#define RVAL2GSOCKETCONNECTION(o) (G_SOCKET_CONNECTION(RVAL2GOBJ(o)))
|
74
|
+
#define RVAL2GSOCKETCONTROLMESSAGE(o) (G_SOCKET_CONTROL_MESSAGE(RVAL2GOBJ(o)))
|
75
|
+
#define RVAL2GSOCKETLISTENER(o) (G_SOCKET_LISTENER(RVAL2GOBJ(o)))
|
76
|
+
#define RVAL2GSOCKETSERVICE(o) (G_SOCKET_SERVICE(RVAL2GOBJ(o)))
|
77
|
+
#define RVAL2GTHEMEDICON(o) (G_THEMED_ICON(RVAL2GOBJ(o)))
|
78
|
+
#define RVAL2GUNIXCONNECTION(o) (G_UNIX_CONNECTION(RVAL2GOBJ(o)))
|
79
|
+
#define RVAL2GUNIXFDLIST(o) (G_UNIX_FD_LIST(RVAL2GOBJ(o)))
|
80
|
+
#define RVAL2GUNIXFDMESSAGE(o) (G_UNIX_FD_MESSAGE(RVAL2GOBJ(o)))
|
81
|
+
#define RVAL2GUNIXINPUTSTREAM(o) (G_UNIX_INPUT_STREAM(RVAL2GOBJ(o)))
|
82
|
+
#define RVAL2GUNIXMOUNTMONITOR(o) (G_UNIX_MOUNT_MONITOR(RVAL2GOBJ(o)))
|
83
|
+
#define RVAL2GUNIXOUTPUTSTREAM(o) (G_UNIX_OUTPUT_STREAM(RVAL2GOBJ(o)))
|
84
|
+
#define RVAL2GUNIXSOCKETADDRESS(o) (G_UNIX_SOCKET_ADDRESS(RVAL2GOBJ(o)))
|
85
|
+
#define RVAL2GVFS(o) (G_VFS(RVAL2GOBJ(o)))
|
86
|
+
#define RVAL2GVOLUME(o) (G_VOLUME(RVAL2GOBJ(o)))
|
87
|
+
#define RVAL2GVOLUMEMONITOR(o) (G_VOLUME_MONITOR(RVAL2GOBJ(o)))
|
88
|
+
#define RVAL2GZLIBCOMPRESSOR(o) (G_ZLIB_COMPRESSOR(RVAL2GOBJ(o)))
|
89
|
+
#define RVAL2GZLIBDECOMPRESSOR(o) (G_ZLIB_DECOMPRESSOR(RVAL2GOBJ(o)))
|
90
|
+
|
91
|
+
#define RVAL2GFILEATTRIBUTEINFO(o) ((GFileAttributeInfo*)RVAL2BOXED(o, G_TYPE_FILE_ATTRIBUTE_INFO))
|
92
|
+
#define GFILEATTRIBUTEINFO2RVAL(o) (BOXED2RVAL(o, G_TYPE_FILE_ATTRIBUTE_INFO))
|
93
|
+
#define RVAL2GFILEATTRIBUTEINFOLIST(o) ((GFileAttributeInfoList*)RVAL2BOXED(o, G_TYPE_FILE_ATTRIBUTE_INFO_LIST))
|
94
|
+
#define GFILEATTRIBUTEINFOLIST2RVAL(o) (BOXED2RVAL(o, G_TYPE_FILE_ATTRIBUTE_INFO_LIST))
|
95
|
+
#define RVAL2GFILEATTRIBUTEMATCHER(o) ((GFileAttributeMatcher*)RVAL2BOXED(o, G_TYPE_FILE_ATTRIBUTE_MATCHER))
|
96
|
+
#define GFILEATTRIBUTEMATCHER2RVAL(o) (BOXED2RVAL(o, G_TYPE_FILE_ATTRIBUTE_MATCHER))
|
97
|
+
#define RVAL2GSRVTARGET(o) ((GSrvTarget*)RVAL2BOXED(o, G_TYPE_SRV_TARGET))
|
98
|
+
#define GSRVTARGET2RVAL(o) (BOXED2RVAL(o, G_TYPE_SRV_TARGET))
|
99
|
+
|
100
|
+
#define RVAL2GDATASTREAMBYTEORDER(o) (RVAL2GENUM(o, G_TYPE_DATA_STREAM_BYTE_ORDER))
|
101
|
+
#define GDATASTREAMBYTEORDER2RVAL(o) (GENUM2RVAL(o, G_TYPE_DATA_STREAM_BYTE_ORDER))
|
102
|
+
#define RVAL2GDATASTREAMNEWLINETYPE(o) (RVAL2GENUM(o, G_TYPE_DATA_STREAM_NEWLINE_TYPE))
|
103
|
+
#define GDATASTREAMNEWLINETYPE2RVAL(o) (GENUM2RVAL(o, G_TYPE_DATA_STREAM_NEWLINE_TYPE))
|
104
|
+
#define RVAL2GDRIVESTARTFLAGS(o) (RVAL2GENUM(o, G_TYPE_DRIVE_START_FLAGS))
|
105
|
+
#define GDRIVESTARTFLAGS2RVAL(o) (GENUM2RVAL(o, G_TYPE_DRIVE_START_FLAGS))
|
106
|
+
#define RVAL2GDRIVESTARTSTOPTYPE(o) (RVAL2GENUM(o, G_TYPE_DRIVE_START_STOP_TYPE))
|
107
|
+
#define GDRIVESTARTSTOPTYPE2RVAL(o) (GENUM2RVAL(o, G_TYPE_DRIVE_START_STOP_TYPE))
|
108
|
+
#define RVAL2GEMBLEMORIGIN(o) (RVAL2GENUM(o, G_TYPE_EMBLEM_ORIGIN))
|
109
|
+
#define GEMBLEMORIGIN2RVAL(o) (GENUM2RVAL(o, G_TYPE_EMBLEM_ORIGIN))
|
110
|
+
#define RVAL2GFILEATTRIBUTESTATUS(o) (RVAL2GENUM(o, G_TYPE_FILE_ATTRIBUTE_STATUS))
|
111
|
+
#define GFILEATTRIBUTESTATUS2RVAL(o) (GENUM2RVAL(o, G_TYPE_FILE_ATTRIBUTE_STATUS))
|
112
|
+
#define RVAL2GFILEATTRIBUTETYPE(o) (RVAL2GENUM(o, G_TYPE_FILE_ATTRIBUTE_TYPE))
|
113
|
+
#define GFILEATTRIBUTETYPE2RVAL(o) (GENUM2RVAL(o, G_TYPE_FILE_ATTRIBUTE_TYPE))
|
114
|
+
#define RVAL2GFILETYPE(o) (RVAL2GENUM(o, G_TYPE_FILE_TYPE))
|
115
|
+
#define GFILETYPE2RVAL(o) (GENUM2RVAL(o, G_TYPE_FILE_TYPE))
|
116
|
+
#define RVAL2GMOUNTMOUNTFLAGS(o) (RVAL2GENUM(o, G_TYPE_MOUNT_MOUNT_FLAGS))
|
117
|
+
#define GMOUNTMOUNTFLAGS2RVAL(o) (GENUM2RVAL(o, G_TYPE_MOUNT_MOUNT_FLAGS))
|
118
|
+
#define RVAL2GMOUNTOPERATIONRESULT(o) (RVAL2GENUM(o, G_TYPE_MOUNT_OPERATION_RESULT))
|
119
|
+
#define GMOUNTOPERATIONRESULT2RVAL(o) (GENUM2RVAL(o, G_TYPE_MOUNT_OPERATION_RESULT))
|
120
|
+
#define RVAL2GPASSWORDSAVE(o) (RVAL2GENUM(o, G_TYPE_PASSWORD_SAVE))
|
121
|
+
#define GPASSWORDSAVE2RVAL(o) (GENUM2RVAL(o, G_TYPE_PASSWORD_SAVE))
|
122
|
+
#define RVAL2GSOCKETFAMILY(o) (RVAL2GENUM(o, G_TYPE_SOCKET_FAMILY))
|
123
|
+
#define GSOCKETFAMILY2RVAL(o) (GENUM2RVAL(o, G_TYPE_SOCKET_FAMILY))
|
124
|
+
#define RVAL2GSOCKETPROTOCOL(o) (RVAL2GENUM(o, G_TYPE_SOCKET_PROTOCOL))
|
125
|
+
#define GSOCKETPROTOCOL2RVAL(o) (GENUM2RVAL(o, G_TYPE_SOCKET_PROTOCOL))
|
126
|
+
#define RVAL2GSOCKETTYPE(o) (RVAL2GENUM(o, G_TYPE_SOCKET_TYPE))
|
127
|
+
#define GSOCKETTYPE2RVAL(o) (GENUM2RVAL(o, G_TYPE_SOCKET_TYPE))
|
128
|
+
|
129
|
+
#define RVAL2GAPPINFOCREATEFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_APP_INFO_CREATE_FLAGS))
|
130
|
+
#define GAPPINFOCREATEFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_APP_INFO_CREATE_FLAGS))
|
131
|
+
#define RVAL2GAPPLICATIONFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_APPLICATION_FLAGS))
|
132
|
+
#define GAPPLICATIONFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_APPLICATION_FLAGS))
|
133
|
+
#define RVAL2GCONVERTERFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_CONVERTER_FLAGS))
|
134
|
+
#define GCONVERTERFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_CONVERTER_FLAGS))
|
135
|
+
#define RVAL2GCONVERTERRESULT(o) (RVAL2GFLAGS(o, G_TYPE_CONVERTER_RESULT))
|
136
|
+
#define GCONVERTERRESULT2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_CONVERTER_RESULT))
|
137
|
+
#define RVAL2GFILEATTRIBUTEINFOFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_FILE_ATTRIBUTE_INFO_FLAGS))
|
138
|
+
#define GFILEATTRIBUTEINFOFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_FILE_ATTRIBUTE_INFO_FLAGS))
|
139
|
+
#define RVAL2GFILECOPYFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_FILE_COPY_FLAGS))
|
140
|
+
#define GFILECOPYFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_FILE_COPY_FLAGS))
|
141
|
+
#define RVAL2GFILECREATEFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_FILE_CREATE_FLAGS))
|
142
|
+
#define GFILECREATEFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_FILE_CREATE_FLAGS))
|
143
|
+
#define RVAL2GFILEMONITORFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_FILE_MONITOR_FLAGS))
|
144
|
+
#define GFILEMONITORFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_FILE_MONITOR_FLAGS))
|
145
|
+
#define RVAL2GFILEQUERYINFOFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_FILE_QUERY_INFO_FLAGS))
|
146
|
+
#define GFILEQUERYINFOFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_FILE_QUERY_INFO_FLAGS))
|
147
|
+
#define RVAL2GMOUNTUNMOUNTFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_MOUNT_UNMOUNT_FLAGS))
|
148
|
+
#define GMOUNTUNMOUNTFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_MOUNT_UNMOUNT_FLAGS))
|
149
|
+
#define RVAL2GOUTPUTSTREAMSPLICEFLAGS(o) (RVAL2GFLAGS(o, G_TYPE_OUTPUT_STREAM_SPLICE_FLAGS))
|
150
|
+
#define GOUTPUTSTREAMSPLICEFLAGS2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_OUTPUT_STREAM_SPLICE_FLAGS))
|
151
|
+
#define RVAL2GZLIBCOMPRESSORFORMAT(o) (RVAL2GFLAGS(o, G_TYPE_ZLIB_COMPRESSOR_FORMAT))
|
152
|
+
#define GZLIBCOMPRESSORFORMAT2RVAL(o) (GFLAGS2RVAL(o, G_TYPE_ZLIB_COMPRESSOR_FORMAT))
|
153
|
+
|
154
|
+
#endif /* __RBGIO2CONVERSIONS_H__ */
|
@@ -0,0 +1,147 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18
|
+
* MA 02110-1301 USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifndef __RBGIO2PRIVATE_H__
|
22
|
+
#define __RBGIO2PRIVATE_H__
|
23
|
+
|
24
|
+
#include <ruby.h>
|
25
|
+
|
26
|
+
#include <rbglib.h>
|
27
|
+
#include <rbgobject.h>
|
28
|
+
#include "rbgio2.h"
|
29
|
+
|
30
|
+
#define CSTR2RVAL_TAINTED(string, length) \
|
31
|
+
rbgio_cstr_to_rval_tainted((string), (length))
|
32
|
+
#define CSTR2RVAL_TAINTED_FREE(string, length) \
|
33
|
+
rbgio_cstr_to_rval_tainted_free((string), (length))
|
34
|
+
|
35
|
+
#define GLIST2ARY_UNREF_FREE(list) rbgio_glist_to_ary_unref_free(list)
|
36
|
+
|
37
|
+
#define GFDS2ARY(fds) rbgio_fds_to_ary(fds)
|
38
|
+
#define GFDS2ARY_FREE(fds) rbgio_fds_to_ary_free(fds)
|
39
|
+
|
40
|
+
#define GFILEARY2GLIST(ary) rbgio_gfile_ary_to_glist(ary)
|
41
|
+
#define GFILEARY2GLIST_ACCEPT_NIL(ary) rbgio_gfile_ary_to_glist_accept_nil(ary)
|
42
|
+
|
43
|
+
G_GNUC_INTERNAL VALUE rbgio_cstr_to_rval_tainted(const char *string,
|
44
|
+
gsize length);
|
45
|
+
G_GNUC_INTERNAL VALUE rbgio_cstr_to_rval_tainted_free(char *string,
|
46
|
+
gsize length);
|
47
|
+
G_GNUC_INTERNAL VALUE rbgio_glist_to_ary_unref_free(GList *list);
|
48
|
+
G_GNUC_INTERNAL VALUE rbgio_fds_to_ary(const gint *fds);
|
49
|
+
G_GNUC_INTERNAL VALUE rbgio_fds_to_ary_free(gint *fds);
|
50
|
+
G_GNUC_INTERNAL GList *rbgio_gfile_ary_to_glist(VALUE ary);
|
51
|
+
G_GNUC_INTERNAL GList *rbgio_gfile_ary_to_glist_accept_nil(VALUE ary);
|
52
|
+
G_GNUC_INTERNAL void rbgio_rval_to_gtimeval(VALUE value, GTimeVal *time);
|
53
|
+
G_GNUC_INTERNAL void rbgio_async_ready_callback(GObject *source,
|
54
|
+
GAsyncResult *result,
|
55
|
+
gpointer data);
|
56
|
+
G_GNUC_INTERNAL VALUE rbgio_child_remove_and_return(VALUE parent, VALUE child);
|
57
|
+
|
58
|
+
G_GNUC_INTERNAL void Init_gio(void);
|
59
|
+
G_GNUC_INTERNAL void Init_gappinfo(VALUE glib);
|
60
|
+
G_GNUC_INTERNAL void Init_gapplaunchcontext(VALUE glib);
|
61
|
+
G_GNUC_INTERNAL void Init_gasyncinitable(VALUE glib);
|
62
|
+
G_GNUC_INTERNAL void Init_gasyncresult(VALUE glib);
|
63
|
+
G_GNUC_INTERNAL void Init_gbufferedinputstream(VALUE glib);
|
64
|
+
G_GNUC_INTERNAL void Init_gbufferedoutputstream(VALUE glib);
|
65
|
+
G_GNUC_INTERNAL void Init_gcancellable(VALUE glib);
|
66
|
+
G_GNUC_INTERNAL void Init_gcharsetconverter(VALUE glib);
|
67
|
+
G_GNUC_INTERNAL void Init_gcontenttype(VALUE glib);
|
68
|
+
G_GNUC_INTERNAL void Init_gconverter(VALUE glib);
|
69
|
+
G_GNUC_INTERNAL void Init_gconverterinputstream(VALUE glib);
|
70
|
+
G_GNUC_INTERNAL void Init_gconverteroutputstream(VALUE glib);
|
71
|
+
G_GNUC_INTERNAL void Init_gdatainputstream(VALUE glib);
|
72
|
+
G_GNUC_INTERNAL void Init_gdataoutputstream(VALUE glib);
|
73
|
+
G_GNUC_INTERNAL void Init_gdesktopappinfo(VALUE glib);
|
74
|
+
G_GNUC_INTERNAL void Init_gdrive(VALUE glib);
|
75
|
+
G_GNUC_INTERNAL void Init_gemblem(VALUE glib);
|
76
|
+
G_GNUC_INTERNAL void Init_gemblemedicon(VALUE glib);
|
77
|
+
G_GNUC_INTERNAL void Init_gfile(VALUE glib);
|
78
|
+
G_GNUC_INTERNAL void Init_gfileattribute(VALUE glib);
|
79
|
+
G_GNUC_INTERNAL void Init_gfileattributeinfo(VALUE glib);
|
80
|
+
G_GNUC_INTERNAL void Init_fileattributeinfolist(VALUE glib);
|
81
|
+
G_GNUC_INTERNAL void Init_gfileattributematcher(VALUE glib);
|
82
|
+
G_GNUC_INTERNAL void Init_gfiledescriptorbased(VALUE glib);
|
83
|
+
G_GNUC_INTERNAL void Init_gfileenumerator(VALUE glib);
|
84
|
+
G_GNUC_INTERNAL void Init_gfileicon(VALUE glib);
|
85
|
+
G_GNUC_INTERNAL void Init_gfileinfo(VALUE glib);
|
86
|
+
G_GNUC_INTERNAL void Init_gfileinputstream(VALUE glib);
|
87
|
+
G_GNUC_INTERNAL void Init_gfileiostream(VALUE glib);
|
88
|
+
G_GNUC_INTERNAL void Init_gfilemonitor(VALUE glib);
|
89
|
+
G_GNUC_INTERNAL void Init_gfilenamecompleter(VALUE glib);
|
90
|
+
G_GNUC_INTERNAL void Init_gfileoutputstream(VALUE glib);
|
91
|
+
G_GNUC_INTERNAL void Init_gfilterinputstream(VALUE glib);
|
92
|
+
G_GNUC_INTERNAL void Init_gfilteroutputstream(VALUE glib);
|
93
|
+
G_GNUC_INTERNAL void Init_gicon(VALUE glib);
|
94
|
+
G_GNUC_INTERNAL void Init_ginetaddress(VALUE glib);
|
95
|
+
G_GNUC_INTERNAL void Init_ginetsocketaddress(VALUE glib);
|
96
|
+
G_GNUC_INTERNAL void Init_ginitable(VALUE glib);
|
97
|
+
G_GNUC_INTERNAL void Init_ginputstream(VALUE glib);
|
98
|
+
G_GNUC_INTERNAL void Init_gioerror(VALUE glib);
|
99
|
+
G_GNUC_INTERNAL void Init_giomodule(VALUE glib);
|
100
|
+
G_GNUC_INTERNAL void Init_giomodules(VALUE glib);
|
101
|
+
G_GNUC_INTERNAL void Init_gioscheduler(VALUE glib);
|
102
|
+
G_GNUC_INTERNAL void Init_gioschedulerjob(VALUE glib);
|
103
|
+
G_GNUC_INTERNAL void Init_giostream(VALUE glib);
|
104
|
+
G_GNUC_INTERNAL void Init_gloadableicon(VALUE glib);
|
105
|
+
G_GNUC_INTERNAL void Init_gmemoryinputstream(VALUE glib);
|
106
|
+
G_GNUC_INTERNAL void Init_gmemoryoutputstream(VALUE glib);
|
107
|
+
G_GNUC_INTERNAL void Init_gmount(VALUE glib);
|
108
|
+
G_GNUC_INTERNAL void Init_gmountoperation(VALUE glib);
|
109
|
+
G_GNUC_INTERNAL void Init_gnetworkaddress(VALUE glib);
|
110
|
+
G_GNUC_INTERNAL void Init_gnetworkservice(VALUE glib);
|
111
|
+
G_GNUC_INTERNAL void Init_goutputstream(VALUE glib);
|
112
|
+
G_GNUC_INTERNAL void Init_gresolver(VALUE glib);
|
113
|
+
G_GNUC_INTERNAL void Init_gseekable(VALUE glib);
|
114
|
+
G_GNUC_INTERNAL void Init_gsimpleasyncresult(VALUE glib);
|
115
|
+
G_GNUC_INTERNAL void Init_gsocket(VALUE glib);
|
116
|
+
G_GNUC_INTERNAL void Init_gsocketaddress(VALUE glib);
|
117
|
+
G_GNUC_INTERNAL void Init_gsocketclient(VALUE glib);
|
118
|
+
G_GNUC_INTERNAL void Init_gsocketconnectable(VALUE glib);
|
119
|
+
G_GNUC_INTERNAL void Init_gsocketaddressenumerator(VALUE glib);
|
120
|
+
G_GNUC_INTERNAL void Init_gsocketconnection(VALUE glib);
|
121
|
+
G_GNUC_INTERNAL void Init_gsocketconnectionfactory(VALUE glib);
|
122
|
+
G_GNUC_INTERNAL void Init_gsocketcontrolmessage(VALUE glib);
|
123
|
+
G_GNUC_INTERNAL void Init_gsocketlistener(VALUE glib);
|
124
|
+
G_GNUC_INTERNAL void Init_gsocketservice(VALUE glib);
|
125
|
+
G_GNUC_INTERNAL void Init_gsrvtarget(VALUE glib);
|
126
|
+
G_GNUC_INTERNAL void Init_gtcpconnection(VALUE glib);
|
127
|
+
G_GNUC_INTERNAL void Init_gthreadedsocketservice(VALUE glib);
|
128
|
+
G_GNUC_INTERNAL void Init_gthemedicon(VALUE glib);
|
129
|
+
G_GNUC_INTERNAL void Init_gunixconnection(VALUE glib);
|
130
|
+
G_GNUC_INTERNAL void Init_gunixfdlist(VALUE glib);
|
131
|
+
G_GNUC_INTERNAL void Init_gunixfdmessage(VALUE glib);
|
132
|
+
G_GNUC_INTERNAL void Init_gunixinputstream(VALUE glib);
|
133
|
+
G_GNUC_INTERNAL void Init_gunixmount(VALUE glib);
|
134
|
+
G_GNUC_INTERNAL void Init_gunixmounts(VALUE glib);
|
135
|
+
G_GNUC_INTERNAL void Init_gunixmountpoint(VALUE glib);
|
136
|
+
G_GNUC_INTERNAL void Init_gunixmountpoints(VALUE glib);
|
137
|
+
G_GNUC_INTERNAL void Init_gunixmountmonitor(VALUE glib);
|
138
|
+
G_GNUC_INTERNAL void Init_gunixoutputstream(VALUE glib);
|
139
|
+
G_GNUC_INTERNAL void Init_gunixsocketaddress(VALUE glib);
|
140
|
+
G_GNUC_INTERNAL void Init_gvfs(VALUE glib);
|
141
|
+
G_GNUC_INTERNAL void Init_gvolume(VALUE glib);
|
142
|
+
G_GNUC_INTERNAL void Init_gvolumemonitor(VALUE glib);
|
143
|
+
G_GNUC_INTERNAL void Init_gzlibcompressor(VALUE glib);
|
144
|
+
G_GNUC_INTERNAL void Init_gzlibdecompressor(VALUE glib);
|
145
|
+
G_GNUC_INTERNAL void Init_util(void);
|
146
|
+
|
147
|
+
#endif /* __RBGIO2PRIVATE_H__ */
|