atk 0.90.5-x86-mingw32 → 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +9 -0
- data/Rakefile +8 -70
- data/ext/atk/Makefile +160 -0
- data/ext/atk/extconf.rb +9 -9
- data/ext/atk/rbatkversion.h +24 -0
- data/lib/1.8/atk.so +0 -0
- data/lib/1.9/atk.so +0 -0
- data/vendor/local/lib/pkgconfig/atk.pc +1 -1
- metadata +150 -902
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +0 -123
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +0 -188
- data/vendor/local/bin/glib-mkenums +0 -537
- 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/intl.dll +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libgcc_s_dw2-1.dll +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/bin/ngettext.exe +0 -0
- data/vendor/local/include/autosprintf.h +0 -66
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +0 -236
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +0 -103
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +0 -57
- data/vendor/local/include/glib-2.0/gio/gconverter.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -115
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +0 -46
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +0 -562
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +0 -100
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +0 -286
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +0 -149
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +0 -94
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +0 -54
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +0 -44
- data/vendor/local/include/glib-2.0/gio/gdrive.h +0 -225
- data/vendor/local/include/glib-2.0/gio/gemblem.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gfile.h +0 -1017
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +0 -77
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +0 -56
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +0 -952
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gicon.h +0 -91
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +0 -103
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +0 -69
- data/vendor/local/include/glib-2.0/gio/ginitable.h +0 -96
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +0 -172
- data/vendor/local/include/glib-2.0/gio/gio.h +0 -122
- data/vendor/local/include/glib-2.0/gio/gioenums.h +0 -1221
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +0 -121
- data/vendor/local/include/glib-2.0/gio/gioerror.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giomodule.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giostream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/giotypes.h +0 -375
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +0 -97
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +0 -82
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +0 -98
- data/vendor/local/include/glib-2.0/gio/gmount.h +0 -242
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +0 -71
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +0 -207
- data/vendor/local/include/glib-2.0/gio/gpermission.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gproxy.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -75
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +0 -96
- data/vendor/local/include/glib-2.0/gio/gresolver.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gseekable.h +0 -99
- data/vendor/local/include/glib-2.0/gio/gsettings.h +0 -258
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +0 -45
- data/vendor/local/include/glib-2.0/gio/gsocket.h +0 -194
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -89
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +0 -152
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +0 -74
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +0 -91
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +0 -105
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +0 -88
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +0 -52
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +0 -68
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +0 -63
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gvfs.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gvolume.h +0 -211
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +0 -57
- data/vendor/local/include/glib-2.0/glib-object.h +0 -42
- data/vendor/local/include/glib-2.0/glib.h +0 -99
- data/vendor/local/include/glib-2.0/glib/galloca.h +0 -110
- data/vendor/local/include/glib-2.0/glib/garray.h +0 -179
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gatomic.h +0 -105
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +0 -68
- data/vendor/local/include/glib-2.0/glib/gbase64.h +0 -57
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +0 -43
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +0 -215
- data/vendor/local/include/glib-2.0/glib/gcache.h +0 -69
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gconvert.h +0 -162
- data/vendor/local/include/glib-2.0/glib/gdataset.h +0 -122
- data/vendor/local/include/glib-2.0/glib/gdate.h +0 -263
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +0 -217
- data/vendor/local/include/glib-2.0/glib/gdir.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gerror.h +0 -98
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +0 -128
- data/vendor/local/include/glib-2.0/glib/ghash.h +0 -166
- data/vendor/local/include/glib-2.0/glib/ghook.h +0 -181
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +0 -40
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +0 -38
- data/vendor/local/include/glib-2.0/glib/gi18n.h +0 -34
- data/vendor/local/include/glib-2.0/glib/giochannel.h +0 -366
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +0 -266
- data/vendor/local/include/glib-2.0/glib/glist.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gmacros.h +0 -284
- data/vendor/local/include/glib-2.0/glib/gmain.h +0 -531
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +0 -163
- data/vendor/local/include/glib-2.0/glib/gmem.h +0 -309
- data/vendor/local/include/glib-2.0/glib/gmessages.h +0 -343
- data/vendor/local/include/glib-2.0/glib/gnode.h +0 -290
- data/vendor/local/include/glib-2.0/glib/goption.h +0 -370
- data/vendor/local/include/glib-2.0/glib/gpattern.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gpoll.h +0 -117
- data/vendor/local/include/glib-2.0/glib/gprimes.h +0 -51
- data/vendor/local/include/glib-2.0/glib/gprintf.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqsort.h +0 -46
- data/vendor/local/include/glib-2.0/glib/gquark.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqueue.h +0 -127
- data/vendor/local/include/glib-2.0/glib/grand.h +0 -85
- data/vendor/local/include/glib-2.0/glib/gregex.h +0 -471
- data/vendor/local/include/glib-2.0/glib/grel.h +0 -101
- data/vendor/local/include/glib-2.0/glib/gscanner.h +0 -278
- data/vendor/local/include/glib-2.0/glib/gsequence.h +0 -128
- data/vendor/local/include/glib-2.0/glib/gshell.h +0 -55
- data/vendor/local/include/glib-2.0/glib/gslice.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gslist.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gspawn.h +0 -139
- data/vendor/local/include/glib-2.0/glib/gstdio.h +0 -147
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +0 -269
- data/vendor/local/include/glib-2.0/glib/gstring.h +0 -178
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +0 -297
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -407
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gtimer.h +0 -65
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +0 -44
- data/vendor/local/include/glib-2.0/glib/gtree.h +0 -91
- data/vendor/local/include/glib-2.0/glib/gtypes.h +0 -451
- data/vendor/local/include/glib-2.0/glib/gunicode.h +0 -421
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gutils.h +0 -490
- data/vendor/local/include/glib-2.0/glib/gvariant.h +0 -248
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +0 -334
- data/vendor/local/include/glib-2.0/glib/gwin32.h +0 -114
- data/vendor/local/include/glib-2.0/gmodule.h +0 -101
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +0 -136
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +0 -248
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +0 -251
- data/vendor/local/include/glib-2.0/gobject/genums.h +0 -261
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +0 -186
- data/vendor/local/include/glib-2.0/gobject/gobject.h +0 -567
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +0 -193
- data/vendor/local/include/glib-2.0/gobject/gparam.h +0 -415
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +0 -1137
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +0 -509
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +0 -51
- data/vendor/local/include/glib-2.0/gobject/gtype.h +0 -1736
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +0 -263
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +0 -134
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +0 -159
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +0 -77
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +0 -227
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +0 -260
- data/vendor/local/include/libintl.h +0 -464
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +0 -1143
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +0 -1452
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +0 -284
- data/vendor/local/lib/gmodule-2.0.def +0 -11
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +0 -370
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +0 -3
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libasprintf.dll.a +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/libintl.def +0 -31
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +0 -11
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +0 -81
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +0 -3
- data/vendor/local/manifest/glib-dev_2.26.0-2_win32.mft +0 -570
- data/vendor/local/manifest/glib_2.26.0-2_win32.mft +0 -102
- data/vendor/local/share/aclocal/glib-2.0.m4 +0 -211
- data/vendor/local/share/aclocal/glib-gettext.m4 +0 -432
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +0 -165
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +0 -160
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +0 -8
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +0 -305
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +0 -356
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +0 -11
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +0 -10
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +0 -6
- data/vendor/local/share/doc/gettext/envsubst.1.html +0 -213
- data/vendor/local/share/doc/gettext/gettext.1.html +0 -266
- data/vendor/local/share/doc/gettext/gettext.3.html +0 -186
- data/vendor/local/share/doc/gettext/ngettext.1.html +0 -280
- data/vendor/local/share/doc/gettext/ngettext.3.html +0 -143
- data/vendor/local/share/doc/gettext/textdomain.3.html +0 -150
- data/vendor/local/share/doc/glib-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/glib-dev-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +0 -174
- data/vendor/local/share/glib-2.0/gdb/glib.py +0 -249
- data/vendor/local/share/glib-2.0/gdb/gobject.py +0 -305
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +0 -111
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +0 -279
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +0 -60
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +0 -1403
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +0 -733
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +0 -563
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +0 -291
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +0 -620
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +0 -245
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +0 -423
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +0 -398
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +0 -254
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +0 -6211
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +0 -1833
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +0 -618
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +0 -2050
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +0 -1124
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +0 -1215
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +0 -540
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +0 -1416
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +0 -272
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +0 -206
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +0 -7462
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +0 -120
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +0 -516
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +0 -3144
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +0 -262
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +0 -353
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +0 -188
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +0 -189
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +0 -261
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +0 -479
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +0 -331
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +0 -717
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +0 -196
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +0 -388
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +0 -808
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +0 -185
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +0 -393
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +0 -1465
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +0 -848
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +0 -311
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +0 -1012
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +0 -560
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +0 -348
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +0 -787
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +0 -350
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +0 -2424
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +0 -609
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +0 -1193
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +0 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +0 -2438
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +0 -1292
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +0 -513
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +0 -337
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +0 -275
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +0 -745
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +0 -258
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +0 -165
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +0 -377
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +0 -197
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +0 -298
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +0 -222
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +0 -389
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +0 -288
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +0 -491
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +0 -274
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +0 -1028
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +0 -705
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +0 -252
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +0 -170
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +0 -65
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +0 -153
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +0 -1084
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +0 -223
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +0 -1598
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +0 -112
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +0 -6250
- data/vendor/local/share/gtk-doc/html/gio/async.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +0 -207
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +0 -180
- 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
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +0 -57
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +0 -46
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +0 -48
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +0 -277
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +0 -95
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +0 -70
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +0 -130
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +0 -202
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +0 -96
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +0 -823
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +0 -828
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +0 -109
- data/vendor/local/share/gtk-doc/html/gio/extending.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +0 -243
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +0 -316
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +0 -1117
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +0 -216
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +0 -339
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +0 -473
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +0 -391
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +0 -908
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +0 -933
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +0 -409
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +0 -313
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +0 -736
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +0 -909
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +0 -666
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +0 -123
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +0 -1736
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +0 -2006
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +0 -102
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/index.html +0 -435
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -2513
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +0 -62
- data/vendor/local/share/gtk-doc/html/gio/networking.html +0 -69
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +0 -390
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/settings.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +0 -92
- data/vendor/local/share/gtk-doc/html/gio/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gio/tools.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/types.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +0 -47
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +0 -77
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +0 -180
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +0 -312
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +0 -559
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +0 -362
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +0 -102
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +0 -124
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +0 -83
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +0 -420
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +0 -359
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +0 -396
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +0 -417
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +0 -158
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +0 -419
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +0 -8214
- data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +0 -893
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +0 -818
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +0 -414
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +0 -802
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +0 -372
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +0 -500
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +0 -2056
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +0 -560
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +0 -1686
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +0 -398
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +0 -1094
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +0 -1671
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +0 -460
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +0 -528
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +0 -2045
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +0 -1278
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +0 -1406
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +0 -548
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +0 -1026
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +0 -1852
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +0 -2201
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +0 -239
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +0 -4278
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +0 -1864
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +0 -295
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +0 -1512
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +0 -1367
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +0 -229
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +0 -692
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +0 -2196
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +0 -2740
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +0 -612
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +0 -1451
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +0 -389
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +0 -1033
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +0 -141
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +0 -706
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +0 -510
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +0 -748
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +0 -1105
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +0 -1552
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +0 -1468
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +0 -2745
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +0 -752
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +0 -269
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +0 -578
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +0 -532
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +0 -1353
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +0 -238
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +0 -1282
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +0 -1213
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +0 -924
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +0 -470
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +0 -301
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +0 -2960
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +0 -1291
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +0 -1805
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +0 -3478
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +0 -606
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +0 -3411
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +0 -245
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +0 -188
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +0 -263
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +0 -400
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +0 -3448
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +0 -253
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +0 -438
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +0 -476
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +0 -159
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +0 -64
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +0 -160
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +0 -120
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +0 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +0 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +0 -2217
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +0 -121
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +0 -319
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +0 -2183
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +0 -2671
- data/vendor/local/share/gtk-doc/html/glib/glib.html +0 -80
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +0 -72
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +0 -131
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +0 -1288
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +0 -344
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +0 -2846
- data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
- data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/glib/tools.html +0 -41
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +0 -803
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +0 -710
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +0 -453
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +0 -51
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +0 -38
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +0 -73
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +0 -201
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +0 -178
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +0 -50
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +0 -2721
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +0 -136
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +0 -293
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +0 -263
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +0 -92
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +0 -214
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +0 -361
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +0 -307
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +0 -417
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +0 -2412
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +0 -847
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +0 -1433
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +0 -776
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +0 -2741
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +0 -5555
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +0 -2875
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +0 -4460
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +0 -416
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +0 -260
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +0 -234
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +0 -270
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +0 -117
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +0 -762
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +0 -801
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +0 -143
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +0 -287
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +0 -316
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +0 -76
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +0 -100
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +0 -86
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +0 -122
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +0 -257
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +0 -283
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +0 -125
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +0 -167
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +0 -160
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +0 -121
- data/vendor/local/share/gtk-doc/html/gobject/index.html +0 -192
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +0 -786
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +0 -72
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +0 -80
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +0 -66
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +0 -377
- data/vendor/local/share/gtk-doc/html/gobject/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +0 -35
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +0 -40
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +0 -63
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +0 -43
- data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.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/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/locale.alias +0 -77
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/envsubst.1 +0 -54
- data/vendor/local/share/man/man1/gettext.1 +0 -69
- data/vendor/local/share/man/man1/glib-genmarshal.1 +0 -312
- data/vendor/local/share/man/man1/glib-mkenums.1 +0 -246
- data/vendor/local/share/man/man1/gobject-query.1 +0 -83
- data/vendor/local/share/man/man1/ngettext.1 +0 -68
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +0 -72
- data/vendor/local/share/man/man3/bindtextdomain.3 +0 -69
- data/vendor/local/share/man/man3/dcgettext.3 +0 -1
- data/vendor/local/share/man/man3/dcngettext.3 +0 -1
- data/vendor/local/share/man/man3/dgettext.3 +0 -1
- data/vendor/local/share/man/man3/dngettext.3 +0 -1
- data/vendor/local/share/man/man3/gettext.3 +0 -99
- data/vendor/local/share/man/man3/ngettext.3 +0 -60
- data/vendor/local/share/man/man3/textdomain.3 +0 -57
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +0 -10423
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +0 -457
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.log +0 -2867
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +0 -64
@@ -1,2196 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>IO Channels</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
-
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
-
<link rel="up" href="glib-core.html" title="GLib Core Application Support">
|
9
|
-
<link rel="prev" href="glib-Memory-Allocation.html" title="Memory Allocation">
|
10
|
-
<link rel="next" href="glib-Error-Reporting.html" title="Error Reporting">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="glib-Memory-Allocation.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-core.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GLib Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="glib-Error-Reporting.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#glib-IO-Channels.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-IO-Channels.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-IO-Channels"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="glib-IO-Channels.top_of_page"></a>IO Channels</span></h2>
|
34
|
-
<p>IO Channels — portable support for using files, pipes and
|
35
|
-
sockets</p>
|
36
|
-
</td>
|
37
|
-
<td valign="top" align="right"></td>
|
38
|
-
</tr></table></div>
|
39
|
-
<div class="refsynopsisdiv">
|
40
|
-
<a name="glib-IO-Channels.synopsis"></a><h2>Synopsis</h2>
|
41
|
-
<pre class="synopsis">
|
42
|
-
#include <glib.h>
|
43
|
-
|
44
|
-
<a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel">GIOChannel</a>;
|
45
|
-
|
46
|
-
<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-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="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> * <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="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>);
|
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>);
|
53
|
-
|
54
|
-
<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-new-file" title="g_io_channel_new_file ()">g_io_channel_new_file</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
55
|
-
<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>,
|
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>,
|
58
|
-
<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
|
-
<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
|
-
<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>,
|
63
|
-
<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>,
|
66
|
-
<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
|
-
<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
|
-
<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>,
|
72
|
-
<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>,
|
75
|
-
<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
|
-
<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>,
|
79
|
-
<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
|
-
<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
|
-
<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>,
|
84
|
-
<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>,
|
89
|
-
<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
|
-
<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>);
|
92
|
-
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>,
|
94
|
-
<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>);
|
96
|
-
|
97
|
-
enum <a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus">GIOStatus</a>;
|
98
|
-
enum <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError">GIOChannelError</a>;
|
99
|
-
#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
|
-
<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
|
-
|
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>);
|
104
|
-
|
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>,
|
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>);
|
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>,
|
108
|
-
<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
|
-
<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
|
-
<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>,
|
112
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
-
<em class="parameter"><code><a class="link" href="glib-Datasets.html#GDestroyNotify" title="GDestroyNotify ()"><span class="type">GDestroyNotify</span></a> notify</code></em>);
|
117
|
-
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>,
|
119
|
-
<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
|
-
<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
|
-
|
122
|
-
<a class="link" href="glib-IO-Channels.html#GIOFuncs" title="GIOFuncs">GIOFuncs</a>;
|
123
|
-
|
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>,
|
126
|
-
<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>,
|
130
|
-
<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>);
|
132
|
-
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> * <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="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>,
|
134
|
-
<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>,
|
136
|
-
<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
|
-
<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>,
|
140
|
-
<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> * <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="GIOChannel"><span class="type">GIOChannel</span></a> *channel</code></em>);
|
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>,
|
143
|
-
<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>,
|
147
|
-
<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
|
-
|
149
|
-
|
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>,
|
151
|
-
<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
|
-
<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
|
-
<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
|
-
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>,
|
156
|
-
<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
|
-
<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
|
-
<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>,
|
160
|
-
<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
|
-
<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>);
|
163
|
-
</pre>
|
164
|
-
</div>
|
165
|
-
<div class="refsect1">
|
166
|
-
<a name="glib-IO-Channels.description"></a><h2>Description</h2>
|
167
|
-
<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
|
169
|
-
using file descriptors, pipes, and sockets, and integrating them
|
170
|
-
into the <a class="link" href="glib-The-Main-Event-Loop.html" title="The Main Event Loop">main event
|
171
|
-
loop</a>. Currently full support is available on UNIX platforms,
|
172
|
-
support for Windows is only partially complete.
|
173
|
-
</p>
|
174
|
-
<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
|
176
|
-
<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
|
-
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 ()"><code class="function">g_io_channel_new_file()</code></a>.
|
179
|
-
</p>
|
180
|
-
<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
|
182
|
-
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
|
-
<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
|
-
<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
|
-
</p>
|
186
|
-
<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
|
188
|
-
<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
|
190
|
-
function to be called whenever these events occur.
|
191
|
-
</p>
|
192
|
-
<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
|
194
|
-
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
|
-
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
|
197
|
-
isn't closed automatically, unless it was created using
|
198
|
-
<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
|
-
<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.
|
200
|
-
</p>
|
201
|
-
<p>
|
202
|
-
The new 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>,
|
203
|
-
<a class="link" href="glib-IO-Channels.html#g-io-channel-read-line" title="g_io_channel_read_line ()"><code class="function">g_io_channel_read_line()</code></a>, <a class="link" href="glib-IO-Channels.html#g-io-channel-read-line-string" title="g_io_channel_read_line_string ()"><code class="function">g_io_channel_read_line_string()</code></a>,
|
204
|
-
<a class="link" href="glib-IO-Channels.html#g-io-channel-read-to-end" title="g_io_channel_read_to_end ()"><code class="function">g_io_channel_read_to_end()</code></a>, <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>,
|
205
|
-
<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 <a class="link" href="glib-IO-Channels.html#g-io-channel-flush" title="g_io_channel_flush ()"><code class="function">g_io_channel_flush()</code></a> should not be
|
206
|
-
mixed with the deprecated functions <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>,
|
207
|
-
<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
|
-
</p>
|
209
|
-
</div>
|
210
|
-
<div class="refsect1">
|
211
|
-
<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">typedef struct {
|
215
|
-
} GIOChannel;
|
216
|
-
</pre>
|
217
|
-
<p>
|
218
|
-
A data structure representing an IO Channel. The fields should be
|
219
|
-
considered private and should only be accessed with the following
|
220
|
-
functions.
|
221
|
-
</p>
|
222
|
-
</div>
|
223
|
-
<hr>
|
224
|
-
<div class="refsect2">
|
225
|
-
<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> * g_io_channel_unix_new (<em class="parameter"><code><span class="type">int</span> fd</code></em>);</pre>
|
227
|
-
<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
|
229
|
-
this works for plain files, pipes, and sockets.
|
230
|
-
</p>
|
231
|
-
<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.
|
233
|
-
</p>
|
234
|
-
<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
|
236
|
-
is reading output from a command using via pipe, you may need to set
|
237
|
-
the encoding to the encoding of the current locale (see
|
238
|
-
<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.
|
239
|
-
</p>
|
240
|
-
<p>
|
241
|
-
If you want to read raw binary data without interpretation, then
|
242
|
-
call 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 with <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> for the
|
243
|
-
encoding argument.
|
244
|
-
</p>
|
245
|
-
<p>
|
246
|
-
This function is available in GLib on Windows, too, but you should
|
247
|
-
avoid using it on Windows. The domain of file descriptors and
|
248
|
-
sockets overlap. There is no way for GLib to know which one you mean
|
249
|
-
in case the argument you pass to this function happens to be both a
|
250
|
-
valid file descriptor and socket. If that happens a warning is
|
251
|
-
issued, and GLib assumes that it is the file descriptor you mean.
|
252
|
-
</p>
|
253
|
-
<div class="variablelist"><table border="0">
|
254
|
-
<col align="left" valign="top">
|
255
|
-
<tbody>
|
256
|
-
<tr>
|
257
|
-
<td><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td>
|
258
|
-
<td>a file descriptor.
|
259
|
-
</td>
|
260
|
-
</tr>
|
261
|
-
<tr>
|
262
|
-
<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>
|
265
|
-
</tr>
|
266
|
-
</tbody>
|
267
|
-
</table></div>
|
268
|
-
</div>
|
269
|
-
<hr>
|
270
|
-
<div class="refsect2">
|
271
|
-
<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>
|
273
|
-
<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>.
|
275
|
-
</p>
|
276
|
-
<p>
|
277
|
-
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>.
|
279
|
-
</p>
|
280
|
-
<div class="variablelist"><table border="0">
|
281
|
-
<col align="left" valign="top">
|
282
|
-
<tbody>
|
283
|
-
<tr>
|
284
|
-
<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>
|
287
|
-
</tr>
|
288
|
-
<tr>
|
289
|
-
<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>
|
292
|
-
</tr>
|
293
|
-
</tbody>
|
294
|
-
</table></div>
|
295
|
-
</div>
|
296
|
-
<hr>
|
297
|
-
<div class="refsect2">
|
298
|
-
<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> * 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
|
-
<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
|
302
|
-
works for file descriptors from the C runtime.
|
303
|
-
</p>
|
304
|
-
<p>
|
305
|
-
This function works for file descriptors as returned by the <code class="function">open()</code>,
|
306
|
-
<code class="function">creat()</code>, <code class="function">pipe()</code> and <code class="function">fileno()</code> calls in the Microsoft C runtime. In
|
307
|
-
order to meaningfully use this function your code should use the
|
308
|
-
same C runtime as GLib uses, which is msvcrt.dll. Note that in
|
309
|
-
current Microsoft compilers it is near impossible to convince it to
|
310
|
-
build code that would use msvcrt.dll. The last Microsoft compiler
|
311
|
-
version that supported using msvcrt.dll as the C runtime was version
|
312
|
-
6. The GNU compiler and toolchain for Windows, also known as Mingw,
|
313
|
-
fully supports msvcrt.dll.
|
314
|
-
</p>
|
315
|
-
<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
|
317
|
-
watching (polling) it, you shouldn't call <code class="function">read()</code> on the file
|
318
|
-
descriptor. This is because adding polling for a file descriptor is
|
319
|
-
implemented in GLib on Windows by starting a thread that sits
|
320
|
-
blocked in a <code class="function">read()</code> from the file descriptor most of the time. All
|
321
|
-
reads from the file descriptor should be done by this internal GLib
|
322
|
-
thread. Your code should call only <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>.
|
323
|
-
</p>
|
324
|
-
<p>
|
325
|
-
This function is available only in GLib on Windows.
|
326
|
-
</p>
|
327
|
-
<div class="variablelist"><table border="0">
|
328
|
-
<col align="left" valign="top">
|
329
|
-
<tbody>
|
330
|
-
<tr>
|
331
|
-
<td><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td>
|
332
|
-
<td>a C library file descriptor.
|
333
|
-
</td>
|
334
|
-
</tr>
|
335
|
-
<tr>
|
336
|
-
<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>
|
339
|
-
</tr>
|
340
|
-
</tbody>
|
341
|
-
</table></div>
|
342
|
-
</div>
|
343
|
-
<hr>
|
344
|
-
<div class="refsect2">
|
345
|
-
<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>
|
347
|
-
<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.
|
349
|
-
</p>
|
350
|
-
<p>
|
351
|
-
This function works for sockets created by Winsock. It's available
|
352
|
-
only in GLib on Windows.
|
353
|
-
</p>
|
354
|
-
<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
|
356
|
-
socket in non-blocking mode. This is a side-effect of the
|
357
|
-
implementation and unavoidable.
|
358
|
-
</p>
|
359
|
-
<div class="variablelist"><table border="0">
|
360
|
-
<col align="left" valign="top">
|
361
|
-
<tbody>
|
362
|
-
<tr>
|
363
|
-
<td><p><span class="term"><em class="parameter"><code>socket</code></em> :</span></p></td>
|
364
|
-
<td>a Winsock socket
|
365
|
-
</td>
|
366
|
-
</tr>
|
367
|
-
<tr>
|
368
|
-
<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>
|
370
|
-
</td>
|
371
|
-
</tr>
|
372
|
-
</tbody>
|
373
|
-
</table></div>
|
374
|
-
</div>
|
375
|
-
<hr>
|
376
|
-
<div class="refsect2">
|
377
|
-
<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>
|
379
|
-
<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.
|
381
|
-
</p>
|
382
|
-
<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
|
384
|
-
Windows messages for the window in question.
|
385
|
-
</p>
|
386
|
-
<div class="variablelist"><table border="0">
|
387
|
-
<col align="left" valign="top">
|
388
|
-
<tbody>
|
389
|
-
<tr>
|
390
|
-
<td><p><span class="term"><em class="parameter"><code>hwnd</code></em> :</span></p></td>
|
391
|
-
<td>a window handle.
|
392
|
-
</td>
|
393
|
-
</tr>
|
394
|
-
<tr>
|
395
|
-
<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>
|
398
|
-
</tr>
|
399
|
-
</tbody>
|
400
|
-
</table></div>
|
401
|
-
</div>
|
402
|
-
<hr>
|
403
|
-
<div class="refsect2">
|
404
|
-
<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>
|
406
|
-
<p>
|
407
|
-
Initializes a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> struct.
|
408
|
-
</p>
|
409
|
-
<p>
|
410
|
-
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>).
|
413
|
-
</p>
|
414
|
-
<div class="variablelist"><table border="0">
|
415
|
-
<col align="left" valign="top">
|
416
|
-
<tbody><tr>
|
417
|
-
<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>
|
419
|
-
</td>
|
420
|
-
</tr></tbody>
|
421
|
-
</table></div>
|
422
|
-
</div>
|
423
|
-
<hr>
|
424
|
-
<div class="refsect2">
|
425
|
-
<a name="g-io-channel-new-file"></a><h3>g_io_channel_new_file ()</h3>
|
426
|
-
<pre class="programlisting"><a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="returnvalue">GIOChannel</span></a> * g_io_channel_new_file (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
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>
|
429
|
-
<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
|
431
|
-
channel will be closed when the last reference to it is dropped,
|
432
|
-
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
|
-
so will not cause problems, as long as no attempt is made to
|
434
|
-
access the channel after it is closed).
|
435
|
-
</p>
|
436
|
-
<div class="variablelist"><table border="0">
|
437
|
-
<col align="left" valign="top">
|
438
|
-
<tbody>
|
439
|
-
<tr>
|
440
|
-
<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>
|
443
|
-
</tr>
|
444
|
-
<tr>
|
445
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
446
|
-
<td>One of "r", "w", "a", "r+", "w+", "a+". These have
|
447
|
-
the same meaning as in <code class="function">fopen()</code>
|
448
|
-
</td>
|
449
|
-
</tr>
|
450
|
-
<tr>
|
451
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
452
|
-
<td>A location to return an error of type <a class="link" href="glib-File-Utilities.html#G-FILE-ERROR:CAPS" title="G_FILE_ERROR"><code class="literal">G_FILE_ERROR</code></a>
|
453
|
-
</td>
|
454
|
-
</tr>
|
455
|
-
<tr>
|
456
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
457
|
-
<td> A <a class="link" href="glib-IO-Channels.html#GIOChannel" title="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.
|
458
|
-
</td>
|
459
|
-
</tr>
|
460
|
-
</tbody>
|
461
|
-
</table></div>
|
462
|
-
</div>
|
463
|
-
<hr>
|
464
|
-
<div class="refsect2">
|
465
|
-
<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>,
|
467
|
-
<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
|
-
<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
|
-
<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>
|
471
|
-
<p>
|
472
|
-
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
|
-
</p>
|
474
|
-
<div class="variablelist"><table border="0">
|
475
|
-
<col align="left" valign="top">
|
476
|
-
<tbody>
|
477
|
-
<tr>
|
478
|
-
<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>
|
480
|
-
</td>
|
481
|
-
</tr>
|
482
|
-
<tr>
|
483
|
-
<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>
|
486
|
-
</tr>
|
487
|
-
<tr>
|
488
|
-
<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
|
-
not be complelely filled even if there is data
|
491
|
-
in the buffer if the remaining data is not a
|
492
|
-
complete character.
|
493
|
-
</td>
|
494
|
-
</tr>
|
495
|
-
<tr>
|
496
|
-
<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 zero even on
|
498
|
-
success if count < 6 and the channel's encoding is non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
499
|
-
This indicates that the next UTF-8 character is too wide for
|
500
|
-
the buffer.
|
501
|
-
</td>
|
502
|
-
</tr>
|
503
|
-
<tr>
|
504
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
505
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>.
|
507
|
-
</td>
|
508
|
-
</tr>
|
509
|
-
<tr>
|
510
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
511
|
-
<td> the status of the operation.
|
512
|
-
</td>
|
513
|
-
</tr>
|
514
|
-
</tbody>
|
515
|
-
</table></div>
|
516
|
-
</div>
|
517
|
-
<hr>
|
518
|
-
<div class="refsect2">
|
519
|
-
<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>,
|
521
|
-
<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>
|
523
|
-
<p>
|
524
|
-
Reads a Unicode character from <em class="parameter"><code>channel</code></em>.
|
525
|
-
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.
|
526
|
-
</p>
|
527
|
-
<div class="variablelist"><table border="0">
|
528
|
-
<col align="left" valign="top">
|
529
|
-
<tbody>
|
530
|
-
<tr>
|
531
|
-
<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>
|
533
|
-
</td>
|
534
|
-
</tr>
|
535
|
-
<tr>
|
536
|
-
<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>
|
539
|
-
</tr>
|
540
|
-
<tr>
|
541
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
542
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
544
|
-
</td>
|
545
|
-
</tr>
|
546
|
-
<tr>
|
547
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
548
|
-
<td> a <a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="type">GIOStatus</span></a>
|
549
|
-
</td>
|
550
|
-
</tr>
|
551
|
-
</tbody>
|
552
|
-
</table></div>
|
553
|
-
</div>
|
554
|
-
<hr>
|
555
|
-
<div class="refsect2">
|
556
|
-
<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>,
|
558
|
-
<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
|
-
<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
|
-
<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>
|
562
|
-
<p>
|
563
|
-
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.
|
565
|
-
<em class="parameter"><code>str_return</code></em> will contain allocated memory if the return
|
566
|
-
is <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a>.
|
567
|
-
</p>
|
568
|
-
<div class="variablelist"><table border="0">
|
569
|
-
<col align="left" valign="top">
|
570
|
-
<tbody>
|
571
|
-
<tr>
|
572
|
-
<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>
|
574
|
-
</td>
|
575
|
-
</tr>
|
576
|
-
<tr>
|
577
|
-
<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
|
-
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>
|
580
|
-
when no longer needed. This is a nul-terminated string.
|
581
|
-
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.
|
582
|
-
</td>
|
583
|
-
</tr>
|
584
|
-
<tr>
|
585
|
-
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
586
|
-
<td>location to store length of the read data, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
587
|
-
</td>
|
588
|
-
</tr>
|
589
|
-
<tr>
|
590
|
-
<td><p><span class="term"><em class="parameter"><code>terminator_pos</code></em> :</span></p></td>
|
591
|
-
<td>location to store position of line terminator, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
592
|
-
</td>
|
593
|
-
</tr>
|
594
|
-
<tr>
|
595
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
596
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
598
|
-
</td>
|
599
|
-
</tr>
|
600
|
-
<tr>
|
601
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
602
|
-
<td> the status of the operation.
|
603
|
-
</td>
|
604
|
-
</tr>
|
605
|
-
</tbody>
|
606
|
-
</table></div>
|
607
|
-
</div>
|
608
|
-
<hr>
|
609
|
-
<div class="refsect2">
|
610
|
-
<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>,
|
613
|
-
<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>
|
615
|
-
<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.
|
617
|
-
</p>
|
618
|
-
<div class="variablelist"><table border="0">
|
619
|
-
<col align="left" valign="top">
|
620
|
-
<tbody>
|
621
|
-
<tr>
|
622
|
-
<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>
|
624
|
-
</td>
|
625
|
-
</tr>
|
626
|
-
<tr>
|
627
|
-
<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
|
-
If <em class="parameter"><code>buffer</code></em> already contains data, the old data will
|
630
|
-
be overwritten.
|
631
|
-
</td>
|
632
|
-
</tr>
|
633
|
-
<tr>
|
634
|
-
<td><p><span class="term"><em class="parameter"><code>terminator_pos</code></em> :</span></p></td>
|
635
|
-
<td>location to store position of line terminator, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
636
|
-
</td>
|
637
|
-
</tr>
|
638
|
-
<tr>
|
639
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
640
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
642
|
-
</td>
|
643
|
-
</tr>
|
644
|
-
<tr>
|
645
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
646
|
-
<td> the status of the operation.
|
647
|
-
</td>
|
648
|
-
</tr>
|
649
|
-
</tbody>
|
650
|
-
</table></div>
|
651
|
-
</div>
|
652
|
-
<hr>
|
653
|
-
<div class="refsect2">
|
654
|
-
<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>,
|
656
|
-
<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
|
-
<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>
|
659
|
-
<p>
|
660
|
-
Reads all the remaining data from the file.
|
661
|
-
</p>
|
662
|
-
<div class="variablelist"><table border="0">
|
663
|
-
<col align="left" valign="top">
|
664
|
-
<tbody>
|
665
|
-
<tr>
|
666
|
-
<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>
|
668
|
-
</td>
|
669
|
-
</tr>
|
670
|
-
<tr>
|
671
|
-
<td><p><span class="term"><em class="parameter"><code>str_return</code></em> :</span></p></td>
|
672
|
-
<td>Location to store a pointer to a string holding
|
673
|
-
the remaining data in the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>. This data should
|
674
|
-
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
|
675
|
-
data is terminated by an extra nul character, but there
|
676
|
-
may be other nuls in the intervening data.
|
677
|
-
</td>
|
678
|
-
</tr>
|
679
|
-
<tr>
|
680
|
-
<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>
|
683
|
-
</tr>
|
684
|
-
<tr>
|
685
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
686
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
688
|
-
</td>
|
689
|
-
</tr>
|
690
|
-
<tr>
|
691
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
692
|
-
<td> <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a> on success.
|
693
|
-
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>.
|
694
|
-
</td>
|
695
|
-
</tr>
|
696
|
-
</tbody>
|
697
|
-
</table></div>
|
698
|
-
</div>
|
699
|
-
<hr>
|
700
|
-
<div class="refsect2">
|
701
|
-
<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>,
|
703
|
-
<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
|
-
<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
|
-
<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>
|
707
|
-
<p>
|
708
|
-
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
|
-
</p>
|
710
|
-
<p>
|
711
|
-
On seekable channels with encodings other than <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> or UTF-8, generic
|
712
|
-
mixing of reading and writing is not allowed. A call to <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>
|
713
|
-
may only be made on a channel from which data has been read in the
|
714
|
-
cases described in the documentation for <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>.
|
715
|
-
</p>
|
716
|
-
<div class="variablelist"><table border="0">
|
717
|
-
<col align="left" valign="top">
|
718
|
-
<tbody>
|
719
|
-
<tr>
|
720
|
-
<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>
|
722
|
-
</td>
|
723
|
-
</tr>
|
724
|
-
<tr>
|
725
|
-
<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>
|
728
|
-
</tr>
|
729
|
-
<tr>
|
730
|
-
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
731
|
-
<td>the size of the buffer. If -1, the buffer
|
732
|
-
is taken to be a nul-terminated string.
|
733
|
-
</td>
|
734
|
-
</tr>
|
735
|
-
<tr>
|
736
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
737
|
-
<td>The number of bytes written. This can be nonzero
|
738
|
-
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>.
|
739
|
-
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
|
740
|
-
channel is blocking, this will always be equal
|
741
|
-
to <em class="parameter"><code>count</code></em> if <em class="parameter"><code>count</code></em> >= 0.
|
742
|
-
</td>
|
743
|
-
</tr>
|
744
|
-
<tr>
|
745
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
746
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
748
|
-
</td>
|
749
|
-
</tr>
|
750
|
-
<tr>
|
751
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
752
|
-
<td> the status of the operation.
|
753
|
-
</td>
|
754
|
-
</tr>
|
755
|
-
</tbody>
|
756
|
-
</table></div>
|
757
|
-
</div>
|
758
|
-
<hr>
|
759
|
-
<div class="refsect2">
|
760
|
-
<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>,
|
762
|
-
<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>
|
764
|
-
<p>
|
765
|
-
Writes a Unicode character to <em class="parameter"><code>channel</code></em>.
|
766
|
-
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.
|
767
|
-
</p>
|
768
|
-
<div class="variablelist"><table border="0">
|
769
|
-
<col align="left" valign="top">
|
770
|
-
<tbody>
|
771
|
-
<tr>
|
772
|
-
<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>
|
774
|
-
</td>
|
775
|
-
</tr>
|
776
|
-
<tr>
|
777
|
-
<td><p><span class="term"><em class="parameter"><code>thechar</code></em> :</span></p></td>
|
778
|
-
<td>a character
|
779
|
-
</td>
|
780
|
-
</tr>
|
781
|
-
<tr>
|
782
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
783
|
-
<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
|
-
or <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
785
|
-
</td>
|
786
|
-
</tr>
|
787
|
-
<tr>
|
788
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
789
|
-
<td> a <a class="link" href="glib-IO-Channels.html#GIOStatus" title="enum GIOStatus"><span class="type">GIOStatus</span></a>
|
790
|
-
</td>
|
791
|
-
</tr>
|
792
|
-
</tbody>
|
793
|
-
</table></div>
|
794
|
-
</div>
|
795
|
-
<hr>
|
796
|
-
<div class="refsect2">
|
797
|
-
<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>
|
800
|
-
<p>
|
801
|
-
Flushes the write buffer for the GIOChannel.
|
802
|
-
</p>
|
803
|
-
<div class="variablelist"><table border="0">
|
804
|
-
<col align="left" valign="top">
|
805
|
-
<tbody>
|
806
|
-
<tr>
|
807
|
-
<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>
|
809
|
-
</td>
|
810
|
-
</tr>
|
811
|
-
<tr>
|
812
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
813
|
-
<td>location to store an error of type <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
814
|
-
</td>
|
815
|
-
</tr>
|
816
|
-
<tr>
|
817
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
818
|
-
<td> the status of the operation: One of
|
819
|
-
<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
|
820
|
-
<a class="link" href="glib-IO-Channels.html#G-IO-STATUS-ERROR:CAPS"><span class="type">G_IO_STATUS_ERROR</span></a>.
|
821
|
-
</td>
|
822
|
-
</tr>
|
823
|
-
</tbody>
|
824
|
-
</table></div>
|
825
|
-
</div>
|
826
|
-
<hr>
|
827
|
-
<div class="refsect2">
|
828
|
-
<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>,
|
830
|
-
<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
|
-
<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>
|
833
|
-
<p>
|
834
|
-
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
|
-
</p>
|
836
|
-
<div class="variablelist"><table border="0">
|
837
|
-
<col align="left" valign="top">
|
838
|
-
<tbody>
|
839
|
-
<tr>
|
840
|
-
<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>
|
842
|
-
</td>
|
843
|
-
</tr>
|
844
|
-
<tr>
|
845
|
-
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
|
846
|
-
<td>The offset in bytes from the position specified by <em class="parameter"><code>type</code></em>
|
847
|
-
</td>
|
848
|
-
</tr>
|
849
|
-
<tr>
|
850
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
851
|
-
<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
|
-
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>
|
853
|
-
is allowed. See the documentation for
|
854
|
-
<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.
|
855
|
-
</td>
|
856
|
-
</tr>
|
857
|
-
<tr>
|
858
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
859
|
-
<td>A location to return an error of type <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
860
|
-
</td>
|
861
|
-
</tr>
|
862
|
-
<tr>
|
863
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
864
|
-
<td> the status of the operation.
|
865
|
-
</td>
|
866
|
-
</tr>
|
867
|
-
</tbody>
|
868
|
-
</table></div>
|
869
|
-
</div>
|
870
|
-
<hr>
|
871
|
-
<div class="refsect2">
|
872
|
-
<a name="GSeekType"></a><h3>enum GSeekType</h3>
|
873
|
-
<pre class="programlisting">typedef enum
|
874
|
-
{
|
875
|
-
G_SEEK_CUR,
|
876
|
-
G_SEEK_SET,
|
877
|
-
G_SEEK_END
|
878
|
-
} GSeekType;
|
879
|
-
</pre>
|
880
|
-
<p>
|
881
|
-
An enumeration specifying the base position for a
|
882
|
-
<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> operation.
|
883
|
-
</p>
|
884
|
-
<div class="variablelist"><table border="0">
|
885
|
-
<col align="left" valign="top">
|
886
|
-
<tbody>
|
887
|
-
<tr>
|
888
|
-
<td><p><a name="G-SEEK-CUR:CAPS"></a><span class="term"><code class="literal">G_SEEK_CUR</code></span></p></td>
|
889
|
-
<td>the current position in the file.
|
890
|
-
</td>
|
891
|
-
</tr>
|
892
|
-
<tr>
|
893
|
-
<td><p><a name="G-SEEK-SET:CAPS"></a><span class="term"><code class="literal">G_SEEK_SET</code></span></p></td>
|
894
|
-
<td>the start of the file.
|
895
|
-
</td>
|
896
|
-
</tr>
|
897
|
-
<tr>
|
898
|
-
<td><p><a name="G-SEEK-END:CAPS"></a><span class="term"><code class="literal">G_SEEK_END</code></span></p></td>
|
899
|
-
<td>the end of the file.
|
900
|
-
</td>
|
901
|
-
</tr>
|
902
|
-
</tbody>
|
903
|
-
</table></div>
|
904
|
-
</div>
|
905
|
-
<hr>
|
906
|
-
<div class="refsect2">
|
907
|
-
<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>,
|
909
|
-
<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>
|
911
|
-
<p>
|
912
|
-
Close an IO channel. Any pending data to be written will be
|
913
|
-
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
|
914
|
-
last reference is dropped using <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>.
|
915
|
-
</p>
|
916
|
-
<div class="variablelist"><table border="0">
|
917
|
-
<col align="left" valign="top">
|
918
|
-
<tbody>
|
919
|
-
<tr>
|
920
|
-
<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>
|
922
|
-
</td>
|
923
|
-
</tr>
|
924
|
-
<tr>
|
925
|
-
<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>
|
928
|
-
</tr>
|
929
|
-
<tr>
|
930
|
-
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
|
931
|
-
<td>location to store a <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
932
|
-
</td>
|
933
|
-
</tr>
|
934
|
-
<tr>
|
935
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
936
|
-
<td> the status of the operation.
|
937
|
-
</td>
|
938
|
-
</tr>
|
939
|
-
</tbody>
|
940
|
-
</table></div>
|
941
|
-
</div>
|
942
|
-
<hr>
|
943
|
-
<div class="refsect2">
|
944
|
-
<a name="GIOStatus"></a><h3>enum GIOStatus</h3>
|
945
|
-
<pre class="programlisting">typedef enum
|
946
|
-
{
|
947
|
-
G_IO_STATUS_ERROR,
|
948
|
-
G_IO_STATUS_NORMAL,
|
949
|
-
G_IO_STATUS_EOF,
|
950
|
-
G_IO_STATUS_AGAIN
|
951
|
-
} GIOStatus;
|
952
|
-
</pre>
|
953
|
-
<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.
|
955
|
-
</p>
|
956
|
-
<div class="variablelist"><table border="0">
|
957
|
-
<col align="left" valign="top">
|
958
|
-
<tbody>
|
959
|
-
<tr>
|
960
|
-
<td><p><a name="G-IO-STATUS-ERROR:CAPS"></a><span class="term"><code class="literal">G_IO_STATUS_ERROR</code></span></p></td>
|
961
|
-
<td>An error occurred.
|
962
|
-
</td>
|
963
|
-
</tr>
|
964
|
-
<tr>
|
965
|
-
<td><p><a name="G-IO-STATUS-NORMAL:CAPS"></a><span class="term"><code class="literal">G_IO_STATUS_NORMAL</code></span></p></td>
|
966
|
-
<td>Success.
|
967
|
-
</td>
|
968
|
-
</tr>
|
969
|
-
<tr>
|
970
|
-
<td><p><a name="G-IO-STATUS-EOF:CAPS"></a><span class="term"><code class="literal">G_IO_STATUS_EOF</code></span></p></td>
|
971
|
-
<td>End of file.
|
972
|
-
</td>
|
973
|
-
</tr>
|
974
|
-
<tr>
|
975
|
-
<td><p><a name="G-IO-STATUS-AGAIN:CAPS"></a><span class="term"><code class="literal">G_IO_STATUS_AGAIN</code></span></p></td>
|
976
|
-
<td>Resource temporarily unavailable.
|
977
|
-
</td>
|
978
|
-
</tr>
|
979
|
-
</tbody>
|
980
|
-
</table></div>
|
981
|
-
</div>
|
982
|
-
<hr>
|
983
|
-
<div class="refsect2">
|
984
|
-
<a name="GIOChannelError"></a><h3>enum GIOChannelError</h3>
|
985
|
-
<pre class="programlisting">typedef enum
|
986
|
-
{
|
987
|
-
/* Derived from errno */
|
988
|
-
G_IO_CHANNEL_ERROR_FBIG,
|
989
|
-
G_IO_CHANNEL_ERROR_INVAL,
|
990
|
-
G_IO_CHANNEL_ERROR_IO,
|
991
|
-
G_IO_CHANNEL_ERROR_ISDIR,
|
992
|
-
G_IO_CHANNEL_ERROR_NOSPC,
|
993
|
-
G_IO_CHANNEL_ERROR_NXIO,
|
994
|
-
G_IO_CHANNEL_ERROR_OVERFLOW,
|
995
|
-
G_IO_CHANNEL_ERROR_PIPE,
|
996
|
-
/* Other */
|
997
|
-
G_IO_CHANNEL_ERROR_FAILED
|
998
|
-
} GIOChannelError;
|
999
|
-
</pre>
|
1000
|
-
<p>
|
1001
|
-
Error codes returned by <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a> operations.
|
1002
|
-
</p>
|
1003
|
-
<div class="variablelist"><table border="0">
|
1004
|
-
<col align="left" valign="top">
|
1005
|
-
<tbody>
|
1006
|
-
<tr>
|
1007
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-FBIG:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_FBIG</code></span></p></td>
|
1008
|
-
<td>File too large.
|
1009
|
-
</td>
|
1010
|
-
</tr>
|
1011
|
-
<tr>
|
1012
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-INVAL:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_INVAL</code></span></p></td>
|
1013
|
-
<td>Invalid argument.
|
1014
|
-
</td>
|
1015
|
-
</tr>
|
1016
|
-
<tr>
|
1017
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-IO:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_IO</code></span></p></td>
|
1018
|
-
<td>IO error.
|
1019
|
-
</td>
|
1020
|
-
</tr>
|
1021
|
-
<tr>
|
1022
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-ISDIR:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_ISDIR</code></span></p></td>
|
1023
|
-
<td>File is a directory.
|
1024
|
-
</td>
|
1025
|
-
</tr>
|
1026
|
-
<tr>
|
1027
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-NOSPC:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_NOSPC</code></span></p></td>
|
1028
|
-
<td>No space left on device.
|
1029
|
-
</td>
|
1030
|
-
</tr>
|
1031
|
-
<tr>
|
1032
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-NXIO:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_NXIO</code></span></p></td>
|
1033
|
-
<td>No such device or address.
|
1034
|
-
</td>
|
1035
|
-
</tr>
|
1036
|
-
<tr>
|
1037
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-OVERFLOW:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_OVERFLOW</code></span></p></td>
|
1038
|
-
<td>Value too large for defined datatype.
|
1039
|
-
</td>
|
1040
|
-
</tr>
|
1041
|
-
<tr>
|
1042
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-PIPE:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_PIPE</code></span></p></td>
|
1043
|
-
<td>Broken pipe.
|
1044
|
-
</td>
|
1045
|
-
</tr>
|
1046
|
-
<tr>
|
1047
|
-
<td><p><a name="G-IO-CHANNEL-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">G_IO_CHANNEL_ERROR_FAILED</code></span></p></td>
|
1048
|
-
<td>Some other error.
|
1049
|
-
</td>
|
1050
|
-
</tr>
|
1051
|
-
</tbody>
|
1052
|
-
</table></div>
|
1053
|
-
</div>
|
1054
|
-
<hr>
|
1055
|
-
<div class="refsect2">
|
1056
|
-
<a name="G-IO-CHANNEL-ERROR:CAPS"></a><h3>G_IO_CHANNEL_ERROR</h3>
|
1057
|
-
<pre class="programlisting">#define G_IO_CHANNEL_ERROR g_io_channel_error_quark()
|
1058
|
-
</pre>
|
1059
|
-
<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
|
1062
|
-
information on error domains.
|
1063
|
-
</p>
|
1064
|
-
</div>
|
1065
|
-
<hr>
|
1066
|
-
<div class="refsect2">
|
1067
|
-
<a name="g-io-channel-error-from-errno"></a><h3>g_io_channel_error_from_errno ()</h3>
|
1068
|
-
<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
|
-
<p>
|
1070
|
-
Converts an <code class="literal">errno</code> error number to a <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>.
|
1071
|
-
</p>
|
1072
|
-
<div class="variablelist"><table border="0">
|
1073
|
-
<col align="left" valign="top">
|
1074
|
-
<tbody>
|
1075
|
-
<tr>
|
1076
|
-
<td><p><span class="term"><em class="parameter"><code>en</code></em> :</span></p></td>
|
1077
|
-
<td>an <code class="literal">errno</code> error number, e.g. <code class="literal">EINVAL</code>
|
1078
|
-
</td>
|
1079
|
-
</tr>
|
1080
|
-
<tr>
|
1081
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1082
|
-
<td> a <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a> error number, e.g.
|
1083
|
-
<a class="link" href="glib-IO-Channels.html#G-IO-CHANNEL-ERROR-INVAL:CAPS"><code class="literal">G_IO_CHANNEL_ERROR_INVAL</code></a>.
|
1084
|
-
</td>
|
1085
|
-
</tr>
|
1086
|
-
</tbody>
|
1087
|
-
</table></div>
|
1088
|
-
</div>
|
1089
|
-
<hr>
|
1090
|
-
<div class="refsect2">
|
1091
|
-
<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>
|
1093
|
-
<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>.
|
1095
|
-
</p>
|
1096
|
-
<div class="variablelist"><table border="0">
|
1097
|
-
<col align="left" valign="top">
|
1098
|
-
<tbody>
|
1099
|
-
<tr>
|
1100
|
-
<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>
|
1102
|
-
</td>
|
1103
|
-
</tr>
|
1104
|
-
<tr>
|
1105
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1106
|
-
<td> the <em class="parameter"><code>channel</code></em> that was passed in (since 2.6)
|
1107
|
-
</td>
|
1108
|
-
</tr>
|
1109
|
-
</tbody>
|
1110
|
-
</table></div>
|
1111
|
-
</div>
|
1112
|
-
<hr>
|
1113
|
-
<div class="refsect2">
|
1114
|
-
<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>
|
1116
|
-
<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>.
|
1118
|
-
</p>
|
1119
|
-
<div class="variablelist"><table border="0">
|
1120
|
-
<col align="left" valign="top">
|
1121
|
-
<tbody><tr>
|
1122
|
-
<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>
|
1124
|
-
</td>
|
1125
|
-
</tr></tbody>
|
1126
|
-
</table></div>
|
1127
|
-
</div>
|
1128
|
-
<hr>
|
1129
|
-
<div class="refsect2">
|
1130
|
-
<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>,
|
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>);</pre>
|
1133
|
-
<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
|
1135
|
-
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
|
-
be dispatched when there's data available for reading.
|
1137
|
-
</p>
|
1138
|
-
<p>
|
1139
|
-
<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> is a simpler interface to this same functionality, for
|
1140
|
-
the case where you want to add the source to the default main loop context
|
1141
|
-
at the default priority.
|
1142
|
-
</p>
|
1143
|
-
<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
|
1145
|
-
puts the socket in non-blocking mode. This is a side-effect of the
|
1146
|
-
implementation and unavoidable.
|
1147
|
-
</p>
|
1148
|
-
<div class="variablelist"><table border="0">
|
1149
|
-
<col align="left" valign="top">
|
1150
|
-
<tbody>
|
1151
|
-
<tr>
|
1152
|
-
<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>
|
1155
|
-
</tr>
|
1156
|
-
<tr>
|
1157
|
-
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1158
|
-
<td>conditions to watch for
|
1159
|
-
</td>
|
1160
|
-
</tr>
|
1161
|
-
<tr>
|
1162
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1163
|
-
<td> a new <a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource"><span class="type">GSource</span></a>
|
1164
|
-
</td>
|
1165
|
-
</tr>
|
1166
|
-
</tbody>
|
1167
|
-
</table></div>
|
1168
|
-
</div>
|
1169
|
-
<hr>
|
1170
|
-
<div class="refsect2">
|
1171
|
-
<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>,
|
1173
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
1178
|
-
with the default priority.
|
1179
|
-
</p>
|
1180
|
-
<div class="variablelist"><table border="0">
|
1181
|
-
<col align="left" valign="top">
|
1182
|
-
<tbody>
|
1183
|
-
<tr>
|
1184
|
-
<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>
|
1186
|
-
</td>
|
1187
|
-
</tr>
|
1188
|
-
<tr>
|
1189
|
-
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1190
|
-
<td>the condition to watch for
|
1191
|
-
</td>
|
1192
|
-
</tr>
|
1193
|
-
<tr>
|
1194
|
-
<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>
|
1197
|
-
</tr>
|
1198
|
-
<tr>
|
1199
|
-
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
1200
|
-
<td>user data to pass to <em class="parameter"><code>func</code></em>
|
1201
|
-
</td>
|
1202
|
-
</tr>
|
1203
|
-
<tr>
|
1204
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1205
|
-
<td> the event source id
|
1206
|
-
</td>
|
1207
|
-
</tr>
|
1208
|
-
</tbody>
|
1209
|
-
</table></div>
|
1210
|
-
</div>
|
1211
|
-
<hr>
|
1212
|
-
<div class="refsect2">
|
1213
|
-
<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>,
|
1215
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
1222
|
-
with the given priority.
|
1223
|
-
</p>
|
1224
|
-
<p>
|
1225
|
-
This internally creates a main loop source using <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>
|
1226
|
-
and attaches it to the main loop context with <a class="link" href="glib-The-Main-Event-Loop.html#g-source-attach" title="g_source_attach ()"><code class="function">g_source_attach()</code></a>.
|
1227
|
-
You can do these steps manually if you need greater control.
|
1228
|
-
</p>
|
1229
|
-
<div class="variablelist"><table border="0">
|
1230
|
-
<col align="left" valign="top">
|
1231
|
-
<tbody>
|
1232
|
-
<tr>
|
1233
|
-
<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>
|
1235
|
-
</td>
|
1236
|
-
</tr>
|
1237
|
-
<tr>
|
1238
|
-
<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>
|
1241
|
-
</tr>
|
1242
|
-
<tr>
|
1243
|
-
<td><p><span class="term"><em class="parameter"><code>condition</code></em> :</span></p></td>
|
1244
|
-
<td>the condition to watch for
|
1245
|
-
</td>
|
1246
|
-
</tr>
|
1247
|
-
<tr>
|
1248
|
-
<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>
|
1251
|
-
</tr>
|
1252
|
-
<tr>
|
1253
|
-
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
1254
|
-
<td>user data to pass to <em class="parameter"><code>func</code></em>
|
1255
|
-
</td>
|
1256
|
-
</tr>
|
1257
|
-
<tr>
|
1258
|
-
<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>
|
1261
|
-
</tr>
|
1262
|
-
<tr>
|
1263
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1264
|
-
<td> the event source id
|
1265
|
-
</td>
|
1266
|
-
</tr>
|
1267
|
-
</tbody>
|
1268
|
-
</table></div>
|
1269
|
-
</div>
|
1270
|
-
<hr>
|
1271
|
-
<div class="refsect2">
|
1272
|
-
<a name="GIOCondition"></a><h3>enum GIOCondition</h3>
|
1273
|
-
<pre class="programlisting">typedef enum
|
1274
|
-
{
|
1275
|
-
G_IO_IN GLIB_SYSDEF_POLLIN,
|
1276
|
-
G_IO_OUT GLIB_SYSDEF_POLLOUT,
|
1277
|
-
G_IO_PRI GLIB_SYSDEF_POLLPRI,
|
1278
|
-
G_IO_ERR GLIB_SYSDEF_POLLERR,
|
1279
|
-
G_IO_HUP GLIB_SYSDEF_POLLHUP,
|
1280
|
-
G_IO_NVAL GLIB_SYSDEF_POLLNVAL
|
1281
|
-
} GIOCondition;
|
1282
|
-
</pre>
|
1283
|
-
<p>
|
1284
|
-
A bitwise combination representing a condition to watch for on an
|
1285
|
-
event source.
|
1286
|
-
</p>
|
1287
|
-
<div class="variablelist"><table border="0">
|
1288
|
-
<col align="left" valign="top">
|
1289
|
-
<tbody>
|
1290
|
-
<tr>
|
1291
|
-
<td><p><a name="G-IO-IN:CAPS"></a><span class="term"><code class="literal">G_IO_IN</code></span></p></td>
|
1292
|
-
<td>There is data to read.
|
1293
|
-
</td>
|
1294
|
-
</tr>
|
1295
|
-
<tr>
|
1296
|
-
<td><p><a name="G-IO-OUT:CAPS"></a><span class="term"><code class="literal">G_IO_OUT</code></span></p></td>
|
1297
|
-
<td>Data can be written (without blocking).
|
1298
|
-
</td>
|
1299
|
-
</tr>
|
1300
|
-
<tr>
|
1301
|
-
<td><p><a name="G-IO-PRI:CAPS"></a><span class="term"><code class="literal">G_IO_PRI</code></span></p></td>
|
1302
|
-
<td>There is urgent data to read.
|
1303
|
-
</td>
|
1304
|
-
</tr>
|
1305
|
-
<tr>
|
1306
|
-
<td><p><a name="G-IO-ERR:CAPS"></a><span class="term"><code class="literal">G_IO_ERR</code></span></p></td>
|
1307
|
-
<td>Error condition.
|
1308
|
-
</td>
|
1309
|
-
</tr>
|
1310
|
-
<tr>
|
1311
|
-
<td><p><a name="G-IO-HUP:CAPS"></a><span class="term"><code class="literal">G_IO_HUP</code></span></p></td>
|
1312
|
-
<td>Hung up (the connection has been broken, usually for
|
1313
|
-
pipes and sockets).
|
1314
|
-
</td>
|
1315
|
-
</tr>
|
1316
|
-
<tr>
|
1317
|
-
<td><p><a name="G-IO-NVAL:CAPS"></a><span class="term"><code class="literal">G_IO_NVAL</code></span></p></td>
|
1318
|
-
<td>Invalid request. The file descriptor is not open.
|
1319
|
-
</td>
|
1320
|
-
</tr>
|
1321
|
-
</tbody>
|
1322
|
-
</table></div>
|
1323
|
-
</div>
|
1324
|
-
<hr>
|
1325
|
-
<div class="refsect2">
|
1326
|
-
<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>,
|
1328
|
-
<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
|
-
<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
|
-
<p>
|
1331
|
-
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
|
-
<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.
|
1334
|
-
</p>
|
1335
|
-
<div class="variablelist"><table border="0">
|
1336
|
-
<col align="left" valign="top">
|
1337
|
-
<tbody>
|
1338
|
-
<tr>
|
1339
|
-
<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>
|
1342
|
-
</tr>
|
1343
|
-
<tr>
|
1344
|
-
<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>
|
1347
|
-
</tr>
|
1348
|
-
<tr>
|
1349
|
-
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
1350
|
-
<td>user data set in <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>
|
1351
|
-
</td>
|
1352
|
-
</tr>
|
1353
|
-
<tr>
|
1354
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1355
|
-
<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
|
-
should be removed
|
1357
|
-
</td>
|
1358
|
-
</tr>
|
1359
|
-
</tbody>
|
1360
|
-
</table></div>
|
1361
|
-
</div>
|
1362
|
-
<hr>
|
1363
|
-
<div class="refsect2">
|
1364
|
-
<a name="GIOFuncs"></a><h3>GIOFuncs</h3>
|
1365
|
-
<pre class="programlisting">typedef struct {
|
1366
|
-
GIOStatus (*io_read) (GIOChannel *channel,
|
1367
|
-
gchar *buf,
|
1368
|
-
gsize count,
|
1369
|
-
gsize *bytes_read,
|
1370
|
-
GError **err);
|
1371
|
-
GIOStatus (*io_write) (GIOChannel *channel,
|
1372
|
-
const gchar *buf,
|
1373
|
-
gsize count,
|
1374
|
-
gsize *bytes_written,
|
1375
|
-
GError **err);
|
1376
|
-
GIOStatus (*io_seek) (GIOChannel *channel,
|
1377
|
-
gint64 offset,
|
1378
|
-
GSeekType type,
|
1379
|
-
GError **err);
|
1380
|
-
GIOStatus (*io_close) (GIOChannel *channel,
|
1381
|
-
GError **err);
|
1382
|
-
GSource* (*io_create_watch) (GIOChannel *channel,
|
1383
|
-
GIOCondition condition);
|
1384
|
-
void (*io_free) (GIOChannel *channel);
|
1385
|
-
GIOStatus (*io_set_flags) (GIOChannel *channel,
|
1386
|
-
GIOFlags flags,
|
1387
|
-
GError **err);
|
1388
|
-
GIOFlags (*io_get_flags) (GIOChannel *channel);
|
1389
|
-
} GIOFuncs;
|
1390
|
-
</pre>
|
1391
|
-
<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>
|
1393
|
-
in a generic way.
|
1394
|
-
</p>
|
1395
|
-
<div class="variablelist"><table border="0">
|
1396
|
-
<col align="left" valign="top">
|
1397
|
-
<tbody>
|
1398
|
-
<tr>
|
1399
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-read"></a>io_read</code></em> ()</span></p></td>
|
1400
|
-
<td>reads raw bytes from the channel. This is called from
|
1401
|
-
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
|
1402
|
-
read raw bytes from the channel. Encoding and buffering
|
1403
|
-
issues are dealt with at a higher level.
|
1404
|
-
</td>
|
1405
|
-
</tr>
|
1406
|
-
<tr>
|
1407
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-write"></a>io_write</code></em> ()</span></p></td>
|
1408
|
-
<td>writes raw bytes to the channel. This is called from
|
1409
|
-
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
|
1410
|
-
write raw bytes to the channel. Encoding and buffering
|
1411
|
-
issues are dealt with at a higher level.
|
1412
|
-
</td>
|
1413
|
-
</tr>
|
1414
|
-
<tr>
|
1415
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-seek"></a>io_seek</code></em> ()</span></p></td>
|
1416
|
-
<td>(optional) seeks the channel. This is called from
|
1417
|
-
<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.
|
1418
|
-
</td>
|
1419
|
-
</tr>
|
1420
|
-
<tr>
|
1421
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-close"></a>io_close</code></em> ()</span></p></td>
|
1422
|
-
<td>closes the channel. This is called from
|
1423
|
-
<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.
|
1424
|
-
</td>
|
1425
|
-
</tr>
|
1426
|
-
<tr>
|
1427
|
-
<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
|
-
<td>creates a watch on the channel. This call
|
1429
|
-
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>.
|
1430
|
-
</td>
|
1431
|
-
</tr>
|
1432
|
-
<tr>
|
1433
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GIOFuncs.io-free"></a>io_free</code></em> ()</span></p></td>
|
1434
|
-
<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
|
-
be freed. This function must free the memory associated
|
1436
|
-
with the channel, including freeing the <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>
|
1437
|
-
structure itself. The channel buffers have been flushed
|
1438
|
-
and possibly <em class="parameter"><code>io_close</code></em> has been called by the time this
|
1439
|
-
function is called.
|
1440
|
-
</td>
|
1441
|
-
</tr>
|
1442
|
-
<tr>
|
1443
|
-
<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
|
-
<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
|
-
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
|
1446
|
-
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
|
1447
|
-
out.
|
1448
|
-
</td>
|
1449
|
-
</tr>
|
1450
|
-
<tr>
|
1451
|
-
<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
|
-
<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
|
-
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
|
1454
|
-
<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>
|
1455
|
-
automatically adds the others as appropriate.
|
1456
|
-
</td>
|
1457
|
-
</tr>
|
1458
|
-
</tbody>
|
1459
|
-
</table></div>
|
1460
|
-
</div>
|
1461
|
-
<hr>
|
1462
|
-
<div class="refsect2">
|
1463
|
-
<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>
|
1465
|
-
<p>
|
1466
|
-
Gets the buffer size.
|
1467
|
-
</p>
|
1468
|
-
<div class="variablelist"><table border="0">
|
1469
|
-
<col align="left" valign="top">
|
1470
|
-
<tbody>
|
1471
|
-
<tr>
|
1472
|
-
<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>
|
1474
|
-
</td>
|
1475
|
-
</tr>
|
1476
|
-
<tr>
|
1477
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1478
|
-
<td> the size of the buffer.
|
1479
|
-
</td>
|
1480
|
-
</tr>
|
1481
|
-
</tbody>
|
1482
|
-
</table></div>
|
1483
|
-
</div>
|
1484
|
-
<hr>
|
1485
|
-
<div class="refsect2">
|
1486
|
-
<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>,
|
1488
|
-
<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
|
-
<p>
|
1490
|
-
Sets the buffer size.
|
1491
|
-
</p>
|
1492
|
-
<div class="variablelist"><table border="0">
|
1493
|
-
<col align="left" valign="top">
|
1494
|
-
<tbody>
|
1495
|
-
<tr>
|
1496
|
-
<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>
|
1498
|
-
</td>
|
1499
|
-
</tr>
|
1500
|
-
<tr>
|
1501
|
-
<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>
|
1504
|
-
</tr>
|
1505
|
-
</tbody>
|
1506
|
-
</table></div>
|
1507
|
-
</div>
|
1508
|
-
<hr>
|
1509
|
-
<div class="refsect2">
|
1510
|
-
<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>
|
1512
|
-
<p>
|
1513
|
-
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
|
-
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.
|
1516
|
-
</p>
|
1517
|
-
<div class="variablelist"><table border="0">
|
1518
|
-
<col align="left" valign="top">
|
1519
|
-
<tbody>
|
1520
|
-
<tr>
|
1521
|
-
<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>
|
1523
|
-
</td>
|
1524
|
-
</tr>
|
1525
|
-
<tr>
|
1526
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1527
|
-
<td> A <a class="link" href="glib-IO-Channels.html#GIOCondition" title="enum GIOCondition"><span class="type">GIOCondition</span></a>
|
1528
|
-
</td>
|
1529
|
-
</tr>
|
1530
|
-
</tbody>
|
1531
|
-
</table></div>
|
1532
|
-
</div>
|
1533
|
-
<hr>
|
1534
|
-
<div class="refsect2">
|
1535
|
-
<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>
|
1537
|
-
<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
|
1539
|
-
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
|
-
</p>
|
1541
|
-
<p>
|
1542
|
-
The values of the flags <a class="link" href="glib-IO-Channels.html#G-IO-FLAG-IS-READABLE:CAPS"><code class="literal">G_IO_FLAG_IS_READABLE</code></a> and <a class="link" href="glib-IO-Channels.html#G-IO-FLAG-IS-WRITEABLE:CAPS"><code class="literal">G_IO_FLAG_IS_WRITEABLE</code></a>
|
1543
|
-
are cached for internal use by the channel when it is created.
|
1544
|
-
If they should change at some later point (e.g. partial shutdown
|
1545
|
-
of a socket with the UNIX <code class="function">shutdown()</code> function), the user
|
1546
|
-
should immediately call <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> to update
|
1547
|
-
the internal values of these flags.
|
1548
|
-
</p>
|
1549
|
-
<div class="variablelist"><table border="0">
|
1550
|
-
<col align="left" valign="top">
|
1551
|
-
<tbody>
|
1552
|
-
<tr>
|
1553
|
-
<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>
|
1555
|
-
</td>
|
1556
|
-
</tr>
|
1557
|
-
<tr>
|
1558
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1559
|
-
<td> the flags which are set on the channel
|
1560
|
-
</td>
|
1561
|
-
</tr>
|
1562
|
-
</tbody>
|
1563
|
-
</table></div>
|
1564
|
-
</div>
|
1565
|
-
<hr>
|
1566
|
-
<div class="refsect2">
|
1567
|
-
<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>,
|
1569
|
-
<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>
|
1571
|
-
<p>
|
1572
|
-
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
|
-
</p>
|
1574
|
-
<div class="variablelist"><table border="0">
|
1575
|
-
<col align="left" valign="top">
|
1576
|
-
<tbody>
|
1577
|
-
<tr>
|
1578
|
-
<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>
|
1580
|
-
</td>
|
1581
|
-
</tr>
|
1582
|
-
<tr>
|
1583
|
-
<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>
|
1586
|
-
</tr>
|
1587
|
-
<tr>
|
1588
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1589
|
-
<td>A location to return an error of type <a class="link" href="glib-IO-Channels.html#GIOChannelError" title="enum GIOChannelError"><span class="type">GIOChannelError</span></a>
|
1590
|
-
</td>
|
1591
|
-
</tr>
|
1592
|
-
<tr>
|
1593
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1594
|
-
<td> the status of the operation.
|
1595
|
-
</td>
|
1596
|
-
</tr>
|
1597
|
-
</tbody>
|
1598
|
-
</table></div>
|
1599
|
-
</div>
|
1600
|
-
<hr>
|
1601
|
-
<div class="refsect2">
|
1602
|
-
<a name="GIOFlags"></a><h3>enum GIOFlags</h3>
|
1603
|
-
<pre class="programlisting">typedef enum
|
1604
|
-
{
|
1605
|
-
G_IO_FLAG_APPEND = 1 << 0,
|
1606
|
-
G_IO_FLAG_NONBLOCK = 1 << 1,
|
1607
|
-
G_IO_FLAG_IS_READABLE = 1 << 2, /* Read only flag */
|
1608
|
-
G_IO_FLAG_IS_WRITEABLE = 1 << 3, /* Read only flag */
|
1609
|
-
G_IO_FLAG_IS_SEEKABLE = 1 << 4, /* Read only flag */
|
1610
|
-
G_IO_FLAG_MASK = (1 << 5) - 1,
|
1611
|
-
G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK,
|
1612
|
-
G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK
|
1613
|
-
} GIOFlags;
|
1614
|
-
</pre>
|
1615
|
-
<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
|
1617
|
-
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
|
-
<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
|
-
</p>
|
1620
|
-
<div class="variablelist"><table border="0">
|
1621
|
-
<col align="left" valign="top">
|
1622
|
-
<tbody>
|
1623
|
-
<tr>
|
1624
|
-
<td><p><a name="G-IO-FLAG-APPEND:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_APPEND</code></span></p></td>
|
1625
|
-
<td>turns on append mode, corresponds to <code class="literal">O_APPEND</code>
|
1626
|
-
(see the documentation of the UNIX <code class="function">open()</code>
|
1627
|
-
syscall).
|
1628
|
-
</td>
|
1629
|
-
</tr>
|
1630
|
-
<tr>
|
1631
|
-
<td><p><a name="G-IO-FLAG-NONBLOCK:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_NONBLOCK</code></span></p></td>
|
1632
|
-
<td>turns on nonblocking mode, corresponds to
|
1633
|
-
<code class="literal">O_NONBLOCK</code>/<code class="literal">O_NDELAY</code> (see the documentation of
|
1634
|
-
the UNIX <code class="function">open()</code> syscall).
|
1635
|
-
</td>
|
1636
|
-
</tr>
|
1637
|
-
<tr>
|
1638
|
-
<td><p><a name="G-IO-FLAG-IS-READABLE:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_IS_READABLE</code></span></p></td>
|
1639
|
-
<td>indicates that the io channel is readable.
|
1640
|
-
This flag can not be changed.
|
1641
|
-
</td>
|
1642
|
-
</tr>
|
1643
|
-
<tr>
|
1644
|
-
<td><p><a name="G-IO-FLAG-IS-WRITEABLE:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_IS_WRITEABLE</code></span></p></td>
|
1645
|
-
<td>indicates that the io channel is writable.
|
1646
|
-
This flag can not be changed.
|
1647
|
-
</td>
|
1648
|
-
</tr>
|
1649
|
-
<tr>
|
1650
|
-
<td><p><a name="G-IO-FLAG-IS-SEEKABLE:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_IS_SEEKABLE</code></span></p></td>
|
1651
|
-
<td>indicates that the io channel is seekable,
|
1652
|
-
i.e. that <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> can
|
1653
|
-
be used on it. This flag can not be changed.
|
1654
|
-
</td>
|
1655
|
-
</tr>
|
1656
|
-
<tr>
|
1657
|
-
<td><p><a name="G-IO-FLAG-MASK:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_MASK</code></span></p></td>
|
1658
|
-
<td>the mask that specifies all the valid flags.
|
1659
|
-
</td>
|
1660
|
-
</tr>
|
1661
|
-
<tr>
|
1662
|
-
<td><p><a name="G-IO-FLAG-GET-MASK:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_GET_MASK</code></span></p></td>
|
1663
|
-
<td>the mask of the flags that are returned from
|
1664
|
-
<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>.
|
1665
|
-
</td>
|
1666
|
-
</tr>
|
1667
|
-
<tr>
|
1668
|
-
<td><p><a name="G-IO-FLAG-SET-MASK:CAPS"></a><span class="term"><code class="literal">G_IO_FLAG_SET_MASK</code></span></p></td>
|
1669
|
-
<td>the mask of the flags that the user can modify
|
1670
|
-
with <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>.
|
1671
|
-
</td>
|
1672
|
-
</tr>
|
1673
|
-
</tbody>
|
1674
|
-
</table></div>
|
1675
|
-
</div>
|
1676
|
-
<hr>
|
1677
|
-
<div class="refsect2">
|
1678
|
-
<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> * g_io_channel_get_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>,
|
1680
|
-
<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
|
-
<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
|
1683
|
-
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
|
-
indicates autodetection.
|
1685
|
-
</p>
|
1686
|
-
<div class="variablelist"><table border="0">
|
1687
|
-
<col align="left" valign="top">
|
1688
|
-
<tbody>
|
1689
|
-
<tr>
|
1690
|
-
<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>
|
1692
|
-
</td>
|
1693
|
-
</tr>
|
1694
|
-
<tr>
|
1695
|
-
<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>
|
1698
|
-
</tr>
|
1699
|
-
<tr>
|
1700
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1701
|
-
<td> The line termination string. This value
|
1702
|
-
is owned by GLib and must not be freed.
|
1703
|
-
</td>
|
1704
|
-
</tr>
|
1705
|
-
</tbody>
|
1706
|
-
</table></div>
|
1707
|
-
</div>
|
1708
|
-
<hr>
|
1709
|
-
<div class="refsect2">
|
1710
|
-
<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>,
|
1712
|
-
<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
|
-
<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
|
-
<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
|
1716
|
-
where in the file a line break occurs.
|
1717
|
-
</p>
|
1718
|
-
<div class="variablelist"><table border="0">
|
1719
|
-
<col align="left" valign="top">
|
1720
|
-
<tbody>
|
1721
|
-
<tr>
|
1722
|
-
<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>
|
1724
|
-
</td>
|
1725
|
-
</tr>
|
1726
|
-
<tr>
|
1727
|
-
<td><p><span class="term"><em class="parameter"><code>line_term</code></em> :</span></p></td>
|
1728
|
-
<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
|
-
Autodetection breaks on "\n", "\r\n", "\r", "\0", and
|
1730
|
-
the Unicode paragraph separator. Autodetection should
|
1731
|
-
not be used for anything other than file-based channels.
|
1732
|
-
</td>
|
1733
|
-
</tr>
|
1734
|
-
<tr>
|
1735
|
-
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
1736
|
-
<td>The length of the termination string. If -1 is passed, the
|
1737
|
-
string is assumed to be nul-terminated. This option allows
|
1738
|
-
termination strings with embedded nuls.
|
1739
|
-
</td>
|
1740
|
-
</tr>
|
1741
|
-
</tbody>
|
1742
|
-
</table></div>
|
1743
|
-
</div>
|
1744
|
-
<hr>
|
1745
|
-
<div class="refsect2">
|
1746
|
-
<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>
|
1748
|
-
<p>
|
1749
|
-
Returns whether <em class="parameter"><code>channel</code></em> is buffered.
|
1750
|
-
</p>
|
1751
|
-
<div class="variablelist"><table border="0">
|
1752
|
-
<col align="left" valign="top">
|
1753
|
-
<tbody>
|
1754
|
-
<tr>
|
1755
|
-
<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>
|
1757
|
-
</td>
|
1758
|
-
</tr>
|
1759
|
-
<tr>
|
1760
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1761
|
-
<td> <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.
|
1762
|
-
</td>
|
1763
|
-
</tr>
|
1764
|
-
</tbody>
|
1765
|
-
</table></div>
|
1766
|
-
</div>
|
1767
|
-
<hr>
|
1768
|
-
<div class="refsect2">
|
1769
|
-
<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>,
|
1771
|
-
<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
|
-
<p>
|
1773
|
-
The buffering state can only be set if the channel's encoding
|
1774
|
-
is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. For any other encoding, the channel must be buffered.
|
1775
|
-
</p>
|
1776
|
-
<p>
|
1777
|
-
A buffered channel can only be set unbuffered if the channel's
|
1778
|
-
internal buffers have been flushed. Newly created channels or
|
1779
|
-
channels which have returned <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-EOF:CAPS"><code class="literal">G_IO_STATUS_EOF</code></a>
|
1780
|
-
not require such a flush. For write-only channels, a call to
|
1781
|
-
<a class="link" href="glib-IO-Channels.html#g-io-channel-flush" title="g_io_channel_flush ()"><code class="function">g_io_channel_flush()</code></a> is sufficient. For all other channels,
|
1782
|
-
the buffers may be flushed by a call to <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>.
|
1783
|
-
This includes the possibility of seeking with seek type <a class="link" href="glib-IO-Channels.html#G-SEEK-CUR:CAPS"><code class="literal">G_SEEK_CUR</code></a>
|
1784
|
-
and an offset of zero. Note that this means that socket-based
|
1785
|
-
channels cannot be set unbuffered once they have had data
|
1786
|
-
read from them.
|
1787
|
-
</p>
|
1788
|
-
<p>
|
1789
|
-
On unbuffered channels, it is safe to mix read and write
|
1790
|
-
calls from the new and old APIs, if this is necessary for
|
1791
|
-
maintaining old code.
|
1792
|
-
</p>
|
1793
|
-
<p>
|
1794
|
-
The default state of the channel is buffered.
|
1795
|
-
</p>
|
1796
|
-
<div class="variablelist"><table border="0">
|
1797
|
-
<col align="left" valign="top">
|
1798
|
-
<tbody>
|
1799
|
-
<tr>
|
1800
|
-
<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>
|
1802
|
-
</td>
|
1803
|
-
</tr>
|
1804
|
-
<tr>
|
1805
|
-
<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>
|
1808
|
-
</tr>
|
1809
|
-
</tbody>
|
1810
|
-
</table></div>
|
1811
|
-
</div>
|
1812
|
-
<hr>
|
1813
|
-
<div class="refsect2">
|
1814
|
-
<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> * g_io_channel_get_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>);</pre>
|
1816
|
-
<p>
|
1817
|
-
Gets the encoding for the input/output of the channel.
|
1818
|
-
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>
|
1819
|
-
makes the channel safe for binary data.
|
1820
|
-
</p>
|
1821
|
-
<div class="variablelist"><table border="0">
|
1822
|
-
<col align="left" valign="top">
|
1823
|
-
<tbody>
|
1824
|
-
<tr>
|
1825
|
-
<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>
|
1827
|
-
</td>
|
1828
|
-
</tr>
|
1829
|
-
<tr>
|
1830
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1831
|
-
<td> A string containing the encoding, this string is
|
1832
|
-
owned by GLib and must not be freed.
|
1833
|
-
</td>
|
1834
|
-
</tr>
|
1835
|
-
</tbody>
|
1836
|
-
</table></div>
|
1837
|
-
</div>
|
1838
|
-
<hr>
|
1839
|
-
<div class="refsect2">
|
1840
|
-
<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>,
|
1842
|
-
<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>
|
1844
|
-
<p>
|
1845
|
-
Sets the encoding for the input/output of the channel.
|
1846
|
-
The internal encoding is always UTF-8. The default encoding
|
1847
|
-
for the external file is UTF-8.
|
1848
|
-
</p>
|
1849
|
-
<p>
|
1850
|
-
The encoding <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is safe to use with binary data.
|
1851
|
-
</p>
|
1852
|
-
<p>
|
1853
|
-
The encoding can only be set if one of the following conditions
|
1854
|
-
is true:
|
1855
|
-
</p>
|
1856
|
-
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
1857
|
-
<li class="listitem"><p>
|
1858
|
-
The channel was just created, and has not been written to or read
|
1859
|
-
from yet.
|
1860
|
-
</p></li>
|
1861
|
-
<li class="listitem"><p>
|
1862
|
-
The channel is write-only.
|
1863
|
-
</p></li>
|
1864
|
-
<li class="listitem"><p>
|
1865
|
-
The channel is a file, and the file pointer was just
|
1866
|
-
repositioned by a call to <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>.
|
1867
|
-
(This flushes all the internal buffers.)
|
1868
|
-
</p></li>
|
1869
|
-
<li class="listitem"><p>
|
1870
|
-
The current encoding is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> or UTF-8.
|
1871
|
-
</p></li>
|
1872
|
-
<li class="listitem"><p>
|
1873
|
-
One of the (new API) read functions has just returned <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-EOF:CAPS"><code class="literal">G_IO_STATUS_EOF</code></a>
|
1874
|
-
(or, in the case of <a class="link" href="glib-IO-Channels.html#g-io-channel-read-to-end" title="g_io_channel_read_to_end ()"><code class="function">g_io_channel_read_to_end()</code></a>, <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-NORMAL:CAPS"><code class="literal">G_IO_STATUS_NORMAL</code></a>).
|
1875
|
-
</p></li>
|
1876
|
-
<li class="listitem"><p>
|
1877
|
-
One of 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> or
|
1878
|
-
<a class="link" href="glib-IO-Channels.html#g-io-channel-read-unichar" title="g_io_channel_read_unichar ()"><code class="function">g_io_channel_read_unichar()</code></a> has returned <a class="link" href="glib-IO-Channels.html#G-IO-STATUS-AGAIN:CAPS"><code class="literal">G_IO_STATUS_AGAIN</code></a> or
|
1879
|
-
<a class="link" href="glib-IO-Channels.html#G-IO-STATUS-ERROR:CAPS"><code class="literal">G_IO_STATUS_ERROR</code></a>. This may be useful in the case of
|
1880
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><code class="literal">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</code></a>.
|
1881
|
-
Returning one of these statuses from <a class="link" href="glib-IO-Channels.html#g-io-channel-read-line" title="g_io_channel_read_line ()"><code class="function">g_io_channel_read_line()</code></a>,
|
1882
|
-
<a class="link" href="glib-IO-Channels.html#g-io-channel-read-line-string" title="g_io_channel_read_line_string ()"><code class="function">g_io_channel_read_line_string()</code></a>, or <a class="link" href="glib-IO-Channels.html#g-io-channel-read-to-end" title="g_io_channel_read_to_end ()"><code class="function">g_io_channel_read_to_end()</code></a>
|
1883
|
-
does <span class="emphasis"><em>not</em></span> guarantee that the encoding can
|
1884
|
-
be changed.
|
1885
|
-
</p></li>
|
1886
|
-
</ul></div>
|
1887
|
-
<p>
|
1888
|
-
Channels which do not meet one of the above conditions cannot call
|
1889
|
-
<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> with an offset of <a class="link" href="glib-IO-Channels.html#G-SEEK-CUR:CAPS"><code class="literal">G_SEEK_CUR</code></a>, and, if
|
1890
|
-
they are "seekable", cannot call <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> after
|
1891
|
-
calling one of the API "read" functions.
|
1892
|
-
</p>
|
1893
|
-
<div class="variablelist"><table border="0">
|
1894
|
-
<col align="left" valign="top">
|
1895
|
-
<tbody>
|
1896
|
-
<tr>
|
1897
|
-
<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>
|
1899
|
-
</td>
|
1900
|
-
</tr>
|
1901
|
-
<tr>
|
1902
|
-
<td><p><span class="term"><em class="parameter"><code>encoding</code></em> :</span></p></td>
|
1903
|
-
<td>the encoding type
|
1904
|
-
</td>
|
1905
|
-
</tr>
|
1906
|
-
<tr>
|
1907
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1908
|
-
<td>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>
|
1909
|
-
</td>
|
1910
|
-
</tr>
|
1911
|
-
<tr>
|
1912
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1913
|
-
<td> <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.
|
1914
|
-
</td>
|
1915
|
-
</tr>
|
1916
|
-
</tbody>
|
1917
|
-
</table></div>
|
1918
|
-
</div>
|
1919
|
-
<hr>
|
1920
|
-
<div class="refsect2">
|
1921
|
-
<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>
|
1923
|
-
<p>
|
1924
|
-
Returns whether the file/socket/whatever associated with <em class="parameter"><code>channel</code></em>
|
1925
|
-
will be closed when <em class="parameter"><code>channel</code></em> receives its final unref and is
|
1926
|
-
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 ()"><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
|
-
</p>
|
1929
|
-
<div class="variablelist"><table border="0">
|
1930
|
-
<col align="left" valign="top">
|
1931
|
-
<tbody>
|
1932
|
-
<tr>
|
1933
|
-
<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>
|
1936
|
-
</tr>
|
1937
|
-
<tr>
|
1938
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1939
|
-
<td> Whether the channel will be closed on the final unref of
|
1940
|
-
the GIOChannel data structure.
|
1941
|
-
</td>
|
1942
|
-
</tr>
|
1943
|
-
</tbody>
|
1944
|
-
</table></div>
|
1945
|
-
</div>
|
1946
|
-
<hr>
|
1947
|
-
<div class="refsect2">
|
1948
|
-
<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>,
|
1950
|
-
<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
|
-
<p>
|
1952
|
-
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
|
1953
|
-
can cause problems.
|
1954
|
-
</p>
|
1955
|
-
<div class="variablelist"><table border="0">
|
1956
|
-
<col align="left" valign="top">
|
1957
|
-
<tbody>
|
1958
|
-
<tr>
|
1959
|
-
<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>
|
1961
|
-
</td>
|
1962
|
-
</tr>
|
1963
|
-
<tr>
|
1964
|
-
<td><p><span class="term"><em class="parameter"><code>do_close</code></em> :</span></p></td>
|
1965
|
-
<td>Whether to close the channel on the final unref of
|
1966
|
-
the GIOChannel data structure. The default value of
|
1967
|
-
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>,
|
1968
|
-
and <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> for all other channels.
|
1969
|
-
</td>
|
1970
|
-
</tr>
|
1971
|
-
</tbody>
|
1972
|
-
</table></div>
|
1973
|
-
</div>
|
1974
|
-
<hr>
|
1975
|
-
<div class="refsect2">
|
1976
|
-
<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>,
|
1978
|
-
<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
|
-
<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
|
-
<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" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1982
|
-
<h3 class="title">Warning</h3>
|
1983
|
-
<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
|
-
</div>
|
1985
|
-
<p>
|
1986
|
-
Reads data from a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
1987
|
-
</p>
|
1988
|
-
<div class="variablelist"><table border="0">
|
1989
|
-
<col align="left" valign="top">
|
1990
|
-
<tbody>
|
1991
|
-
<tr>
|
1992
|
-
<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>
|
1994
|
-
</td>
|
1995
|
-
</tr>
|
1996
|
-
<tr>
|
1997
|
-
<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
|
-
count bytes long)
|
2000
|
-
</td>
|
2001
|
-
</tr>
|
2002
|
-
<tr>
|
2003
|
-
<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>
|
2005
|
-
</td>
|
2006
|
-
</tr>
|
2007
|
-
<tr>
|
2008
|
-
<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>
|
2011
|
-
</tr>
|
2012
|
-
<tr>
|
2013
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2014
|
-
<td> <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.
|
2015
|
-
|
2016
|
-
</td>
|
2017
|
-
</tr>
|
2018
|
-
</tbody>
|
2019
|
-
</table></div>
|
2020
|
-
</div>
|
2021
|
-
<hr>
|
2022
|
-
<div class="refsect2">
|
2023
|
-
<a name="GIOError"></a><h3>enum GIOError</h3>
|
2024
|
-
<pre class="programlisting">typedef enum
|
2025
|
-
{
|
2026
|
-
G_IO_ERROR_NONE,
|
2027
|
-
G_IO_ERROR_AGAIN,
|
2028
|
-
G_IO_ERROR_INVAL,
|
2029
|
-
G_IO_ERROR_UNKNOWN
|
2030
|
-
} GIOError;
|
2031
|
-
</pre>
|
2032
|
-
<p>
|
2033
|
-
<a class="link" href="glib-IO-Channels.html#GIOError" title="enum GIOError"><span class="type">GIOError</span></a> is only used by the deprecated functions
|
2034
|
-
<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>, <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>.
|
2035
|
-
</p>
|
2036
|
-
<div class="variablelist"><table border="0">
|
2037
|
-
<col align="left" valign="top">
|
2038
|
-
<tbody>
|
2039
|
-
<tr>
|
2040
|
-
<td><p><a name="G-IO-ERROR-NONE:CAPS"></a><span class="term"><code class="literal">G_IO_ERROR_NONE</code></span></p></td>
|
2041
|
-
<td>no error
|
2042
|
-
</td>
|
2043
|
-
</tr>
|
2044
|
-
<tr>
|
2045
|
-
<td><p><a name="G-IO-ERROR-AGAIN:CAPS"></a><span class="term"><code class="literal">G_IO_ERROR_AGAIN</code></span></p></td>
|
2046
|
-
<td>an EAGAIN error occurred
|
2047
|
-
</td>
|
2048
|
-
</tr>
|
2049
|
-
<tr>
|
2050
|
-
<td><p><a name="G-IO-ERROR-INVAL:CAPS"></a><span class="term"><code class="literal">G_IO_ERROR_INVAL</code></span></p></td>
|
2051
|
-
<td>an EINVAL error occurred
|
2052
|
-
</td>
|
2053
|
-
</tr>
|
2054
|
-
<tr>
|
2055
|
-
<td><p><a name="G-IO-ERROR-UNKNOWN:CAPS"></a><span class="term"><code class="literal">G_IO_ERROR_UNKNOWN</code></span></p></td>
|
2056
|
-
<td>another error occurred
|
2057
|
-
</td>
|
2058
|
-
</tr>
|
2059
|
-
</tbody>
|
2060
|
-
</table></div>
|
2061
|
-
</div>
|
2062
|
-
<hr>
|
2063
|
-
<div class="refsect2">
|
2064
|
-
<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>,
|
2066
|
-
<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
|
-
<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
|
-
<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" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2070
|
-
<h3 class="title">Warning</h3>
|
2071
|
-
<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
|
-
</div>
|
2073
|
-
<p>
|
2074
|
-
Writes data to a <a class="link" href="glib-IO-Channels.html#GIOChannel" title="GIOChannel"><span class="type">GIOChannel</span></a>.
|
2075
|
-
</p>
|
2076
|
-
<div class="variablelist"><table border="0">
|
2077
|
-
<col align="left" valign="top">
|
2078
|
-
<tbody>
|
2079
|
-
<tr>
|
2080
|
-
<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>
|
2082
|
-
</td>
|
2083
|
-
</tr>
|
2084
|
-
<tr>
|
2085
|
-
<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>
|
2088
|
-
</tr>
|
2089
|
-
<tr>
|
2090
|
-
<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>
|
2093
|
-
</tr>
|
2094
|
-
<tr>
|
2095
|
-
<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>
|
2098
|
-
</tr>
|
2099
|
-
<tr>
|
2100
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2101
|
-
<td> <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.
|
2102
|
-
|
2103
|
-
</td>
|
2104
|
-
</tr>
|
2105
|
-
</tbody>
|
2106
|
-
</table></div>
|
2107
|
-
</div>
|
2108
|
-
<hr>
|
2109
|
-
<div class="refsect2">
|
2110
|
-
<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>,
|
2112
|
-
<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
|
-
<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" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2115
|
-
<h3 class="title">Warning</h3>
|
2116
|
-
<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
|
-
</div>
|
2118
|
-
<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
|
2120
|
-
library function <code class="function">fseek()</code>.
|
2121
|
-
</p>
|
2122
|
-
<div class="variablelist"><table border="0">
|
2123
|
-
<col align="left" valign="top">
|
2124
|
-
<tbody>
|
2125
|
-
<tr>
|
2126
|
-
<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>
|
2128
|
-
</td>
|
2129
|
-
</tr>
|
2130
|
-
<tr>
|
2131
|
-
<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
|
-
by <em class="parameter"><code>type</code></em>
|
2134
|
-
</td>
|
2135
|
-
</tr>
|
2136
|
-
<tr>
|
2137
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
2138
|
-
<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
|
-
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>
|
2140
|
-
(the end of the file)
|
2141
|
-
</td>
|
2142
|
-
</tr>
|
2143
|
-
<tr>
|
2144
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2145
|
-
<td> <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.
|
2146
|
-
|
2147
|
-
</td>
|
2148
|
-
</tr>
|
2149
|
-
</tbody>
|
2150
|
-
</table></div>
|
2151
|
-
</div>
|
2152
|
-
<hr>
|
2153
|
-
<div class="refsect2">
|
2154
|
-
<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" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2157
|
-
<h3 class="title">Warning</h3>
|
2158
|
-
<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
|
-
</div>
|
2160
|
-
<p>
|
2161
|
-
Close an IO channel. Any pending data to be written will be
|
2162
|
-
flushed, ignoring errors. The channel will not be freed until the
|
2163
|
-
last reference is dropped using <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>.
|
2164
|
-
</p>
|
2165
|
-
<div class="variablelist"><table border="0">
|
2166
|
-
<col align="left" valign="top">
|
2167
|
-
<tbody><tr>
|
2168
|
-
<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>
|
2170
|
-
</td>
|
2171
|
-
</tr></tbody>
|
2172
|
-
</table></div>
|
2173
|
-
</div>
|
2174
|
-
</div>
|
2175
|
-
<div class="refsect1">
|
2176
|
-
<a name="glib-IO-Channels.see-also"></a><h2>See Also</h2>
|
2177
|
-
<p> </p>
|
2178
|
-
<div class="variablelist"><table border="0">
|
2179
|
-
<col align="left" valign="top">
|
2180
|
-
<tbody><tr>
|
2181
|
-
<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
|
-
<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
|
-
<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
|
2185
|
-
them to the <a class="link" href="glib-The-Main-Event-Loop.html" title="The Main Event Loop">main
|
2186
|
-
event loop</a>. </p></td>
|
2187
|
-
</tr></tbody>
|
2188
|
-
</table></div>
|
2189
|
-
<p> </p>
|
2190
|
-
</div>
|
2191
|
-
</div>
|
2192
|
-
<div class="footer">
|
2193
|
-
<hr>
|
2194
|
-
Generated by GTK-Doc V1.15.1</div>
|
2195
|
-
</body>
|
2196
|
-
</html>
|