glib2 0.90.8-x86-mingw32 → 0.90.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +46 -0
- data/Rakefile +1 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_iochannel.c +15 -6
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/ext/glib2/rbgobject.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +3 -2
- data/lib/mkmf-gnome2.rb +47 -23
- data/test/glib-test-init.rb +1 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +3 -2
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/include/glib-2.0/gio/gaction.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
- data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
- data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
- data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
- data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
- data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
- data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
- data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
- data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
- data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
- data/vendor/local/lib/gio-2.0.def +142 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +21 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +3 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
- data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
- data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
- data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
- data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
- data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
- data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
- data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
- data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -2
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
- metadata +78 -146
- data/ext/glib2/Makefile +0 -169
- data/ext/glib2/glib-enum-types.c +0 -1065
- data/ext/glib2/glib-enum-types.h +0 -144
- data/ext/glib2/ruby-glib2.pc +0 -3
- data/test-unit/COPYING +0 -56
- data/test-unit/GPL +0 -340
- data/test-unit/History.txt +0 -279
- data/test-unit/Manifest.txt +0 -110
- data/test-unit/PSFL +0 -271
- data/test-unit/README.txt +0 -75
- data/test-unit/Rakefile +0 -53
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +0 -153
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +0 -469
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +0 -82
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +0 -393
- data/test-unit/html/index.html +0 -285
- data/test-unit/html/index.html.ja +0 -299
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +0 -636
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +0 -483
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +0 -339
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +0 -559
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit.rb +0 -328
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1792
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -415
- data/test-unit/lib/test/unit/collector.rb +0 -38
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -187
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/collector/xml.rb +0 -250
- data/test-unit/lib/test/unit/color-scheme.rb +0 -106
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -740
- data/test-unit/lib/test/unit/error.rb +0 -131
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/runner/xml.rb +0 -15
- data/test-unit/lib/test/unit/testcase.rb +0 -515
- data/test-unit/lib/test/unit/testresult.rb +0 -125
- data/test-unit/lib/test/unit/testsuite.rb +0 -134
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/output.rb +0 -31
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -22
- data/test-unit/test/test-assertions.rb +0 -1849
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -69
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -324
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -569
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -137
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_tap.rb +0 -33
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test-output.rb +0 -11
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-core.html" title="GLib Core Application Support">
|
9
9
|
<link rel="prev" href="glib-Memory-Allocation.html" title="Memory Allocation">
|
10
10
|
<link rel="next" href="glib-Error-Reporting.html" title="Error Reporting">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-IO-Channels.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-IO-Channels"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -36,164 +36,162 @@
|
|
36
36
|
</td>
|
37
37
|
<td valign="top" align="right"></td>
|
38
38
|
</tr></table></div>
|
39
|
-
<div class="refsynopsisdiv"
|
39
|
+
<div class="refsynopsisdiv">
|
40
40
|
<a name="glib-IO-Channels.synopsis"></a><h2>Synopsis</h2>
|
41
41
|
<pre class="synopsis">
|
42
42
|
#include <glib.h>
|
43
43
|
|
44
|
-
|
44
|
+
struct <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel">GIOChannel</a>;
|
45
45
|
|
46
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a
|
47
|
-
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-unix-get-fd" title="g_io_channel_unix_get_fd ()">g_io_channel_unix_get_fd</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
48
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a
|
49
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-win32-new-socket" title="g_io_channel_win32_new_socket ()">g_io_channel_win32_new_socket</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> socket</code></em>);
|
50
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-win32-new-messages" title="g_io_channel_win32_new_messages ()">g_io_channel_win32_new_messages</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> hwnd</code></em>);
|
46
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-unix-new" title="g_io_channel_unix_new ()">g_io_channel_unix_new</a> (<em class="parameter"><code><span class="type">int</span> fd</code></em>);
|
47
|
+
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-unix-get-fd" title="g_io_channel_unix_get_fd ()">g_io_channel_unix_get_fd</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
48
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-win32-new-fd" title="g_io_channel_win32_new_fd ()">g_io_channel_win32_new_fd</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> fd</code></em>);
|
49
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-win32-new-socket" title="g_io_channel_win32_new_socket ()">g_io_channel_win32_new_socket</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> socket</code></em>);
|
50
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-win32-new-messages" title="g_io_channel_win32_new_messages ()">g_io_channel_win32_new_messages</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> hwnd</code></em>);
|
51
51
|
|
52
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-init" title="g_io_channel_init ()">g_io_channel_init</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
52
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-init" title="g_io_channel_init ()">g_io_channel_init</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
57
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-chars" title="g_io_channel_read_chars ()">g_io_channel_read_chars</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
54
|
+
#define <a class="link" href="glib-IO-Channels.html#g-io-channel-new-file" title="g_io_channel_new_file">g_io_channel_new_file</a>
|
55
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-chars" title="g_io_channel_read_chars ()">g_io_channel_read_chars</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
58
56
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
59
57
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> count</code></em>,
|
60
58
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
61
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
62
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-unichar" title="g_io_channel_read_unichar ()">g_io_channel_read_unichar</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
59
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
60
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-unichar" title="g_io_channel_read_unichar ()">g_io_channel_read_unichar</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
63
61
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *thechar</code></em>,
|
64
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
65
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-line" title="g_io_channel_read_line ()">g_io_channel_read_line</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
62
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
63
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-line" title="g_io_channel_read_line ()">g_io_channel_read_line</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
66
64
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **str_return</code></em>,
|
67
65
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
|
68
66
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *terminator_pos</code></em>,
|
69
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
70
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-line-string" title="g_io_channel_read_line_string ()">g_io_channel_read_line_string</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
71
|
-
<em class="parameter"><code><a class="link" href="glib-Strings.html#GString" title="GString"><span class="type">GString</span></a> *buffer</code></em>,
|
67
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
68
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-line-string" title="g_io_channel_read_line_string ()">g_io_channel_read_line_string</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
69
|
+
<em class="parameter"><code><a class="link" href="glib-Strings.html#GString" title="struct GString"><span class="type">GString</span></a> *buffer</code></em>,
|
72
70
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *terminator_pos</code></em>,
|
73
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
74
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-to-end" title="g_io_channel_read_to_end ()">g_io_channel_read_to_end</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
71
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
72
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read-to-end" title="g_io_channel_read_to_end ()">g_io_channel_read_to_end</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
75
73
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **str_return</code></em>,
|
76
74
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
|
77
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
78
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-write-chars" title="g_io_channel_write_chars ()">g_io_channel_write_chars</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
75
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
76
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-write-chars" title="g_io_channel_write_chars ()">g_io_channel_write_chars</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
79
77
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
80
78
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> count</code></em>,
|
81
79
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
82
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
83
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-write-unichar" title="g_io_channel_write_unichar ()">g_io_channel_write_unichar</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
80
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
81
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-write-unichar" title="g_io_channel_write_unichar ()">g_io_channel_write_unichar</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
84
82
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> thechar</code></em>,
|
85
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
86
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-flush" title="g_io_channel_flush ()">g_io_channel_flush</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
87
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
88
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-seek-position" title="g_io_channel_seek_position ()">g_io_channel_seek_position</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
83
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
84
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-flush" title="g_io_channel_flush ()">g_io_channel_flush</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
85
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
86
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-seek-position" title="g_io_channel_seek_position ()">g_io_channel_seek_position</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
89
87
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> offset</code></em>,
|
90
88
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GSeekType" title="enum GSeekType"><span class="type">GSeekType</span></a> type</code></em>,
|
91
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
89
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
92
90
|
enum <a class="link" href="glib-IO-Channels.html#GSeekType" title="enum GSeekType">GSeekType</a>;
|
93
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-shutdown" title="g_io_channel_shutdown ()">g_io_channel_shutdown</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
91
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-shutdown" title="g_io_channel_shutdown ()">g_io_channel_shutdown</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
94
92
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> flush</code></em>,
|
95
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **err</code></em>);
|
93
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **err</code></em>);
|
96
94
|
|
97
95
|
enum <a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus">GIOStatus</a>;
|
98
96
|
enum <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError">GIOChannelError</a>;
|
99
97
|
#define <a class="link" href="glib-IO-Channels.html#G-IO-CHANNEL-ERROR:CAPS" title="G_IO_CHANNEL_ERROR">G_IO_CHANNEL_ERROR</a>
|
100
98
|
<a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="returnvalue">GIOChannelError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-error-from-errno" title="g_io_channel_error_from_errno ()">g_io_channel_error_from_errno</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> en</code></em>);
|
101
99
|
|
102
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-ref" title="g_io_channel_ref ()">g_io_channel_ref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
103
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-unref" title="g_io_channel_unref ()">g_io_channel_unref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
100
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-ref" title="g_io_channel_ref ()">g_io_channel_ref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
101
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-unref" title="g_io_channel_unref ()">g_io_channel_unref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
104
102
|
|
105
|
-
<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource"><span class="returnvalue">GSource</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-create-watch" title="g_io_create_watch ()">g_io_create_watch</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
103
|
+
<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="struct GSource"><span class="returnvalue">GSource</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-create-watch" title="g_io_create_watch ()">g_io_create_watch</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
106
104
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>);
|
107
|
-
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-IO-Channels.html#g-io-add-watch" title="g_io_add_watch ()">g_io_add_watch</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
105
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-IO-Channels.html#g-io-add-watch" title="g_io_add_watch ()">g_io_add_watch</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
108
106
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
109
107
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOFunc" title="GIOFunc ()"><span class="type">GIOFunc</span></a> func</code></em>,
|
110
108
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
|
111
|
-
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-IO-Channels.html#g-io-add-watch-full" title="g_io_add_watch_full ()">g_io_add_watch_full</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
109
|
+
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-IO-Channels.html#g-io-add-watch-full" title="g_io_add_watch_full ()">g_io_add_watch_full</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
112
110
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> priority</code></em>,
|
113
111
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
114
112
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOFunc" title="GIOFunc ()"><span class="type">GIOFunc</span></a> func</code></em>,
|
115
113
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
116
114
|
<em class="parameter"><code><a class="link" href="glib-Datasets.html#GDestroyNotify" title="GDestroyNotify ()"><span class="type">GDestroyNotify</span></a> notify</code></em>);
|
117
115
|
enum <a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition">GIOCondition</a>;
|
118
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="glib-IO-Channels.html#GIOFunc" title="GIOFunc ()">*GIOFunc</a>) (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *source</code></em>,
|
116
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="glib-IO-Channels.html#GIOFunc" title="GIOFunc ()">*GIOFunc</a>) (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *source</code></em>,
|
119
117
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
120
118
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>);
|
121
119
|
|
122
|
-
|
120
|
+
struct <a class="link" href="glib-IO-Channels.html#GIOFuncs" title="struct GIOFuncs">GIOFuncs</a>;
|
123
121
|
|
124
|
-
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-buffer-size" title="g_io_channel_get_buffer_size ()">g_io_channel_get_buffer_size</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
125
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-buffer-size" title="g_io_channel_set_buffer_size ()">g_io_channel_set_buffer_size</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
122
|
+
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-buffer-size" title="g_io_channel_get_buffer_size ()">g_io_channel_get_buffer_size</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
123
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-buffer-size" title="g_io_channel_set_buffer_size ()">g_io_channel_set_buffer_size</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
126
124
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> size</code></em>);
|
127
|
-
<a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="returnvalue">GIOCondition</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-buffer-condition" title="g_io_channel_get_buffer_condition ()">g_io_channel_get_buffer_condition</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
128
|
-
<a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="returnvalue">GIOFlags</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-flags" title="g_io_channel_get_flags ()">g_io_channel_get_flags</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
129
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-flags" title="g_io_channel_set_flags ()">g_io_channel_set_flags</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
125
|
+
<a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="returnvalue">GIOCondition</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-buffer-condition" title="g_io_channel_get_buffer_condition ()">g_io_channel_get_buffer_condition</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
126
|
+
<a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="returnvalue">GIOFlags</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-flags" title="g_io_channel_get_flags ()">g_io_channel_get_flags</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
127
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-flags" title="g_io_channel_set_flags ()">g_io_channel_set_flags</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
130
128
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="type">GIOFlags</span></a> flags</code></em>,
|
131
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
129
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
132
130
|
enum <a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags">GIOFlags</a>;
|
133
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
131
|
+
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-get-line-term" title="g_io_channel_get_line_term ()">g_io_channel_get_line_term</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
134
132
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *length</code></em>);
|
135
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-line-term" title="g_io_channel_set_line_term ()">g_io_channel_set_line_term</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
133
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-line-term" title="g_io_channel_set_line_term ()">g_io_channel_set_line_term</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
136
134
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *line_term</code></em>,
|
137
135
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> length</code></em>);
|
138
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-buffered" title="g_io_channel_get_buffered ()">g_io_channel_get_buffered</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
139
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-buffered" title="g_io_channel_set_buffered ()">g_io_channel_set_buffered</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
136
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-buffered" title="g_io_channel_get_buffered ()">g_io_channel_get_buffered</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
137
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-buffered" title="g_io_channel_set_buffered ()">g_io_channel_set_buffered</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
140
138
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> buffered</code></em>);
|
141
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
142
|
-
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding" title="g_io_channel_set_encoding ()">g_io_channel_set_encoding</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
139
|
+
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-IO-Channels.html#g-io-channel-get-encoding" title="g_io_channel_get_encoding ()">g_io_channel_get_encoding</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
140
|
+
<a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding" title="g_io_channel_set_encoding ()">g_io_channel_set_encoding</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
143
141
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *encoding</code></em>,
|
144
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
145
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-close-on-unref" title="g_io_channel_get_close_on_unref ()">g_io_channel_get_close_on_unref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
146
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-close-on-unref" title="g_io_channel_set_close_on_unref ()">g_io_channel_set_close_on_unref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
142
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
143
|
+
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-get-close-on-unref" title="g_io_channel_get_close_on_unref ()">g_io_channel_get_close_on_unref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
144
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-set-close-on-unref" title="g_io_channel_set_close_on_unref ()">g_io_channel_set_close_on_unref</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
147
145
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> do_close</code></em>);
|
148
146
|
|
149
147
|
|
150
|
-
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read" title="g_io_channel_read ()">g_io_channel_read</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
148
|
+
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-read" title="g_io_channel_read ()">g_io_channel_read</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
151
149
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
152
150
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> count</code></em>,
|
153
151
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>);
|
154
152
|
enum <a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError">GIOError</a>;
|
155
|
-
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-write" title="g_io_channel_write ()">g_io_channel_write</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
153
|
+
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-write" title="g_io_channel_write ()">g_io_channel_write</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
156
154
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
157
155
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> count</code></em>,
|
158
156
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>);
|
159
|
-
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" title="g_io_channel_seek ()">g_io_channel_seek</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
157
|
+
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" title="g_io_channel_seek ()">g_io_channel_seek</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
160
158
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> offset</code></em>,
|
161
159
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GSeekType" title="enum GSeekType"><span class="type">GSeekType</span></a> type</code></em>);
|
162
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-close" title="g_io_channel_close ()">g_io_channel_close</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
160
|
+
<span class="returnvalue">void</span> <a class="link" href="glib-IO-Channels.html#g-io-channel-close" title="g_io_channel_close ()">g_io_channel_close</a> (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
163
161
|
</pre>
|
164
162
|
</div>
|
165
|
-
<div class="refsect1"
|
163
|
+
<div class="refsect1">
|
166
164
|
<a name="glib-IO-Channels.description"></a><h2>Description</h2>
|
167
165
|
<p>
|
168
|
-
The <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> data type aims to provide a portable method for
|
166
|
+
The <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> data type aims to provide a portable method for
|
169
167
|
using file descriptors, pipes, and sockets, and integrating them
|
170
168
|
into the <a class="link" href="glib-The-Main-Event-Loop.html" title="The Main Event Loop">main event
|
171
169
|
loop</a>. Currently full support is available on UNIX platforms,
|
172
170
|
support for Windows is only partially complete.
|
173
171
|
</p>
|
174
172
|
<p>
|
175
|
-
To create a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> on UNIX systems use
|
173
|
+
To create a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> on UNIX systems use
|
176
174
|
<a class="link" href="glib-IO-Channels.html#g-io-channel-unix-new" title="g_io_channel_unix_new ()"><code class="function">g_io_channel_unix_new()</code></a>. This works for plain file descriptors,
|
177
175
|
pipes and sockets. Alternatively, a channel can be created for a
|
178
|
-
file in a system independent manner using <a class="link" href="glib-IO-Channels.html#g-io-channel-new-file" title="g_io_channel_new_file
|
176
|
+
file in a system independent manner using <a class="link" href="glib-IO-Channels.html#g-io-channel-new-file" title="g_io_channel_new_file"><code class="function">g_io_channel_new_file()</code></a>.
|
179
177
|
</p>
|
180
178
|
<p>
|
181
|
-
Once a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> has been created, it can be used in a generic
|
179
|
+
Once a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> has been created, it can be used in a generic
|
182
180
|
manner with the functions <a class="link" href="glib-IO-Channels.html#g-io-channel-read-chars" title="g_io_channel_read_chars ()"><code class="function">g_io_channel_read_chars()</code></a>,
|
183
181
|
<a class="link" href="glib-IO-Channels.html#g-io-channel-write-chars" title="g_io_channel_write_chars ()"><code class="function">g_io_channel_write_chars()</code></a>, <a class="link" href="glib-IO-Channels.html#g-io-channel-seek-position" title="g_io_channel_seek_position ()"><code class="function">g_io_channel_seek_position()</code></a>, and
|
184
182
|
<a class="link" href="glib-IO-Channels.html#g-io-channel-shutdown" title="g_io_channel_shutdown ()"><code class="function">g_io_channel_shutdown()</code></a>.
|
185
183
|
</p>
|
186
184
|
<p>
|
187
|
-
To add a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> to the <a class="link" href="glib-The-Main-Event-Loop.html" title="The Main Event Loop">main event loop</a> use
|
185
|
+
To add a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> to the <a class="link" href="glib-The-Main-Event-Loop.html" title="The Main Event Loop">main event loop</a> use
|
188
186
|
<a class="link" href="glib-IO-Channels.html#g-io-add-watch" title="g_io_add_watch ()"><code class="function">g_io_add_watch()</code></a> or <a class="link" href="glib-IO-Channels.html#g-io-add-watch-full" title="g_io_add_watch_full ()"><code class="function">g_io_add_watch_full()</code></a>. Here you specify which
|
189
|
-
events you are interested in on the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, and provide a
|
187
|
+
events you are interested in on the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, and provide a
|
190
188
|
function to be called whenever these events occur.
|
191
189
|
</p>
|
192
190
|
<p>
|
193
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> instances are created with an initial reference count of
|
191
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> instances are created with an initial reference count of
|
194
192
|
1. <a class="link" href="glib-IO-Channels.html#g-io-channel-ref" title="g_io_channel_ref ()"><code class="function">g_io_channel_ref()</code></a> and <a class="link" href="glib-IO-Channels.html#g-io-channel-unref" title="g_io_channel_unref ()"><code class="function">g_io_channel_unref()</code></a> can be used to
|
195
193
|
increment or decrement the reference count respectively. When the
|
196
|
-
reference count falls to 0, the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> is freed. (Though it
|
194
|
+
reference count falls to 0, the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> is freed. (Though it
|
197
195
|
isn't closed automatically, unless it was created using
|
198
196
|
<code class="function">g_io_channel_new_from_file()</code>.) Using <a class="link" href="glib-IO-Channels.html#g-io-add-watch" title="g_io_add_watch ()"><code class="function">g_io_add_watch()</code></a> or
|
199
197
|
<a class="link" href="glib-IO-Channels.html#g-io-add-watch-full" title="g_io_add_watch_full ()"><code class="function">g_io_add_watch_full()</code></a> increments a channel's reference count.
|
@@ -207,12 +205,12 @@ mixed with the deprecated functions <a class="link" href="glib-IO-Channels.html#
|
|
207
205
|
<a class="link" href="glib-IO-Channels.html#g-io-channel-write" title="g_io_channel_write ()"><code class="function">g_io_channel_write()</code></a>, and <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" title="g_io_channel_seek ()"><code class="function">g_io_channel_seek()</code></a> on the same channel.
|
208
206
|
</p>
|
209
207
|
</div>
|
210
|
-
<div class="refsect1"
|
208
|
+
<div class="refsect1">
|
211
209
|
<a name="glib-IO-Channels.details"></a><h2>Details</h2>
|
212
|
-
<div class="refsect2"
|
213
|
-
<a name="GIOChannel"></a><h3>GIOChannel</h3>
|
214
|
-
<pre class="programlisting">
|
215
|
-
}
|
210
|
+
<div class="refsect2">
|
211
|
+
<a name="GIOChannel"></a><h3>struct GIOChannel</h3>
|
212
|
+
<pre class="programlisting">struct GIOChannel {
|
213
|
+
};
|
216
214
|
</pre>
|
217
215
|
<p>
|
218
216
|
A data structure representing an IO Channel. The fields should be
|
@@ -221,18 +219,18 @@ functions.
|
|
221
219
|
</p>
|
222
220
|
</div>
|
223
221
|
<hr>
|
224
|
-
<div class="refsect2"
|
222
|
+
<div class="refsect2">
|
225
223
|
<a name="g-io-channel-unix-new"></a><h3>g_io_channel_unix_new ()</h3>
|
226
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a
|
224
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_unix_new (<em class="parameter"><code><span class="type">int</span> fd</code></em>);</pre>
|
227
225
|
<p>
|
228
|
-
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> given a file descriptor. On UNIX systems
|
226
|
+
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> given a file descriptor. On UNIX systems
|
229
227
|
this works for plain files, pipes, and sockets.
|
230
228
|
</p>
|
231
229
|
<p>
|
232
|
-
The returned <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> has a reference count of 1.
|
230
|
+
The returned <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> has a reference count of 1.
|
233
231
|
</p>
|
234
232
|
<p>
|
235
|
-
The default encoding for <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> is UTF-8. If your application
|
233
|
+
The default encoding for <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> is UTF-8. If your application
|
236
234
|
is reading output from a command using via pipe, you may need to set
|
237
235
|
the encoding to the encoding of the current locale (see
|
238
236
|
<a class="link" href="glib-Character-Set-Conversion.html#g-get-charset" title="g_get_charset ()"><code class="function">g_get_charset()</code></a>) with the <a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding" title="g_io_channel_set_encoding ()"><code class="function">g_io_channel_set_encoding()</code></a> function.
|
@@ -255,50 +253,46 @@ issued, and GLib assumes that it is the file descriptor you mean.
|
|
255
253
|
<tbody>
|
256
254
|
<tr>
|
257
255
|
<td><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td>
|
258
|
-
<td>a file descriptor
|
259
|
-
</td>
|
256
|
+
<td>a file descriptor.</td>
|
260
257
|
</tr>
|
261
258
|
<tr>
|
262
259
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
263
|
-
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a
|
264
|
-
</td>
|
260
|
+
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.</td>
|
265
261
|
</tr>
|
266
262
|
</tbody>
|
267
263
|
</table></div>
|
268
264
|
</div>
|
269
265
|
<hr>
|
270
|
-
<div class="refsect2"
|
266
|
+
<div class="refsect2">
|
271
267
|
<a name="g-io-channel-unix-get-fd"></a><h3>g_io_channel_unix_get_fd ()</h3>
|
272
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_io_channel_unix_get_fd (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
268
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_io_channel_unix_get_fd (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
273
269
|
<p>
|
274
|
-
Returns the file descriptor of the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
270
|
+
Returns the file descriptor of the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.
|
275
271
|
</p>
|
276
272
|
<p>
|
277
273
|
On Windows this function returns the file descriptor or socket of
|
278
|
-
the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
274
|
+
the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.
|
279
275
|
</p>
|
280
276
|
<div class="variablelist"><table border="0">
|
281
277
|
<col align="left" valign="top">
|
282
278
|
<tbody>
|
283
279
|
<tr>
|
284
280
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
285
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, created with <a class="link" href="glib-IO-Channels.html#g-io-channel-unix-new" title="g_io_channel_unix_new ()"><code class="function">g_io_channel_unix_new()</code></a
|
286
|
-
</td>
|
281
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, created with <a class="link" href="glib-IO-Channels.html#g-io-channel-unix-new" title="g_io_channel_unix_new ()"><code class="function">g_io_channel_unix_new()</code></a>.</td>
|
287
282
|
</tr>
|
288
283
|
<tr>
|
289
284
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
290
|
-
<td>the file descriptor of the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a
|
291
|
-
</td>
|
285
|
+
<td>the file descriptor of the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.</td>
|
292
286
|
</tr>
|
293
287
|
</tbody>
|
294
288
|
</table></div>
|
295
289
|
</div>
|
296
290
|
<hr>
|
297
|
-
<div class="refsect2"
|
291
|
+
<div class="refsect2">
|
298
292
|
<a name="g-io-channel-win32-new-fd"></a><h3>g_io_channel_win32_new_fd ()</h3>
|
299
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a
|
293
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_win32_new_fd (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> fd</code></em>);</pre>
|
300
294
|
<p>
|
301
|
-
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> given a file descriptor on Windows. This
|
295
|
+
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> given a file descriptor on Windows. This
|
302
296
|
works for file descriptors from the C runtime.
|
303
297
|
</p>
|
304
298
|
<p>
|
@@ -313,7 +307,7 @@ version that supported using msvcrt.dll as the C runtime was version
|
|
313
307
|
fully supports msvcrt.dll.
|
314
308
|
</p>
|
315
309
|
<p>
|
316
|
-
If you have created a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> for a file descriptor and started
|
310
|
+
If you have created a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> for a file descriptor and started
|
317
311
|
watching (polling) it, you shouldn't call <code class="function">read()</code> on the file
|
318
312
|
descriptor. This is because adding polling for a file descriptor is
|
319
313
|
implemented in GLib on Windows by starting a thread that sits
|
@@ -329,30 +323,28 @@ This function is available only in GLib on Windows.
|
|
329
323
|
<tbody>
|
330
324
|
<tr>
|
331
325
|
<td><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td>
|
332
|
-
<td>a C library file descriptor
|
333
|
-
</td>
|
326
|
+
<td>a C library file descriptor.</td>
|
334
327
|
</tr>
|
335
328
|
<tr>
|
336
329
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
337
|
-
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a
|
338
|
-
</td>
|
330
|
+
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.</td>
|
339
331
|
</tr>
|
340
332
|
</tbody>
|
341
333
|
</table></div>
|
342
334
|
</div>
|
343
335
|
<hr>
|
344
|
-
<div class="refsect2"
|
336
|
+
<div class="refsect2">
|
345
337
|
<a name="g-io-channel-win32-new-socket"></a><h3>g_io_channel_win32_new_socket ()</h3>
|
346
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_win32_new_socket (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> socket</code></em>);</pre>
|
338
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_win32_new_socket (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> socket</code></em>);</pre>
|
347
339
|
<p>
|
348
|
-
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> given a socket on Windows.
|
340
|
+
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> given a socket on Windows.
|
349
341
|
</p>
|
350
342
|
<p>
|
351
343
|
This function works for sockets created by Winsock. It's available
|
352
344
|
only in GLib on Windows.
|
353
345
|
</p>
|
354
346
|
<p>
|
355
|
-
Polling a <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource"><span class="type">GSource</span></a> created to watch a channel for a socket puts the
|
347
|
+
Polling a <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="struct GSource"><span class="type">GSource</span></a> created to watch a channel for a socket puts the
|
356
348
|
socket in non-blocking mode. This is a side-effect of the
|
357
349
|
implementation and unavoidable.
|
358
350
|
</p>
|
@@ -361,26 +353,25 @@ implementation and unavoidable.
|
|
361
353
|
<tbody>
|
362
354
|
<tr>
|
363
355
|
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
364
|
-
<td>a Winsock socket
|
365
|
-
</td>
|
356
|
+
<td>a Winsock socket</td>
|
366
357
|
</tr>
|
367
358
|
<tr>
|
368
359
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
369
|
-
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
360
|
+
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
370
361
|
</td>
|
371
362
|
</tr>
|
372
363
|
</tbody>
|
373
364
|
</table></div>
|
374
365
|
</div>
|
375
366
|
<hr>
|
376
|
-
<div class="refsect2"
|
367
|
+
<div class="refsect2">
|
377
368
|
<a name="g-io-channel-win32-new-messages"></a><h3>g_io_channel_win32_new_messages ()</h3>
|
378
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_win32_new_messages (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> hwnd</code></em>);</pre>
|
369
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_win32_new_messages (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> hwnd</code></em>);</pre>
|
379
370
|
<p>
|
380
|
-
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> given a window handle on Windows.
|
371
|
+
Creates a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> given a window handle on Windows.
|
381
372
|
</p>
|
382
373
|
<p>
|
383
|
-
This function creates a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> that can be used to poll for
|
374
|
+
This function creates a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> that can be used to poll for
|
384
375
|
Windows messages for the window in question.
|
385
376
|
</p>
|
386
377
|
<div class="variablelist"><table border="0">
|
@@ -388,46 +379,42 @@ Windows messages for the window in question.
|
|
388
379
|
<tbody>
|
389
380
|
<tr>
|
390
381
|
<td><p><span class="term"><em class="parameter"><code>hwnd</code></em> :</span></p></td>
|
391
|
-
<td>a window handle
|
392
|
-
</td>
|
382
|
+
<td>a window handle.</td>
|
393
383
|
</tr>
|
394
384
|
<tr>
|
395
385
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
396
|
-
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a
|
397
|
-
</td>
|
386
|
+
<td>a new <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.</td>
|
398
387
|
</tr>
|
399
388
|
</tbody>
|
400
389
|
</table></div>
|
401
390
|
</div>
|
402
391
|
<hr>
|
403
|
-
<div class="refsect2"
|
392
|
+
<div class="refsect2">
|
404
393
|
<a name="g-io-channel-init"></a><h3>g_io_channel_init ()</h3>
|
405
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_init (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
394
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_init (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
406
395
|
<p>
|
407
|
-
Initializes a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> struct.
|
396
|
+
Initializes a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> struct.
|
408
397
|
</p>
|
409
398
|
<p>
|
410
399
|
This is called by each of the above functions when creating a
|
411
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, and so is not often needed by the application
|
412
|
-
programmer (unless you are creating a new type of <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>).
|
400
|
+
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, and so is not often needed by the application
|
401
|
+
programmer (unless you are creating a new type of <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>).
|
413
402
|
</p>
|
414
403
|
<div class="variablelist"><table border="0">
|
415
404
|
<col align="left" valign="top">
|
416
405
|
<tbody><tr>
|
417
406
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
418
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
407
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
419
408
|
</td>
|
420
409
|
</tr></tbody>
|
421
410
|
</table></div>
|
422
411
|
</div>
|
423
412
|
<hr>
|
424
|
-
<div class="refsect2"
|
425
|
-
<a name="g-io-channel-new-file"></a><h3>g_io_channel_new_file
|
426
|
-
<pre class="programlisting"
|
427
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mode</code></em>,
|
428
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
413
|
+
<div class="refsect2">
|
414
|
+
<a name="g-io-channel-new-file"></a><h3>g_io_channel_new_file</h3>
|
415
|
+
<pre class="programlisting">#define g_io_channel_new_file</pre>
|
429
416
|
<p>
|
430
|
-
Open a file <em class="parameter"><code>filename</code></em> as a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> using mode <em class="parameter"><code>mode</code></em>. This
|
417
|
+
Open a file <em class="parameter"><code>filename</code></em> as a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> using mode <em class="parameter"><code>mode</code></em>. This
|
431
418
|
channel will be closed when the last reference to it is dropped,
|
432
419
|
so there is no need to call <a class="link" href="glib-IO-Channels.html#g-io-channel-close" title="g_io_channel_close ()"><code class="function">g_io_channel_close()</code></a> (though doing
|
433
420
|
so will not cause problems, as long as no attempt is made to
|
@@ -438,13 +425,12 @@ access the channel after it is closed).
|
|
438
425
|
<tbody>
|
439
426
|
<tr>
|
440
427
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
441
|
-
<td>A string containing the name of a file
|
442
|
-
</td>
|
428
|
+
<td>A string containing the name of a file</td>
|
443
429
|
</tr>
|
444
430
|
<tr>
|
445
431
|
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
446
432
|
<td>One of "r", "w", "a", "r+", "w+", "a+". These have
|
447
|
-
|
433
|
+
the same meaning as in <code class="function">fopen()</code>
|
448
434
|
</td>
|
449
435
|
</tr>
|
450
436
|
<tr>
|
@@ -454,20 +440,19 @@ access the channel after it is closed).
|
|
454
440
|
</tr>
|
455
441
|
<tr>
|
456
442
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
457
|
-
<td>
|
458
|
-
</td>
|
443
|
+
<td>A <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> on success, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on failure.</td>
|
459
444
|
</tr>
|
460
445
|
</tbody>
|
461
446
|
</table></div>
|
462
447
|
</div>
|
463
448
|
<hr>
|
464
|
-
<div class="refsect2"
|
449
|
+
<div class="refsect2">
|
465
450
|
<a name="g-io-channel-read-chars"></a><h3>g_io_channel_read_chars ()</h3>
|
466
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_chars (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
451
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_chars (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
467
452
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
468
453
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> count</code></em>,
|
469
454
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
470
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
455
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
471
456
|
<p>
|
472
457
|
Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-read" title="g_io_channel_read ()"><code class="function">g_io_channel_read()</code></a> with the new API.
|
473
458
|
</p>
|
@@ -476,50 +461,45 @@ Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-read" t
|
|
476
461
|
<tbody>
|
477
462
|
<tr>
|
478
463
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
479
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
464
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
480
465
|
</td>
|
481
466
|
</tr>
|
482
467
|
<tr>
|
483
468
|
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
484
|
-
<td>a buffer to read data into
|
485
|
-
</td>
|
469
|
+
<td>a buffer to read data into</td>
|
486
470
|
</tr>
|
487
471
|
<tr>
|
488
472
|
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
489
|
-
<td>the size of the buffer. Note that the buffer may
|
490
|
-
|
491
|
-
|
492
|
-
complete character.
|
493
|
-
</td>
|
473
|
+
<td>the size of the buffer. Note that the buffer may not be
|
474
|
+
complelely filled even if there is data in the buffer if the
|
475
|
+
remaining data is not a complete character.</td>
|
494
476
|
</tr>
|
495
477
|
<tr>
|
496
478
|
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
497
|
-
<td>The number of bytes read. This may be
|
498
|
-
|
499
|
-
|
500
|
-
|
479
|
+
<td>The number of bytes read. This may be
|
480
|
+
zero even on success if count < 6 and the channel's encoding
|
481
|
+
is non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. This indicates that the next UTF-8 character is
|
482
|
+
too wide for the buffer. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
501
483
|
</td>
|
502
484
|
</tr>
|
503
485
|
<tr>
|
504
486
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
505
487
|
<td>a location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
506
|
-
|
507
|
-
</td>
|
488
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>.</td>
|
508
489
|
</tr>
|
509
490
|
<tr>
|
510
491
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
511
|
-
<td>
|
512
|
-
</td>
|
492
|
+
<td>the status of the operation.</td>
|
513
493
|
</tr>
|
514
494
|
</tbody>
|
515
495
|
</table></div>
|
516
496
|
</div>
|
517
497
|
<hr>
|
518
|
-
<div class="refsect2"
|
498
|
+
<div class="refsect2">
|
519
499
|
<a name="g-io-channel-read-unichar"></a><h3>g_io_channel_read_unichar ()</h3>
|
520
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_unichar (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
500
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_unichar (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
521
501
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *thechar</code></em>,
|
522
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
502
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
523
503
|
<p>
|
524
504
|
Reads a Unicode character from <em class="parameter"><code>channel</code></em>.
|
525
505
|
This function cannot be called on a channel with <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> encoding.
|
@@ -529,39 +509,38 @@ This function cannot be called on a channel with <a class="link" href="glib-Stan
|
|
529
509
|
<tbody>
|
530
510
|
<tr>
|
531
511
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
532
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
512
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
533
513
|
</td>
|
534
514
|
</tr>
|
535
515
|
<tr>
|
536
516
|
<td><p><span class="term"><em class="parameter"><code>thechar</code></em> :</span></p></td>
|
537
|
-
<td>a location to return a character
|
538
|
-
</td>
|
517
|
+
<td>a location to return a character</td>
|
539
518
|
</tr>
|
540
519
|
<tr>
|
541
520
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
542
521
|
<td>a location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
543
|
-
|
522
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
544
523
|
</td>
|
545
524
|
</tr>
|
546
525
|
<tr>
|
547
526
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
548
|
-
<td>
|
527
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="type">GIOStatus</span></a>
|
549
528
|
</td>
|
550
529
|
</tr>
|
551
530
|
</tbody>
|
552
531
|
</table></div>
|
553
532
|
</div>
|
554
533
|
<hr>
|
555
|
-
<div class="refsect2"
|
534
|
+
<div class="refsect2">
|
556
535
|
<a name="g-io-channel-read-line"></a><h3>g_io_channel_read_line ()</h3>
|
557
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_line (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
536
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_line (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
558
537
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **str_return</code></em>,
|
559
538
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
|
560
539
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *terminator_pos</code></em>,
|
561
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
540
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
562
541
|
<p>
|
563
542
|
Reads a line, including the terminating character(s),
|
564
|
-
from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> into a newly-allocated string.
|
543
|
+
from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> into a newly-allocated string.
|
565
544
|
<em class="parameter"><code>str_return</code></em> will contain allocated memory if the return
|
566
545
|
is <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a>.
|
567
546
|
</p>
|
@@ -570,16 +549,15 @@ is <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code cl
|
|
570
549
|
<tbody>
|
571
550
|
<tr>
|
572
551
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
573
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
552
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
574
553
|
</td>
|
575
554
|
</tr>
|
576
555
|
<tr>
|
577
556
|
<td><p><span class="term"><em class="parameter"><code>str_return</code></em> :</span></p></td>
|
578
|
-
<td>The line read from the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, including the
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
</td>
|
557
|
+
<td>The line read from the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, including the
|
558
|
+
line terminator. This data should be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>
|
559
|
+
when no longer needed. This is a nul-terminated string.
|
560
|
+
If a <em class="parameter"><code>length</code></em> of zero is returned, this will be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> instead.</td>
|
583
561
|
</tr>
|
584
562
|
<tr>
|
585
563
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
@@ -594,41 +572,39 @@ is <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code cl
|
|
594
572
|
<tr>
|
595
573
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
596
574
|
<td>A location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
597
|
-
|
575
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
598
576
|
</td>
|
599
577
|
</tr>
|
600
578
|
<tr>
|
601
579
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
602
|
-
<td>
|
603
|
-
</td>
|
580
|
+
<td>the status of the operation.</td>
|
604
581
|
</tr>
|
605
582
|
</tbody>
|
606
583
|
</table></div>
|
607
584
|
</div>
|
608
585
|
<hr>
|
609
|
-
<div class="refsect2"
|
586
|
+
<div class="refsect2">
|
610
587
|
<a name="g-io-channel-read-line-string"></a><h3>g_io_channel_read_line_string ()</h3>
|
611
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_line_string (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
612
|
-
<em class="parameter"><code><a class="link" href="glib-Strings.html#GString" title="GString"><span class="type">GString</span></a> *buffer</code></em>,
|
588
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_line_string (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
589
|
+
<em class="parameter"><code><a class="link" href="glib-Strings.html#GString" title="struct GString"><span class="type">GString</span></a> *buffer</code></em>,
|
613
590
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *terminator_pos</code></em>,
|
614
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
591
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
615
592
|
<p>
|
616
|
-
Reads a line from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, using a <a class="link" href="glib-Strings.html#GString" title="GString"><span class="type">GString</span></a> as a buffer.
|
593
|
+
Reads a line from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, using a <a class="link" href="glib-Strings.html#GString" title="struct GString"><span class="type">GString</span></a> as a buffer.
|
617
594
|
</p>
|
618
595
|
<div class="variablelist"><table border="0">
|
619
596
|
<col align="left" valign="top">
|
620
597
|
<tbody>
|
621
598
|
<tr>
|
622
599
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
623
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
600
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
624
601
|
</td>
|
625
602
|
</tr>
|
626
603
|
<tr>
|
627
604
|
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
|
628
|
-
<td>a <a class="link" href="glib-Strings.html#GString" title="GString"><span class="type">GString</span></a> into which the line will be written.
|
629
|
-
|
630
|
-
|
631
|
-
</td>
|
605
|
+
<td>a <a class="link" href="glib-Strings.html#GString" title="struct GString"><span class="type">GString</span></a> into which the line will be written.
|
606
|
+
If <em class="parameter"><code>buffer</code></em> already contains data, the old data will
|
607
|
+
be overwritten.</td>
|
632
608
|
</tr>
|
633
609
|
<tr>
|
634
610
|
<td><p><span class="term"><em class="parameter"><code>terminator_pos</code></em> :</span></p></td>
|
@@ -638,24 +614,23 @@ Reads a line from a <a class="link" href="glib-IO-Channels.html#GIOChannel" titl
|
|
638
614
|
<tr>
|
639
615
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
640
616
|
<td>a location to store an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
641
|
-
|
617
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
642
618
|
</td>
|
643
619
|
</tr>
|
644
620
|
<tr>
|
645
621
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
646
|
-
<td>
|
647
|
-
</td>
|
622
|
+
<td>the status of the operation.</td>
|
648
623
|
</tr>
|
649
624
|
</tbody>
|
650
625
|
</table></div>
|
651
626
|
</div>
|
652
627
|
<hr>
|
653
|
-
<div class="refsect2"
|
628
|
+
<div class="refsect2">
|
654
629
|
<a name="g-io-channel-read-to-end"></a><h3>g_io_channel_read_to_end ()</h3>
|
655
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_to_end (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
630
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_read_to_end (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
656
631
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **str_return</code></em>,
|
657
632
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
|
658
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
633
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
659
634
|
<p>
|
660
635
|
Reads all the remaining data from the file.
|
661
636
|
</p>
|
@@ -664,46 +639,44 @@ Reads all the remaining data from the file.
|
|
664
639
|
<tbody>
|
665
640
|
<tr>
|
666
641
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
667
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
642
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
668
643
|
</td>
|
669
644
|
</tr>
|
670
645
|
<tr>
|
671
646
|
<td><p><span class="term"><em class="parameter"><code>str_return</code></em> :</span></p></td>
|
672
647
|
<td>Location to store a pointer to a string holding
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
</td>
|
648
|
+
the remaining data in the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>. This data should
|
649
|
+
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a> when no longer needed. This
|
650
|
+
data is terminated by an extra nul character, but there
|
651
|
+
may be other nuls in the intervening data.</td>
|
678
652
|
</tr>
|
679
653
|
<tr>
|
680
654
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
681
|
-
<td>location to store length of the data
|
682
|
-
</td>
|
655
|
+
<td>location to store length of the data</td>
|
683
656
|
</tr>
|
684
657
|
<tr>
|
685
658
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
686
659
|
<td>location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
687
|
-
|
660
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
688
661
|
</td>
|
689
662
|
</tr>
|
690
663
|
<tr>
|
691
664
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
692
|
-
<td>
|
693
|
-
|
694
|
-
</td>
|
665
|
+
<td>
|
666
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a> on success.
|
667
|
+
This function never returns <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-EOF:CAPS"><code class="literal">G_IO_STATUS_EOF</code></a>.</td>
|
695
668
|
</tr>
|
696
669
|
</tbody>
|
697
670
|
</table></div>
|
698
671
|
</div>
|
699
672
|
<hr>
|
700
|
-
<div class="refsect2"
|
673
|
+
<div class="refsect2">
|
701
674
|
<a name="g-io-channel-write-chars"></a><h3>g_io_channel_write_chars ()</h3>
|
702
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_write_chars (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
675
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_write_chars (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
703
676
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
704
677
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> count</code></em>,
|
705
678
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
706
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
679
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
707
680
|
<p>
|
708
681
|
Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-write" title="g_io_channel_write ()"><code class="function">g_io_channel_write()</code></a> with the new API.
|
709
682
|
</p>
|
@@ -718,49 +691,45 @@ cases described in the documentation for <a class="link" href="glib-IO-Channels.
|
|
718
691
|
<tbody>
|
719
692
|
<tr>
|
720
693
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
721
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
694
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
722
695
|
</td>
|
723
696
|
</tr>
|
724
697
|
<tr>
|
725
698
|
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
726
|
-
<td>a buffer to write data from
|
727
|
-
</td>
|
699
|
+
<td>a buffer to write data from</td>
|
728
700
|
</tr>
|
729
701
|
<tr>
|
730
702
|
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
731
703
|
<td>the size of the buffer. If -1, the buffer
|
732
|
-
|
733
|
-
</td>
|
704
|
+
is taken to be a nul-terminated string.</td>
|
734
705
|
</tr>
|
735
706
|
<tr>
|
736
707
|
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
737
708
|
<td>The number of bytes written. This can be nonzero
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
</td>
|
709
|
+
even if the return value is not <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a>.
|
710
|
+
If the return value is <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a> and the
|
711
|
+
channel is blocking, this will always be equal
|
712
|
+
to <em class="parameter"><code>count</code></em> if <em class="parameter"><code>count</code></em> >= 0.</td>
|
743
713
|
</tr>
|
744
714
|
<tr>
|
745
715
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
746
716
|
<td>a location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
747
|
-
|
717
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
748
718
|
</td>
|
749
719
|
</tr>
|
750
720
|
<tr>
|
751
721
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
752
|
-
<td>
|
753
|
-
</td>
|
722
|
+
<td>the status of the operation.</td>
|
754
723
|
</tr>
|
755
724
|
</tbody>
|
756
725
|
</table></div>
|
757
726
|
</div>
|
758
727
|
<hr>
|
759
|
-
<div class="refsect2"
|
728
|
+
<div class="refsect2">
|
760
729
|
<a name="g-io-channel-write-unichar"></a><h3>g_io_channel_write_unichar ()</h3>
|
761
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_write_unichar (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
730
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_write_unichar (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
762
731
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> thechar</code></em>,
|
763
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
732
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
764
733
|
<p>
|
765
734
|
Writes a Unicode character to <em class="parameter"><code>channel</code></em>.
|
766
735
|
This function cannot be called on a channel with <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> encoding.
|
@@ -770,33 +739,32 @@ This function cannot be called on a channel with <a class="link" href="glib-Stan
|
|
770
739
|
<tbody>
|
771
740
|
<tr>
|
772
741
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
773
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
742
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
774
743
|
</td>
|
775
744
|
</tr>
|
776
745
|
<tr>
|
777
746
|
<td><p><span class="term"><em class="parameter"><code>thechar</code></em> :</span></p></td>
|
778
|
-
<td>a character
|
779
|
-
</td>
|
747
|
+
<td>a character</td>
|
780
748
|
</tr>
|
781
749
|
<tr>
|
782
750
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
783
751
|
<td>location to return an error of type <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a>
|
784
|
-
|
752
|
+
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
785
753
|
</td>
|
786
754
|
</tr>
|
787
755
|
<tr>
|
788
756
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
789
|
-
<td>
|
757
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="type">GIOStatus</span></a>
|
790
758
|
</td>
|
791
759
|
</tr>
|
792
760
|
</tbody>
|
793
761
|
</table></div>
|
794
762
|
</div>
|
795
763
|
<hr>
|
796
|
-
<div class="refsect2"
|
764
|
+
<div class="refsect2">
|
797
765
|
<a name="g-io-channel-flush"></a><h3>g_io_channel_flush ()</h3>
|
798
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_flush (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
799
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
766
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_flush (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
767
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
800
768
|
<p>
|
801
769
|
Flushes the write buffer for the GIOChannel.
|
802
770
|
</p>
|
@@ -805,7 +773,7 @@ Flushes the write buffer for the GIOChannel.
|
|
805
773
|
<tbody>
|
806
774
|
<tr>
|
807
775
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
808
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
776
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
809
777
|
</td>
|
810
778
|
</tr>
|
811
779
|
<tr>
|
@@ -815,21 +783,20 @@ Flushes the write buffer for the GIOChannel.
|
|
815
783
|
</tr>
|
816
784
|
<tr>
|
817
785
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
818
|
-
<td>
|
819
|
-
|
820
|
-
|
821
|
-
</td>
|
786
|
+
<td>the status of the operation: One of
|
787
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><span class="type">G_IO_STATUS_NORMAL</span></a>, <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-AGAIN:CAPS"><span class="type">G_IO_STATUS_AGAIN</span></a>, or
|
788
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-STATUS-ERROR:CAPS"><span class="type">G_IO_STATUS_ERROR</span></a>.</td>
|
822
789
|
</tr>
|
823
790
|
</tbody>
|
824
791
|
</table></div>
|
825
792
|
</div>
|
826
793
|
<hr>
|
827
|
-
<div class="refsect2"
|
794
|
+
<div class="refsect2">
|
828
795
|
<a name="g-io-channel-seek-position"></a><h3>g_io_channel_seek_position ()</h3>
|
829
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_seek_position (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
796
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_seek_position (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
830
797
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> offset</code></em>,
|
831
798
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GSeekType" title="enum GSeekType"><span class="type">GSeekType</span></a> type</code></em>,
|
832
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
799
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
833
800
|
<p>
|
834
801
|
Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" title="g_io_channel_seek ()"><code class="function">g_io_channel_seek()</code></a> with the new API.
|
835
802
|
</p>
|
@@ -838,7 +805,7 @@ Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" t
|
|
838
805
|
<tbody>
|
839
806
|
<tr>
|
840
807
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
841
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
808
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
842
809
|
</td>
|
843
810
|
</tr>
|
844
811
|
<tr>
|
@@ -849,10 +816,9 @@ Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" t
|
|
849
816
|
<tr>
|
850
817
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
851
818
|
<td>a <a class="link" href="glib-IO-Channels.html#GSeekType" title="enum GSeekType"><span class="type">GSeekType</span></a>. The type <a class="link" href="glib-IO-Channels.html#G-SEEK-CUR:CAPS"><code class="literal">G_SEEK_CUR</code></a> is only allowed in those
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
</td>
|
819
|
+
cases where a call to <a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding" title="g_io_channel_set_encoding ()"><code class="function">g_io_channel_set_encoding()</code></a>
|
820
|
+
is allowed. See the documentation for
|
821
|
+
<a class="link" href="glib-IO-Channels.html#g-io-channel-set-encoding" title="g_io_channel_set_encoding ()"><code class="function">g_io_channel_set_encoding()</code></a> for details.</td>
|
856
822
|
</tr>
|
857
823
|
<tr>
|
858
824
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
@@ -861,14 +827,13 @@ Replacement for <a class="link" href="glib-IO-Channels.html#g-io-channel-seek" t
|
|
861
827
|
</tr>
|
862
828
|
<tr>
|
863
829
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
864
|
-
<td>
|
865
|
-
</td>
|
830
|
+
<td>the status of the operation.</td>
|
866
831
|
</tr>
|
867
832
|
</tbody>
|
868
833
|
</table></div>
|
869
834
|
</div>
|
870
835
|
<hr>
|
871
|
-
<div class="refsect2"
|
836
|
+
<div class="refsect2">
|
872
837
|
<a name="GSeekType"></a><h3>enum GSeekType</h3>
|
873
838
|
<pre class="programlisting">typedef enum
|
874
839
|
{
|
@@ -903,11 +868,11 @@ An enumeration specifying the base position for a
|
|
903
868
|
</table></div>
|
904
869
|
</div>
|
905
870
|
<hr>
|
906
|
-
<div class="refsect2"
|
871
|
+
<div class="refsect2">
|
907
872
|
<a name="g-io-channel-shutdown"></a><h3>g_io_channel_shutdown ()</h3>
|
908
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_shutdown (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
873
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_shutdown (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
909
874
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> flush</code></em>,
|
910
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **err</code></em>);</pre>
|
875
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **err</code></em>);</pre>
|
911
876
|
<p>
|
912
877
|
Close an IO channel. Any pending data to be written will be
|
913
878
|
flushed if <em class="parameter"><code>flush</code></em> is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>. The channel will not be freed until the
|
@@ -918,13 +883,12 @@ last reference is dropped using <a class="link" href="glib-IO-Channels.html#g-io
|
|
918
883
|
<tbody>
|
919
884
|
<tr>
|
920
885
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
921
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
886
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
922
887
|
</td>
|
923
888
|
</tr>
|
924
889
|
<tr>
|
925
890
|
<td><p><span class="term"><em class="parameter"><code>flush</code></em> :</span></p></td>
|
926
|
-
<td>if <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>, flush pending
|
927
|
-
</td>
|
891
|
+
<td>if <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>, flush pending</td>
|
928
892
|
</tr>
|
929
893
|
<tr>
|
930
894
|
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
|
@@ -933,14 +897,13 @@ last reference is dropped using <a class="link" href="glib-IO-Channels.html#g-io
|
|
933
897
|
</tr>
|
934
898
|
<tr>
|
935
899
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
936
|
-
<td>
|
937
|
-
</td>
|
900
|
+
<td>the status of the operation.</td>
|
938
901
|
</tr>
|
939
902
|
</tbody>
|
940
903
|
</table></div>
|
941
904
|
</div>
|
942
905
|
<hr>
|
943
|
-
<div class="refsect2"
|
906
|
+
<div class="refsect2">
|
944
907
|
<a name="GIOStatus"></a><h3>enum GIOStatus</h3>
|
945
908
|
<pre class="programlisting">typedef enum
|
946
909
|
{
|
@@ -951,7 +914,7 @@ last reference is dropped using <a class="link" href="glib-IO-Channels.html#g-io
|
|
951
914
|
} GIOStatus;
|
952
915
|
</pre>
|
953
916
|
<p>
|
954
|
-
Stati returned by most of the <a class="link" href="glib-IO-Channels.html#GIOFuncs" title="GIOFuncs"><span class="type">GIOFuncs</span></a> functions.
|
917
|
+
Stati returned by most of the <a class="link" href="glib-IO-Channels.html#GIOFuncs" title="struct GIOFuncs"><span class="type">GIOFuncs</span></a> functions.
|
955
918
|
</p>
|
956
919
|
<div class="variablelist"><table border="0">
|
957
920
|
<col align="left" valign="top">
|
@@ -980,7 +943,7 @@ Stati returned by most of the <a class="link" href="glib-IO-Channels.html#GIOFun
|
|
980
943
|
</table></div>
|
981
944
|
</div>
|
982
945
|
<hr>
|
983
|
-
<div class="refsect2"
|
946
|
+
<div class="refsect2">
|
984
947
|
<a name="GIOChannelError"></a><h3>enum GIOChannelError</h3>
|
985
948
|
<pre class="programlisting">typedef enum
|
986
949
|
{
|
@@ -998,7 +961,7 @@ Stati returned by most of the <a class="link" href="glib-IO-Channels.html#GIOFun
|
|
998
961
|
} GIOChannelError;
|
999
962
|
</pre>
|
1000
963
|
<p>
|
1001
|
-
Error codes returned by <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> operations.
|
964
|
+
Error codes returned by <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> operations.
|
1002
965
|
</p>
|
1003
966
|
<div class="variablelist"><table border="0">
|
1004
967
|
<col align="left" valign="top">
|
@@ -1052,18 +1015,18 @@ Error codes returned by <a class="link" href="glib-IO-Channels.html#GIOChannel"
|
|
1052
1015
|
</table></div>
|
1053
1016
|
</div>
|
1054
1017
|
<hr>
|
1055
|
-
<div class="refsect2"
|
1018
|
+
<div class="refsect2">
|
1056
1019
|
<a name="G-IO-CHANNEL-ERROR:CAPS"></a><h3>G_IO_CHANNEL_ERROR</h3>
|
1057
1020
|
<pre class="programlisting">#define G_IO_CHANNEL_ERROR g_io_channel_error_quark()
|
1058
1021
|
</pre>
|
1059
1022
|
<p>
|
1060
|
-
Error domain for <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> operations. Errors in this domain will
|
1061
|
-
be from the <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> for
|
1023
|
+
Error domain for <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> operations. Errors in this domain will
|
1024
|
+
be from the <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> for
|
1062
1025
|
information on error domains.
|
1063
1026
|
</p>
|
1064
1027
|
</div>
|
1065
1028
|
<hr>
|
1066
|
-
<div class="refsect2"
|
1029
|
+
<div class="refsect2">
|
1067
1030
|
<a name="g-io-channel-error-from-errno"></a><h3>g_io_channel_error_from_errno ()</h3>
|
1068
1031
|
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="returnvalue">GIOChannelError</span></a> g_io_channel_error_from_errno (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> en</code></em>);</pre>
|
1069
1032
|
<p>
|
@@ -1079,59 +1042,57 @@ Converts an <code class="literal">errno</code> error number to a <a class="link"
|
|
1079
1042
|
</tr>
|
1080
1043
|
<tr>
|
1081
1044
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1082
|
-
<td>
|
1083
|
-
|
1084
|
-
</td>
|
1045
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a> error number, e.g.
|
1046
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-CHANNEL-ERROR-INVAL:CAPS"><code class="literal">G_IO_CHANNEL_ERROR_INVAL</code></a>.</td>
|
1085
1047
|
</tr>
|
1086
1048
|
</tbody>
|
1087
1049
|
</table></div>
|
1088
1050
|
</div>
|
1089
1051
|
<hr>
|
1090
|
-
<div class="refsect2"
|
1052
|
+
<div class="refsect2">
|
1091
1053
|
<a name="g-io-channel-ref"></a><h3>g_io_channel_ref ()</h3>
|
1092
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_ref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1054
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_ref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1093
1055
|
<p>
|
1094
|
-
Increments the reference count of a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
1056
|
+
Increments the reference count of a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.
|
1095
1057
|
</p>
|
1096
1058
|
<div class="variablelist"><table border="0">
|
1097
1059
|
<col align="left" valign="top">
|
1098
1060
|
<tbody>
|
1099
1061
|
<tr>
|
1100
1062
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1101
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1063
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1102
1064
|
</td>
|
1103
1065
|
</tr>
|
1104
1066
|
<tr>
|
1105
1067
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1106
|
-
<td>
|
1107
|
-
</td>
|
1068
|
+
<td>the <em class="parameter"><code>channel</code></em> that was passed in (since 2.6)</td>
|
1108
1069
|
</tr>
|
1109
1070
|
</tbody>
|
1110
1071
|
</table></div>
|
1111
1072
|
</div>
|
1112
1073
|
<hr>
|
1113
|
-
<div class="refsect2"
|
1074
|
+
<div class="refsect2">
|
1114
1075
|
<a name="g-io-channel-unref"></a><h3>g_io_channel_unref ()</h3>
|
1115
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_unref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1076
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_unref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1116
1077
|
<p>
|
1117
|
-
Decrements the reference count of a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
1078
|
+
Decrements the reference count of a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.
|
1118
1079
|
</p>
|
1119
1080
|
<div class="variablelist"><table border="0">
|
1120
1081
|
<col align="left" valign="top">
|
1121
1082
|
<tbody><tr>
|
1122
1083
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1123
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1084
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1124
1085
|
</td>
|
1125
1086
|
</tr></tbody>
|
1126
1087
|
</table></div>
|
1127
1088
|
</div>
|
1128
1089
|
<hr>
|
1129
|
-
<div class="refsect2"
|
1090
|
+
<div class="refsect2">
|
1130
1091
|
<a name="g-io-create-watch"></a><h3>g_io_create_watch ()</h3>
|
1131
|
-
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource"><span class="returnvalue">GSource</span></a> * g_io_create_watch (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1092
|
+
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="struct GSource"><span class="returnvalue">GSource</span></a> * g_io_create_watch (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1132
1093
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>);</pre>
|
1133
1094
|
<p>
|
1134
|
-
Creates a <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource"><span class="type">GSource</span></a> that's dispatched when <em class="parameter"><code>condition</code></em> is met for the
|
1095
|
+
Creates a <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="struct GSource"><span class="type">GSource</span></a> that's dispatched when <em class="parameter"><code>condition</code></em> is met for the
|
1135
1096
|
given <em class="parameter"><code>channel</code></em>. For example, if condition is <a class="link" href="glib-IO-Channels.html#G-IO-IN:CAPS"><span class="type">G_IO_IN</span></a>, the source will
|
1136
1097
|
be dispatched when there's data available for reading.
|
1137
1098
|
</p>
|
@@ -1141,7 +1102,7 @@ the case where you want to add the source to the default main loop context
|
|
1141
1102
|
at the default priority.
|
1142
1103
|
</p>
|
1143
1104
|
<p>
|
1144
|
-
On Windows, polling a <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource"><span class="type">GSource</span></a> created to watch a channel for a socket
|
1105
|
+
On Windows, polling a <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="struct GSource"><span class="type">GSource</span></a> created to watch a channel for a socket
|
1145
1106
|
puts the socket in non-blocking mode. This is a side-effect of the
|
1146
1107
|
implementation and unavoidable.
|
1147
1108
|
</p>
|
@@ -1150,31 +1111,29 @@ implementation and unavoidable.
|
|
1150
1111
|
<tbody>
|
1151
1112
|
<tr>
|
1152
1113
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1153
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> to watch
|
1154
|
-
</td>
|
1114
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> to watch</td>
|
1155
1115
|
</tr>
|
1156
1116
|
<tr>
|
1157
1117
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1158
|
-
<td>conditions to watch for
|
1159
|
-
</td>
|
1118
|
+
<td>conditions to watch for</td>
|
1160
1119
|
</tr>
|
1161
1120
|
<tr>
|
1162
1121
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1163
|
-
<td>
|
1122
|
+
<td>a new <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="struct GSource"><span class="type">GSource</span></a>
|
1164
1123
|
</td>
|
1165
1124
|
</tr>
|
1166
1125
|
</tbody>
|
1167
1126
|
</table></div>
|
1168
1127
|
</div>
|
1169
1128
|
<hr>
|
1170
|
-
<div class="refsect2"
|
1129
|
+
<div class="refsect2">
|
1171
1130
|
<a name="g-io-add-watch"></a><h3>g_io_add_watch ()</h3>
|
1172
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_io_add_watch (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1131
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_io_add_watch (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1173
1132
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
1174
1133
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOFunc" title="GIOFunc ()"><span class="type">GIOFunc</span></a> func</code></em>,
|
1175
1134
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
1176
1135
|
<p>
|
1177
|
-
Adds the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> into the default main loop context
|
1136
|
+
Adds the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> into the default main loop context
|
1178
1137
|
with the default priority.
|
1179
1138
|
</p>
|
1180
1139
|
<div class="variablelist"><table border="0">
|
@@ -1182,18 +1141,16 @@ with the default priority.
|
|
1182
1141
|
<tbody>
|
1183
1142
|
<tr>
|
1184
1143
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1185
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1144
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1186
1145
|
</td>
|
1187
1146
|
</tr>
|
1188
1147
|
<tr>
|
1189
1148
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1190
|
-
<td>the condition to watch for
|
1191
|
-
</td>
|
1149
|
+
<td>the condition to watch for</td>
|
1192
1150
|
</tr>
|
1193
1151
|
<tr>
|
1194
1152
|
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
1195
|
-
<td>the function to call when the condition is satisfied
|
1196
|
-
</td>
|
1153
|
+
<td>the function to call when the condition is satisfied</td>
|
1197
1154
|
</tr>
|
1198
1155
|
<tr>
|
1199
1156
|
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
@@ -1202,23 +1159,22 @@ with the default priority.
|
|
1202
1159
|
</tr>
|
1203
1160
|
<tr>
|
1204
1161
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1205
|
-
<td>
|
1206
|
-
</td>
|
1162
|
+
<td>the event source id</td>
|
1207
1163
|
</tr>
|
1208
1164
|
</tbody>
|
1209
1165
|
</table></div>
|
1210
1166
|
</div>
|
1211
1167
|
<hr>
|
1212
|
-
<div class="refsect2"
|
1168
|
+
<div class="refsect2">
|
1213
1169
|
<a name="g-io-add-watch-full"></a><h3>g_io_add_watch_full ()</h3>
|
1214
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_io_add_watch_full (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1170
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_io_add_watch_full (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1215
1171
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> priority</code></em>,
|
1216
1172
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
1217
1173
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOFunc" title="GIOFunc ()"><span class="type">GIOFunc</span></a> func</code></em>,
|
1218
1174
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
1219
1175
|
<em class="parameter"><code><a class="link" href="glib-Datasets.html#GDestroyNotify" title="GDestroyNotify ()"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
|
1220
1176
|
<p>
|
1221
|
-
Adds the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> into the default main loop context
|
1177
|
+
Adds the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> into the default main loop context
|
1222
1178
|
with the given priority.
|
1223
1179
|
</p>
|
1224
1180
|
<p>
|
@@ -1231,23 +1187,20 @@ You can do these steps manually if you need greater control.
|
|
1231
1187
|
<tbody>
|
1232
1188
|
<tr>
|
1233
1189
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1234
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1190
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1235
1191
|
</td>
|
1236
1192
|
</tr>
|
1237
1193
|
<tr>
|
1238
1194
|
<td><p><span class="term"><em class="parameter"><code>priority</code></em> :</span></p></td>
|
1239
|
-
<td>the priority of the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> source
|
1240
|
-
</td>
|
1195
|
+
<td>the priority of the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> source</td>
|
1241
1196
|
</tr>
|
1242
1197
|
<tr>
|
1243
1198
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1244
|
-
<td>the condition to watch for
|
1245
|
-
</td>
|
1199
|
+
<td>the condition to watch for</td>
|
1246
1200
|
</tr>
|
1247
1201
|
<tr>
|
1248
1202
|
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
1249
|
-
<td>the function to call when the condition is satisfied
|
1250
|
-
</td>
|
1203
|
+
<td>the function to call when the condition is satisfied</td>
|
1251
1204
|
</tr>
|
1252
1205
|
<tr>
|
1253
1206
|
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
@@ -1256,19 +1209,17 @@ You can do these steps manually if you need greater control.
|
|
1256
1209
|
</tr>
|
1257
1210
|
<tr>
|
1258
1211
|
<td><p><span class="term"><em class="parameter"><code>notify</code></em> :</span></p></td>
|
1259
|
-
<td>the function to call when the source is removed
|
1260
|
-
</td>
|
1212
|
+
<td>the function to call when the source is removed</td>
|
1261
1213
|
</tr>
|
1262
1214
|
<tr>
|
1263
1215
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1264
|
-
<td>
|
1265
|
-
</td>
|
1216
|
+
<td>the event source id</td>
|
1266
1217
|
</tr>
|
1267
1218
|
</tbody>
|
1268
1219
|
</table></div>
|
1269
1220
|
</div>
|
1270
1221
|
<hr>
|
1271
|
-
<div class="refsect2"
|
1222
|
+
<div class="refsect2">
|
1272
1223
|
<a name="GIOCondition"></a><h3>enum GIOCondition</h3>
|
1273
1224
|
<pre class="programlisting">typedef enum
|
1274
1225
|
{
|
@@ -1322,28 +1273,26 @@ event source.
|
|
1322
1273
|
</table></div>
|
1323
1274
|
</div>
|
1324
1275
|
<hr>
|
1325
|
-
<div class="refsect2"
|
1276
|
+
<div class="refsect2">
|
1326
1277
|
<a name="GIOFunc"></a><h3>GIOFunc ()</h3>
|
1327
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (*GIOFunc) (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *source</code></em>,
|
1278
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> (*GIOFunc) (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *source</code></em>,
|
1328
1279
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> condition</code></em>,
|
1329
1280
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
1330
1281
|
<p>
|
1331
1282
|
Specifies the type of function passed to <a class="link" href="glib-IO-Channels.html#g-io-add-watch" title="g_io_add_watch ()"><code class="function">g_io_add_watch()</code></a> or
|
1332
1283
|
<a class="link" href="glib-IO-Channels.html#g-io-add-watch-full" title="g_io_add_watch_full ()"><code class="function">g_io_add_watch_full()</code></a>, which is called when the requested condition
|
1333
|
-
on a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> is satisfied.
|
1284
|
+
on a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> is satisfied.
|
1334
1285
|
</p>
|
1335
1286
|
<div class="variablelist"><table border="0">
|
1336
1287
|
<col align="left" valign="top">
|
1337
1288
|
<tbody>
|
1338
1289
|
<tr>
|
1339
1290
|
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
|
1340
|
-
<td>the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> event source
|
1341
|
-
</td>
|
1291
|
+
<td>the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> event source</td>
|
1342
1292
|
</tr>
|
1343
1293
|
<tr>
|
1344
1294
|
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1345
|
-
<td>the condition which has been satisfied
|
1346
|
-
</td>
|
1295
|
+
<td>the condition which has been satisfied</td>
|
1347
1296
|
</tr>
|
1348
1297
|
<tr>
|
1349
1298
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
@@ -1353,16 +1302,15 @@ on a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel">
|
|
1353
1302
|
<tr>
|
1354
1303
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1355
1304
|
<td>the function should return <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if the event source
|
1356
|
-
|
1357
|
-
</td>
|
1305
|
+
should be removed</td>
|
1358
1306
|
</tr>
|
1359
1307
|
</tbody>
|
1360
1308
|
</table></div>
|
1361
1309
|
</div>
|
1362
1310
|
<hr>
|
1363
|
-
<div class="refsect2"
|
1364
|
-
<a name="GIOFuncs"></a><h3>GIOFuncs</h3>
|
1365
|
-
<pre class="programlisting">
|
1311
|
+
<div class="refsect2">
|
1312
|
+
<a name="GIOFuncs"></a><h3>struct GIOFuncs</h3>
|
1313
|
+
<pre class="programlisting">struct GIOFuncs {
|
1366
1314
|
GIOStatus (*io_read) (GIOChannel *channel,
|
1367
1315
|
gchar *buf,
|
1368
1316
|
gsize count,
|
@@ -1386,10 +1334,10 @@ on a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel">
|
|
1386
1334
|
GIOFlags flags,
|
1387
1335
|
GError **err);
|
1388
1336
|
GIOFlags (*io_get_flags) (GIOChannel *channel);
|
1389
|
-
}
|
1337
|
+
};
|
1390
1338
|
</pre>
|
1391
1339
|
<p>
|
1392
|
-
A table of functions used to handle different types of <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1340
|
+
A table of functions used to handle different types of <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1393
1341
|
in a generic way.
|
1394
1342
|
</p>
|
1395
1343
|
<div class="variablelist"><table border="0">
|
@@ -1398,70 +1346,62 @@ in a generic way.
|
|
1398
1346
|
<tr>
|
1399
1347
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-read"></a>io_read</code></em> ()</span></p></td>
|
1400
1348
|
<td>reads raw bytes from the channel. This is called from
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
</td>
|
1349
|
+
various functions such as <a class="link" href="glib-IO-Channels.html#g-io-channel-read-chars" title="g_io_channel_read_chars ()"><code class="function">g_io_channel_read_chars()</code></a> to
|
1350
|
+
read raw bytes from the channel. Encoding and buffering
|
1351
|
+
issues are dealt with at a higher level.</td>
|
1405
1352
|
</tr>
|
1406
1353
|
<tr>
|
1407
1354
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-write"></a>io_write</code></em> ()</span></p></td>
|
1408
1355
|
<td>writes raw bytes to the channel. This is called from
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
</td>
|
1356
|
+
various functions such as <a class="link" href="glib-IO-Channels.html#g-io-channel-write-chars" title="g_io_channel_write_chars ()"><code class="function">g_io_channel_write_chars()</code></a> to
|
1357
|
+
write raw bytes to the channel. Encoding and buffering
|
1358
|
+
issues are dealt with at a higher level.</td>
|
1413
1359
|
</tr>
|
1414
1360
|
<tr>
|
1415
1361
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-seek"></a>io_seek</code></em> ()</span></p></td>
|
1416
1362
|
<td>(optional) seeks the channel. This is called from
|
1417
|
-
|
1418
|
-
</td>
|
1363
|
+
<a class="link" href="glib-IO-Channels.html#g-io-channel-seek" title="g_io_channel_seek ()"><code class="function">g_io_channel_seek()</code></a> on channels that support it.</td>
|
1419
1364
|
</tr>
|
1420
1365
|
<tr>
|
1421
1366
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-close"></a>io_close</code></em> ()</span></p></td>
|
1422
1367
|
<td>closes the channel. This is called from
|
1423
|
-
|
1424
|
-
</td>
|
1368
|
+
<a class="link" href="glib-IO-Channels.html#g-io-channel-close" title="g_io_channel_close ()"><code class="function">g_io_channel_close()</code></a> after flushing the buffers.</td>
|
1425
1369
|
</tr>
|
1426
1370
|
<tr>
|
1427
1371
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-create-watch"></a>io_create_watch</code></em> ()</span></p></td>
|
1428
1372
|
<td>creates a watch on the channel. This call
|
1429
|
-
|
1430
|
-
</td>
|
1373
|
+
corresponds directly to <a class="link" href="glib-IO-Channels.html#g-io-create-watch" title="g_io_create_watch ()"><code class="function">g_io_create_watch()</code></a>.</td>
|
1431
1374
|
</tr>
|
1432
1375
|
<tr>
|
1433
1376
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-free"></a>io_free</code></em> ()</span></p></td>
|
1434
1377
|
<td>called from <a class="link" href="glib-IO-Channels.html#g-io-channel-unref" title="g_io_channel_unref ()"><code class="function">g_io_channel_unref()</code></a> when the channel needs to
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
</td>
|
1378
|
+
be freed. This function must free the memory associated
|
1379
|
+
with the channel, including freeing the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1380
|
+
structure itself. The channel buffers have been flushed
|
1381
|
+
and possibly <em class="parameter"><code>io_close</code></em> has been called by the time this
|
1382
|
+
function is called.</td>
|
1441
1383
|
</tr>
|
1442
1384
|
<tr>
|
1443
1385
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-set-flags"></a>io_set_flags</code></em> ()</span></p></td>
|
1444
1386
|
<td>sets the <a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="type">GIOFlags</span></a> on the channel. This is called
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
</td>
|
1387
|
+
from <a class="link" href="glib-IO-Channels.html#g-io-channel-set-flags" title="g_io_channel_set_flags ()"><code class="function">g_io_channel_set_flags()</code></a> with all flags except
|
1388
|
+
for <a class="link" href="glib-IO-Channels.html#G-IO-FLAG-APPEND:CAPS"><code class="literal">G_IO_FLAG_APPEND</code></a> and <a class="link" href="glib-IO-Channels.html#G-IO-FLAG-NONBLOCK:CAPS"><code class="literal">G_IO_FLAG_NONBLOCK</code></a> masked
|
1389
|
+
out.</td>
|
1449
1390
|
</tr>
|
1450
1391
|
<tr>
|
1451
1392
|
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-get-flags"></a>io_get_flags</code></em> ()</span></p></td>
|
1452
1393
|
<td>gets the <a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="type">GIOFlags</span></a> for the channel. This function
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
</td>
|
1394
|
+
need only return the <a class="link" href="glib-IO-Channels.html#G-IO-FLAG-APPEND:CAPS"><code class="literal">G_IO_FLAG_APPEND</code></a> and
|
1395
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-FLAG-NONBLOCK:CAPS"><code class="literal">G_IO_FLAG_NONBLOCK</code></a> flags; <a class="link" href="glib-IO-Channels.html#g-io-channel-get-flags" title="g_io_channel_get_flags ()"><code class="function">g_io_channel_get_flags()</code></a>
|
1396
|
+
automatically adds the others as appropriate.</td>
|
1457
1397
|
</tr>
|
1458
1398
|
</tbody>
|
1459
1399
|
</table></div>
|
1460
1400
|
</div>
|
1461
1401
|
<hr>
|
1462
|
-
<div class="refsect2"
|
1402
|
+
<div class="refsect2">
|
1463
1403
|
<a name="g-io-channel-get-buffer-size"></a><h3>g_io_channel_get_buffer_size ()</h3>
|
1464
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> g_io_channel_get_buffer_size (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1404
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> g_io_channel_get_buffer_size (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1465
1405
|
<p>
|
1466
1406
|
Gets the buffer size.
|
1467
1407
|
</p>
|
@@ -1470,21 +1410,20 @@ Gets the buffer size.
|
|
1470
1410
|
<tbody>
|
1471
1411
|
<tr>
|
1472
1412
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1473
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1413
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1474
1414
|
</td>
|
1475
1415
|
</tr>
|
1476
1416
|
<tr>
|
1477
1417
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1478
|
-
<td>
|
1479
|
-
</td>
|
1418
|
+
<td>the size of the buffer.</td>
|
1480
1419
|
</tr>
|
1481
1420
|
</tbody>
|
1482
1421
|
</table></div>
|
1483
1422
|
</div>
|
1484
1423
|
<hr>
|
1485
|
-
<div class="refsect2"
|
1424
|
+
<div class="refsect2">
|
1486
1425
|
<a name="g-io-channel-set-buffer-size"></a><h3>g_io_channel_set_buffer_size ()</h3>
|
1487
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_buffer_size (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1426
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_buffer_size (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1488
1427
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> size</code></em>);</pre>
|
1489
1428
|
<p>
|
1490
1429
|
Sets the buffer size.
|
@@ -1494,48 +1433,47 @@ Sets the buffer size.
|
|
1494
1433
|
<tbody>
|
1495
1434
|
<tr>
|
1496
1435
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1497
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1436
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1498
1437
|
</td>
|
1499
1438
|
</tr>
|
1500
1439
|
<tr>
|
1501
1440
|
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1502
|
-
<td>the size of the buffer, or 0 to let GLib pick a good size
|
1503
|
-
</td>
|
1441
|
+
<td>the size of the buffer, or 0 to let GLib pick a good size</td>
|
1504
1442
|
</tr>
|
1505
1443
|
</tbody>
|
1506
1444
|
</table></div>
|
1507
1445
|
</div>
|
1508
1446
|
<hr>
|
1509
|
-
<div class="refsect2"
|
1447
|
+
<div class="refsect2">
|
1510
1448
|
<a name="g-io-channel-get-buffer-condition"></a><h3>g_io_channel_get_buffer_condition ()</h3>
|
1511
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="returnvalue">GIOCondition</span></a> g_io_channel_get_buffer_condition (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1449
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="returnvalue">GIOCondition</span></a> g_io_channel_get_buffer_condition (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1512
1450
|
<p>
|
1513
1451
|
This function returns a <a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a> depending on whether there
|
1514
1452
|
is data to be read/space to write data in the internal buffers in
|
1515
|
-
the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>. Only the flags <a class="link" href="glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> and <a class="link" href="glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> may be set.
|
1453
|
+
the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>. Only the flags <a class="link" href="glib-IO-Channels.html#G-IO-IN:CAPS"><code class="literal">G_IO_IN</code></a> and <a class="link" href="glib-IO-Channels.html#G-IO-OUT:CAPS"><code class="literal">G_IO_OUT</code></a> may be set.
|
1516
1454
|
</p>
|
1517
1455
|
<div class="variablelist"><table border="0">
|
1518
1456
|
<col align="left" valign="top">
|
1519
1457
|
<tbody>
|
1520
1458
|
<tr>
|
1521
1459
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1522
|
-
<td>A <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1460
|
+
<td>A <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1523
1461
|
</td>
|
1524
1462
|
</tr>
|
1525
1463
|
<tr>
|
1526
1464
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1527
|
-
<td>
|
1465
|
+
<td>A <a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a>
|
1528
1466
|
</td>
|
1529
1467
|
</tr>
|
1530
1468
|
</tbody>
|
1531
1469
|
</table></div>
|
1532
1470
|
</div>
|
1533
1471
|
<hr>
|
1534
|
-
<div class="refsect2"
|
1472
|
+
<div class="refsect2">
|
1535
1473
|
<a name="g-io-channel-get-flags"></a><h3>g_io_channel_get_flags ()</h3>
|
1536
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="returnvalue">GIOFlags</span></a> g_io_channel_get_flags (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1474
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="returnvalue">GIOFlags</span></a> g_io_channel_get_flags (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1537
1475
|
<p>
|
1538
|
-
Gets the current flags for a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, including read-only
|
1476
|
+
Gets the current flags for a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, including read-only
|
1539
1477
|
flags such as <a class="link" href="glib-IO-Channels.html#G-IO-FLAG-IS-READABLE:CAPS"><code class="literal">G_IO_FLAG_IS_READABLE</code></a>.
|
1540
1478
|
</p>
|
1541
1479
|
<p>
|
@@ -1551,23 +1489,22 @@ the internal values of these flags.
|
|
1551
1489
|
<tbody>
|
1552
1490
|
<tr>
|
1553
1491
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1554
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1492
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1555
1493
|
</td>
|
1556
1494
|
</tr>
|
1557
1495
|
<tr>
|
1558
1496
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1559
|
-
<td>
|
1560
|
-
</td>
|
1497
|
+
<td>the flags which are set on the channel</td>
|
1561
1498
|
</tr>
|
1562
1499
|
</tbody>
|
1563
1500
|
</table></div>
|
1564
1501
|
</div>
|
1565
1502
|
<hr>
|
1566
|
-
<div class="refsect2"
|
1503
|
+
<div class="refsect2">
|
1567
1504
|
<a name="g-io-channel-set-flags"></a><h3>g_io_channel_set_flags ()</h3>
|
1568
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_set_flags (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1505
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_set_flags (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1569
1506
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOFlags" title="enum GIOFlags"><span class="type">GIOFlags</span></a> flags</code></em>,
|
1570
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1507
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1571
1508
|
<p>
|
1572
1509
|
Sets the (writeable) flags in <em class="parameter"><code>channel</code></em> to (<em class="parameter"><code>flags</code></em> & <code class="literal">G_IO_CHANNEL_SET_MASK</code>).
|
1573
1510
|
</p>
|
@@ -1576,13 +1513,12 @@ Sets the (writeable) flags in <em class="parameter"><code>channel</code></em> to
|
|
1576
1513
|
<tbody>
|
1577
1514
|
<tr>
|
1578
1515
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1579
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1516
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1580
1517
|
</td>
|
1581
1518
|
</tr>
|
1582
1519
|
<tr>
|
1583
1520
|
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
1584
|
-
<td>the flags to set on the IO channel
|
1585
|
-
</td>
|
1521
|
+
<td>the flags to set on the IO channel</td>
|
1586
1522
|
</tr>
|
1587
1523
|
<tr>
|
1588
1524
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
@@ -1591,14 +1527,13 @@ Sets the (writeable) flags in <em class="parameter"><code>channel</code></em> to
|
|
1591
1527
|
</tr>
|
1592
1528
|
<tr>
|
1593
1529
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1594
|
-
<td>
|
1595
|
-
</td>
|
1530
|
+
<td>the status of the operation.</td>
|
1596
1531
|
</tr>
|
1597
1532
|
</tbody>
|
1598
1533
|
</table></div>
|
1599
1534
|
</div>
|
1600
1535
|
<hr>
|
1601
|
-
<div class="refsect2"
|
1536
|
+
<div class="refsect2">
|
1602
1537
|
<a name="GIOFlags"></a><h3>enum GIOFlags</h3>
|
1603
1538
|
<pre class="programlisting">typedef enum
|
1604
1539
|
{
|
@@ -1613,7 +1548,7 @@ Sets the (writeable) flags in <em class="parameter"><code>channel</code></em> to
|
|
1613
1548
|
} GIOFlags;
|
1614
1549
|
</pre>
|
1615
1550
|
<p>
|
1616
|
-
Specifies properties of a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>. Some of the flags can only be
|
1551
|
+
Specifies properties of a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>. Some of the flags can only be
|
1617
1552
|
read with <a class="link" href="glib-IO-Channels.html#g-io-channel-get-flags" title="g_io_channel_get_flags ()"><code class="function">g_io_channel_get_flags()</code></a>, but not changed with
|
1618
1553
|
<a class="link" href="glib-IO-Channels.html#g-io-channel-set-flags" title="g_io_channel_set_flags ()"><code class="function">g_io_channel_set_flags()</code></a>.
|
1619
1554
|
</p>
|
@@ -1674,12 +1609,12 @@ read with <a class="link" href="glib-IO-Channels.html#g-io-channel-get-flags" ti
|
|
1674
1609
|
</table></div>
|
1675
1610
|
</div>
|
1676
1611
|
<hr>
|
1677
|
-
<div class="refsect2"
|
1612
|
+
<div class="refsect2">
|
1678
1613
|
<a name="g-io-channel-get-line-term"></a><h3>g_io_channel_get_line_term ()</h3>
|
1679
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
1614
|
+
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_io_channel_get_line_term (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1680
1615
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *length</code></em>);</pre>
|
1681
1616
|
<p>
|
1682
|
-
This returns the string that <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> uses to determine
|
1617
|
+
This returns the string that <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> uses to determine
|
1683
1618
|
where in the file a line break occurs. A value of <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1684
1619
|
indicates autodetection.
|
1685
1620
|
</p>
|
@@ -1688,31 +1623,29 @@ indicates autodetection.
|
|
1688
1623
|
<tbody>
|
1689
1624
|
<tr>
|
1690
1625
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1691
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1626
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1692
1627
|
</td>
|
1693
1628
|
</tr>
|
1694
1629
|
<tr>
|
1695
1630
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
1696
|
-
<td>a location to return the length of the line terminator
|
1697
|
-
</td>
|
1631
|
+
<td>a location to return the length of the line terminator</td>
|
1698
1632
|
</tr>
|
1699
1633
|
<tr>
|
1700
1634
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1701
|
-
<td>
|
1702
|
-
|
1703
|
-
</td>
|
1635
|
+
<td>The line termination string. This value
|
1636
|
+
is owned by GLib and must not be freed.</td>
|
1704
1637
|
</tr>
|
1705
1638
|
</tbody>
|
1706
1639
|
</table></div>
|
1707
1640
|
</div>
|
1708
1641
|
<hr>
|
1709
|
-
<div class="refsect2"
|
1642
|
+
<div class="refsect2">
|
1710
1643
|
<a name="g-io-channel-set-line-term"></a><h3>g_io_channel_set_line_term ()</h3>
|
1711
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_line_term (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1644
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_line_term (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1712
1645
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *line_term</code></em>,
|
1713
1646
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> length</code></em>);</pre>
|
1714
1647
|
<p>
|
1715
|
-
This sets the string that <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> uses to determine
|
1648
|
+
This sets the string that <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> uses to determine
|
1716
1649
|
where in the file a line break occurs.
|
1717
1650
|
</p>
|
1718
1651
|
<div class="variablelist"><table border="0">
|
@@ -1720,31 +1653,29 @@ where in the file a line break occurs.
|
|
1720
1653
|
<tbody>
|
1721
1654
|
<tr>
|
1722
1655
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1723
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1656
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1724
1657
|
</td>
|
1725
1658
|
</tr>
|
1726
1659
|
<tr>
|
1727
1660
|
<td><p><span class="term"><em class="parameter"><code>line_term</code></em> :</span></p></td>
|
1728
1661
|
<td>The line termination string. Use <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> for autodetect.
|
1729
|
-
|
1730
|
-
|
1731
|
-
|
1732
|
-
</td>
|
1662
|
+
Autodetection breaks on "\n", "\r\n", "\r", "\0", and
|
1663
|
+
the Unicode paragraph separator. Autodetection should
|
1664
|
+
not be used for anything other than file-based channels.</td>
|
1733
1665
|
</tr>
|
1734
1666
|
<tr>
|
1735
1667
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
1736
1668
|
<td>The length of the termination string. If -1 is passed, the
|
1737
|
-
|
1738
|
-
|
1739
|
-
</td>
|
1669
|
+
string is assumed to be nul-terminated. This option allows
|
1670
|
+
termination strings with embedded nuls.</td>
|
1740
1671
|
</tr>
|
1741
1672
|
</tbody>
|
1742
1673
|
</table></div>
|
1743
1674
|
</div>
|
1744
1675
|
<hr>
|
1745
|
-
<div class="refsect2"
|
1676
|
+
<div class="refsect2">
|
1746
1677
|
<a name="g-io-channel-get-buffered"></a><h3>g_io_channel_get_buffered ()</h3>
|
1747
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_io_channel_get_buffered (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1678
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_io_channel_get_buffered (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1748
1679
|
<p>
|
1749
1680
|
Returns whether <em class="parameter"><code>channel</code></em> is buffered.
|
1750
1681
|
</p>
|
@@ -1753,21 +1684,21 @@ Returns whether <em class="parameter"><code>channel</code></em> is buffered.
|
|
1753
1684
|
<tbody>
|
1754
1685
|
<tr>
|
1755
1686
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1756
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1687
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1757
1688
|
</td>
|
1758
1689
|
</tr>
|
1759
1690
|
<tr>
|
1760
1691
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1761
|
-
<td>
|
1762
|
-
</td>
|
1692
|
+
<td>
|
1693
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the <em class="parameter"><code>channel</code></em> is buffered.</td>
|
1763
1694
|
</tr>
|
1764
1695
|
</tbody>
|
1765
1696
|
</table></div>
|
1766
1697
|
</div>
|
1767
1698
|
<hr>
|
1768
|
-
<div class="refsect2"
|
1699
|
+
<div class="refsect2">
|
1769
1700
|
<a name="g-io-channel-set-buffered"></a><h3>g_io_channel_set_buffered ()</h3>
|
1770
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_buffered (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1701
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_buffered (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1771
1702
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> buffered</code></em>);</pre>
|
1772
1703
|
<p>
|
1773
1704
|
The buffering state can only be set if the channel's encoding
|
@@ -1798,21 +1729,20 @@ The default state of the channel is buffered.
|
|
1798
1729
|
<tbody>
|
1799
1730
|
<tr>
|
1800
1731
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1801
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1732
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1802
1733
|
</td>
|
1803
1734
|
</tr>
|
1804
1735
|
<tr>
|
1805
1736
|
<td><p><span class="term"><em class="parameter"><code>buffered</code></em> :</span></p></td>
|
1806
|
-
<td>whether to set the channel buffered or unbuffered
|
1807
|
-
</td>
|
1737
|
+
<td>whether to set the channel buffered or unbuffered</td>
|
1808
1738
|
</tr>
|
1809
1739
|
</tbody>
|
1810
1740
|
</table></div>
|
1811
1741
|
</div>
|
1812
1742
|
<hr>
|
1813
|
-
<div class="refsect2"
|
1743
|
+
<div class="refsect2">
|
1814
1744
|
<a name="g-io-channel-get-encoding"></a><h3>g_io_channel_get_encoding ()</h3>
|
1815
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
1745
|
+
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_io_channel_get_encoding (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1816
1746
|
<p>
|
1817
1747
|
Gets the encoding for the input/output of the channel.
|
1818
1748
|
The internal encoding is always UTF-8. The encoding <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
@@ -1823,24 +1753,23 @@ makes the channel safe for binary data.
|
|
1823
1753
|
<tbody>
|
1824
1754
|
<tr>
|
1825
1755
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1826
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1756
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1827
1757
|
</td>
|
1828
1758
|
</tr>
|
1829
1759
|
<tr>
|
1830
1760
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1831
|
-
<td>
|
1832
|
-
|
1833
|
-
</td>
|
1761
|
+
<td>A string containing the encoding, this string is
|
1762
|
+
owned by GLib and must not be freed.</td>
|
1834
1763
|
</tr>
|
1835
1764
|
</tbody>
|
1836
1765
|
</table></div>
|
1837
1766
|
</div>
|
1838
1767
|
<hr>
|
1839
|
-
<div class="refsect2"
|
1768
|
+
<div class="refsect2">
|
1840
1769
|
<a name="g-io-channel-set-encoding"></a><h3>g_io_channel_set_encoding ()</h3>
|
1841
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_set_encoding (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1770
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="returnvalue">GIOStatus</span></a> g_io_channel_set_encoding (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1842
1771
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *encoding</code></em>,
|
1843
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1772
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1844
1773
|
<p>
|
1845
1774
|
Sets the encoding for the input/output of the channel.
|
1846
1775
|
The internal encoding is always UTF-8. The default encoding
|
@@ -1895,13 +1824,12 @@ calling one of the API "read" functions.
|
|
1895
1824
|
<tbody>
|
1896
1825
|
<tr>
|
1897
1826
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1898
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1827
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1899
1828
|
</td>
|
1900
1829
|
</tr>
|
1901
1830
|
<tr>
|
1902
1831
|
<td><p><span class="term"><em class="parameter"><code>encoding</code></em> :</span></p></td>
|
1903
|
-
<td>the encoding type
|
1904
|
-
</td>
|
1832
|
+
<td>the encoding type</td>
|
1905
1833
|
</tr>
|
1906
1834
|
<tr>
|
1907
1835
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
@@ -1910,43 +1838,41 @@ calling one of the API "read" functions.
|
|
1910
1838
|
</tr>
|
1911
1839
|
<tr>
|
1912
1840
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1913
|
-
<td>
|
1914
|
-
</td>
|
1841
|
+
<td>
|
1842
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a> if the encoding was successfully set.</td>
|
1915
1843
|
</tr>
|
1916
1844
|
</tbody>
|
1917
1845
|
</table></div>
|
1918
1846
|
</div>
|
1919
1847
|
<hr>
|
1920
|
-
<div class="refsect2"
|
1848
|
+
<div class="refsect2">
|
1921
1849
|
<a name="g-io-channel-get-close-on-unref"></a><h3>g_io_channel_get_close_on_unref ()</h3>
|
1922
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_io_channel_get_close_on_unref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1850
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_io_channel_get_close_on_unref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
1923
1851
|
<p>
|
1924
1852
|
Returns whether the file/socket/whatever associated with <em class="parameter"><code>channel</code></em>
|
1925
1853
|
will be closed when <em class="parameter"><code>channel</code></em> receives its final unref and is
|
1926
1854
|
destroyed. The default value of this is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> for channels created
|
1927
|
-
by <a class="link" href="glib-IO-Channels.html#g-io-channel-new-file" title="g_io_channel_new_file
|
1855
|
+
by <a class="link" href="glib-IO-Channels.html#g-io-channel-new-file" title="g_io_channel_new_file"><code class="function">g_io_channel_new_file()</code></a>, and <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> for all other channels.
|
1928
1856
|
</p>
|
1929
1857
|
<div class="variablelist"><table border="0">
|
1930
1858
|
<col align="left" valign="top">
|
1931
1859
|
<tbody>
|
1932
1860
|
<tr>
|
1933
1861
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1934
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a
|
1935
|
-
</td>
|
1862
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.</td>
|
1936
1863
|
</tr>
|
1937
1864
|
<tr>
|
1938
1865
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1939
|
-
<td>
|
1940
|
-
|
1941
|
-
</td>
|
1866
|
+
<td>Whether the channel will be closed on the final unref of
|
1867
|
+
the GIOChannel data structure.</td>
|
1942
1868
|
</tr>
|
1943
1869
|
</tbody>
|
1944
1870
|
</table></div>
|
1945
1871
|
</div>
|
1946
1872
|
<hr>
|
1947
|
-
<div class="refsect2"
|
1873
|
+
<div class="refsect2">
|
1948
1874
|
<a name="g-io-channel-set-close-on-unref"></a><h3>g_io_channel_set_close_on_unref ()</h3>
|
1949
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_close_on_unref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1875
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_set_close_on_unref (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1950
1876
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> do_close</code></em>);</pre>
|
1951
1877
|
<p>
|
1952
1878
|
Setting this flag to <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> for a channel you have already closed
|
@@ -1957,69 +1883,65 @@ can cause problems.
|
|
1957
1883
|
<tbody>
|
1958
1884
|
<tr>
|
1959
1885
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1960
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1886
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1961
1887
|
</td>
|
1962
1888
|
</tr>
|
1963
1889
|
<tr>
|
1964
1890
|
<td><p><span class="term"><em class="parameter"><code>do_close</code></em> :</span></p></td>
|
1965
1891
|
<td>Whether to close the channel on the final unref of
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
</td>
|
1892
|
+
the GIOChannel data structure. The default value of
|
1893
|
+
this is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> for channels created by <a class="link" href="glib-IO-Channels.html#g-io-channel-new-file" title="g_io_channel_new_file"><code class="function">g_io_channel_new_file()</code></a>,
|
1894
|
+
and <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> for all other channels.</td>
|
1970
1895
|
</tr>
|
1971
1896
|
</tbody>
|
1972
1897
|
</table></div>
|
1973
1898
|
</div>
|
1974
1899
|
<hr>
|
1975
|
-
<div class="refsect2"
|
1900
|
+
<div class="refsect2">
|
1976
1901
|
<a name="g-io-channel-read"></a><h3>g_io_channel_read ()</h3>
|
1977
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> g_io_channel_read (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1902
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> g_io_channel_read (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1978
1903
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
1979
1904
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> count</code></em>,
|
1980
1905
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>);</pre>
|
1981
|
-
<div class="warning"
|
1906
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1982
1907
|
<h3 class="title">Warning</h3>
|
1983
1908
|
<p><code class="literal">g_io_channel_read</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-IO-Channels.html#g-io-channel-read-chars" title="g_io_channel_read_chars ()"><code class="function">g_io_channel_read_chars()</code></a> instead.</p>
|
1984
1909
|
</div>
|
1985
1910
|
<p>
|
1986
|
-
Reads data from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
1911
|
+
Reads data from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.
|
1987
1912
|
</p>
|
1988
1913
|
<div class="variablelist"><table border="0">
|
1989
1914
|
<col align="left" valign="top">
|
1990
1915
|
<tbody>
|
1991
1916
|
<tr>
|
1992
1917
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
1993
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1918
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
1994
1919
|
</td>
|
1995
1920
|
</tr>
|
1996
1921
|
<tr>
|
1997
1922
|
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
1998
|
-
<td>a buffer to read the data into (which should be at least
|
1999
|
-
|
2000
|
-
</td>
|
1923
|
+
<td>a buffer to read the data into (which should be at least
|
1924
|
+
count bytes long)</td>
|
2001
1925
|
</tr>
|
2002
1926
|
<tr>
|
2003
1927
|
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
2004
|
-
<td>the number of bytes to read from the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1928
|
+
<td>the number of bytes to read from the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
2005
1929
|
</td>
|
2006
1930
|
</tr>
|
2007
1931
|
<tr>
|
2008
1932
|
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
2009
|
-
<td>returns the number of bytes actually read
|
2010
|
-
</td>
|
1933
|
+
<td>returns the number of bytes actually read</td>
|
2011
1934
|
</tr>
|
2012
1935
|
<tr>
|
2013
1936
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2014
|
-
<td>
|
2015
|
-
|
2016
|
-
</td>
|
1937
|
+
<td>
|
1938
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-ERROR-NONE:CAPS"><code class="literal">G_IO_ERROR_NONE</code></a> if the operation was successful.</td>
|
2017
1939
|
</tr>
|
2018
1940
|
</tbody>
|
2019
1941
|
</table></div>
|
2020
1942
|
</div>
|
2021
1943
|
<hr>
|
2022
|
-
<div class="refsect2"
|
1944
|
+
<div class="refsect2">
|
2023
1945
|
<a name="GIOError"></a><h3>enum GIOError</h3>
|
2024
1946
|
<pre class="programlisting">typedef enum
|
2025
1947
|
{
|
@@ -2060,63 +1982,59 @@ Reads data from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title=
|
|
2060
1982
|
</table></div>
|
2061
1983
|
</div>
|
2062
1984
|
<hr>
|
2063
|
-
<div class="refsect2"
|
1985
|
+
<div class="refsect2">
|
2064
1986
|
<a name="g-io-channel-write"></a><h3>g_io_channel_write ()</h3>
|
2065
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> g_io_channel_write (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
1987
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> g_io_channel_write (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
2066
1988
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
2067
1989
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> count</code></em>,
|
2068
1990
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>);</pre>
|
2069
|
-
<div class="warning"
|
1991
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2070
1992
|
<h3 class="title">Warning</h3>
|
2071
1993
|
<p><code class="literal">g_io_channel_write</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-IO-Channels.html#g-io-channel-write-chars" title="g_io_channel_write_chars ()"><code class="function">g_io_channel_write_chars()</code></a> instead.</p>
|
2072
1994
|
</div>
|
2073
1995
|
<p>
|
2074
|
-
Writes data to a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
1996
|
+
Writes data to a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>.
|
2075
1997
|
</p>
|
2076
1998
|
<div class="variablelist"><table border="0">
|
2077
1999
|
<col align="left" valign="top">
|
2078
2000
|
<tbody>
|
2079
2001
|
<tr>
|
2080
2002
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
2081
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
2003
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
2082
2004
|
</td>
|
2083
2005
|
</tr>
|
2084
2006
|
<tr>
|
2085
2007
|
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
2086
|
-
<td>the buffer containing the data to write
|
2087
|
-
</td>
|
2008
|
+
<td>the buffer containing the data to write</td>
|
2088
2009
|
</tr>
|
2089
2010
|
<tr>
|
2090
2011
|
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
2091
|
-
<td>the number of bytes to write
|
2092
|
-
</td>
|
2012
|
+
<td>the number of bytes to write</td>
|
2093
2013
|
</tr>
|
2094
2014
|
<tr>
|
2095
2015
|
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
2096
|
-
<td>the number of bytes actually written
|
2097
|
-
</td>
|
2016
|
+
<td>the number of bytes actually written</td>
|
2098
2017
|
</tr>
|
2099
2018
|
<tr>
|
2100
2019
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2101
|
-
<td>
|
2102
|
-
|
2103
|
-
</td>
|
2020
|
+
<td>
|
2021
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-ERROR-NONE:CAPS"><code class="literal">G_IO_ERROR_NONE</code></a> if the operation was successful.</td>
|
2104
2022
|
</tr>
|
2105
2023
|
</tbody>
|
2106
2024
|
</table></div>
|
2107
2025
|
</div>
|
2108
2026
|
<hr>
|
2109
|
-
<div class="refsect2"
|
2027
|
+
<div class="refsect2">
|
2110
2028
|
<a name="g-io-channel-seek"></a><h3>g_io_channel_seek ()</h3>
|
2111
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> g_io_channel_seek (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
2029
|
+
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="returnvalue">GIOError</span></a> g_io_channel_seek (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
2112
2030
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a> offset</code></em>,
|
2113
2031
|
<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GSeekType" title="enum GSeekType"><span class="type">GSeekType</span></a> type</code></em>);</pre>
|
2114
|
-
<div class="warning"
|
2032
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2115
2033
|
<h3 class="title">Warning</h3>
|
2116
2034
|
<p><code class="literal">g_io_channel_seek</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-IO-Channels.html#g-io-channel-seek-position" title="g_io_channel_seek_position ()"><code class="function">g_io_channel_seek_position()</code></a> instead.</p>
|
2117
2035
|
</div>
|
2118
2036
|
<p>
|
2119
|
-
Sets the current position in the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>, similar to the standard
|
2037
|
+
Sets the current position in the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>, similar to the standard
|
2120
2038
|
library function <code class="function">fseek()</code>.
|
2121
2039
|
</p>
|
2122
2040
|
<div class="variablelist"><table border="0">
|
@@ -2124,36 +2042,34 @@ library function <code class="function">fseek()</code>.
|
|
2124
2042
|
<tbody>
|
2125
2043
|
<tr>
|
2126
2044
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
2127
|
-
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
2045
|
+
<td>a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
2128
2046
|
</td>
|
2129
2047
|
</tr>
|
2130
2048
|
<tr>
|
2131
2049
|
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
|
2132
|
-
<td>an offset, in bytes, which is added to the position specified
|
2133
|
-
|
2050
|
+
<td>an offset, in bytes, which is added to the position specified
|
2051
|
+
by <em class="parameter"><code>type</code></em>
|
2134
2052
|
</td>
|
2135
2053
|
</tr>
|
2136
2054
|
<tr>
|
2137
2055
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
2138
2056
|
<td>the position in the file, which can be <a class="link" href="glib-IO-Channels.html#G-SEEK-CUR:CAPS"><code class="literal">G_SEEK_CUR</code></a> (the current
|
2139
|
-
|
2140
|
-
|
2141
|
-
</td>
|
2057
|
+
position), <a class="link" href="glib-IO-Channels.html#G-SEEK-SET:CAPS"><code class="literal">G_SEEK_SET</code></a> (the start of the file), or <a class="link" href="glib-IO-Channels.html#G-SEEK-END:CAPS"><code class="literal">G_SEEK_END</code></a>
|
2058
|
+
(the end of the file)</td>
|
2142
2059
|
</tr>
|
2143
2060
|
<tr>
|
2144
2061
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2145
|
-
<td>
|
2146
|
-
|
2147
|
-
</td>
|
2062
|
+
<td>
|
2063
|
+
<a class="link" href="glib-IO-Channels.html#G-IO-ERROR-NONE:CAPS"><code class="literal">G_IO_ERROR_NONE</code></a> if the operation was successful.</td>
|
2148
2064
|
</tr>
|
2149
2065
|
</tbody>
|
2150
2066
|
</table></div>
|
2151
2067
|
</div>
|
2152
2068
|
<hr>
|
2153
|
-
<div class="refsect2"
|
2069
|
+
<div class="refsect2">
|
2154
2070
|
<a name="g-io-channel-close"></a><h3>g_io_channel_close ()</h3>
|
2155
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_close (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
2156
|
-
<div class="warning"
|
2071
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_io_channel_close (<em class="parameter"><code><a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);</pre>
|
2072
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2157
2073
|
<h3 class="title">Warning</h3>
|
2158
2074
|
<p><code class="literal">g_io_channel_close</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-IO-Channels.html#g-io-channel-shutdown" title="g_io_channel_shutdown ()"><code class="function">g_io_channel_shutdown()</code></a> instead.</p>
|
2159
2075
|
</div>
|
@@ -2166,13 +2082,13 @@ last reference is dropped using <a class="link" href="glib-IO-Channels.html#g-io
|
|
2166
2082
|
<col align="left" valign="top">
|
2167
2083
|
<tbody><tr>
|
2168
2084
|
<td><p><span class="term"><em class="parameter"><code>channel</code></em> :</span></p></td>
|
2169
|
-
<td>A <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
2085
|
+
<td>A <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a>
|
2170
2086
|
</td>
|
2171
2087
|
</tr></tbody>
|
2172
2088
|
</table></div>
|
2173
2089
|
</div>
|
2174
2090
|
</div>
|
2175
|
-
<div class="refsect1"
|
2091
|
+
<div class="refsect1">
|
2176
2092
|
<a name="glib-IO-Channels.see-also"></a><h2>See Also</h2>
|
2177
2093
|
<p> </p>
|
2178
2094
|
<div class="variablelist"><table border="0">
|
@@ -2181,7 +2097,7 @@ last reference is dropped using <a class="link" href="glib-IO-Channels.html#g-io
|
|
2181
2097
|
<td><p><span class="term"><a class="link" href="glib-IO-Channels.html#g-io-add-watch" title="g_io_add_watch ()"><code class="function">g_io_add_watch()</code></a>, <a class="link" href="glib-IO-Channels.html#g-io-add-watch-full" title="g_io_add_watch_full ()"><code class="function">g_io_add_watch_full()</code></a>,
|
2182
2098
|
<a class="link" href="glib-The-Main-Event-Loop.html#g-source-remove" title="g_source_remove ()"><code class="function">g_source_remove()</code></a></span></p></td>
|
2183
2099
|
<td><p> Convenience
|
2184
|
-
functions for creating <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> instances and adding
|
2100
|
+
functions for creating <a class="link" href="glib-IO-Channels.html#GIOChannel" title="struct GIOChannel"><span class="type">GIOChannel</span></a> instances and adding
|
2185
2101
|
them to the <a class="link" href="glib-The-Main-Event-Loop.html" title="The Main Event Loop">main
|
2186
2102
|
event loop</a>. </p></td>
|
2187
2103
|
</tr></tbody>
|
@@ -2191,6 +2107,6 @@ last reference is dropped using <a class="link" href="glib-IO-Channels.html#g-io
|
|
2191
2107
|
</div>
|
2192
2108
|
<div class="footer">
|
2193
2109
|
<hr>
|
2194
|
-
Generated by GTK-Doc V1.
|
2110
|
+
Generated by GTK-Doc V1.16.1</div>
|
2195
2111
|
</body>
|
2196
2112
|
</html>
|