gio2 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 +41 -0
- data/Rakefile +9 -70
- data/ext/gio2/extconf.rb +9 -9
- data/ext/gio2/gasyncinitable.c +0 -1
- data/ext/gio2/gbufferedinputstream.c +0 -19
- data/ext/gio2/gbufferedoutputstream.c +0 -34
- data/ext/gio2/gcharsetconverter.c +0 -17
- data/ext/gio2/gcontenttype.c +1 -8
- data/ext/gio2/gconverterinputstream.c +0 -7
- data/ext/gio2/gconverteroutputstream.c +0 -7
- data/ext/gio2/gdatainputstream.c +34 -57
- data/ext/gio2/gdataoutputstream.c +0 -18
- data/ext/gio2/gdesktopappinfo.c +0 -2
- data/ext/gio2/gemblem.c +0 -19
- data/ext/gio2/gfile.c +4 -6
- data/ext/gio2/gfileattribute.c +3 -155
- data/ext/gio2/gfileattributeinfo.c +89 -0
- data/ext/gio2/gfileattributeinfolist.c +109 -0
- data/ext/gio2/gfileenumerator.c +0 -2
- data/ext/gio2/gfileicon.c +0 -7
- data/ext/gio2/gfileinfo.c +4 -11
- data/ext/gio2/gfileinputstream.c +0 -2
- data/ext/gio2/gfileiostream.c +0 -2
- data/ext/gio2/gfilemonitor.c +0 -19
- data/ext/gio2/gfileoutputstream.c +1 -5
- data/ext/gio2/gfilterinputstream.c +1 -30
- data/ext/gio2/gfilteroutputstream.c +1 -30
- data/ext/gio2/gicon.c +0 -2
- data/ext/gio2/ginetaddress.c +0 -72
- data/ext/gio2/ginetsocketaddress.c +0 -16
- data/ext/gio2/ginputstream.c +0 -2
- data/ext/gio2/gio2.c +11 -1
- data/ext/gio2/gio2.h +9 -1
- data/ext/gio2/gioerror.c +4 -1
- data/ext/gio2/giomodule.c +2 -2
- data/ext/gio2/gioscheduler.c +4 -6
- data/ext/gio2/giostream.c +0 -23
- data/ext/gio2/gloadableicon.c +0 -1
- data/ext/gio2/gmemoryoutputstream.c +0 -24
- data/ext/gio2/gmount.c +1 -0
- data/ext/gio2/gmountoperation.c +1 -103
- data/ext/gio2/gnetworkaddress.c +0 -14
- data/ext/gio2/gnetworkservice.c +0 -21
- data/ext/gio2/goutputstream.c +8 -18
- data/ext/gio2/gresolver.c +0 -2
- data/ext/gio2/gsocket.c +2 -80
- data/ext/gio2/gsocketaddress.c +1 -13
- data/ext/gio2/gsocketclient.c +0 -68
- data/ext/gio2/gsocketconnection.c +1 -8
- data/ext/gio2/gsocketcontrolmessage.c +0 -2
- data/ext/gio2/gsocketlistener.c +27 -21
- data/ext/gio2/gtcpconnection.c +1 -22
- data/ext/gio2/gthreadedsocketservice.c +6 -5
- data/ext/gio2/gunixfdlist.c +1 -1
- data/ext/gio2/gunixfdmessage.c +0 -9
- data/ext/gio2/gunixinputstream.c +0 -24
- data/ext/gio2/gunixmounts.c +1 -4
- data/ext/gio2/gunixoutputstream.c +0 -24
- data/ext/gio2/gunixsocketaddress.c +5 -17
- data/ext/gio2/gvfs.c +0 -2
- data/ext/gio2/gvolumemonitor.c +0 -2
- data/ext/gio2/gzlibcompressor.c +3 -0
- data/ext/gio2/util.c +3 -0
- data/lib/1.8/gio2.so +0 -0
- data/lib/1.9/gio2.so +0 -0
- data/lib/gio2.rb +19 -1
- data/test/load-test.rb +14 -0
- data/test/test_bufferedinputstream.rb +2 -0
- data/test/test_charsetconverter.rb +2 -0
- data/test/test_datainputstream.rb +7 -0
- data/test/test_fileenumerator.rb +8 -0
- data/test/test_filemonitor.rb +2 -0
- data/test/test_inetaddress.rb +8 -0
- metadata +90 -835
- 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,1552 +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>Miscellaneous Utility Functions</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-utilities.html" title="GLib Utilities">
|
9
|
-
<link rel="prev" href="glib-Hook-Functions.html" title="Hook Functions">
|
10
|
-
<link rel="next" href="glib-Lexical-Scanner.html" title="Lexical Scanner">
|
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-Hook-Functions.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-utilities.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-Lexical-Scanner.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-Miscellaneous-Utility-Functions.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-Miscellaneous-Utility-Functions.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-Miscellaneous-Utility-Functions"></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-Miscellaneous-Utility-Functions.top_of_page"></a>Miscellaneous Utility Functions</span></h2>
|
34
|
-
<p>Miscellaneous Utility Functions — a selection of portable utility functions</p>
|
35
|
-
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
37
|
-
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv">
|
39
|
-
<a name="glib-Miscellaneous-Utility-Functions.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">
|
41
|
-
#include <glib.h>
|
42
|
-
|
43
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-application-name" title="g_get_application_name ()">g_get_application_name</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
44
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-application-name" title="g_set_application_name ()">g_set_application_name</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *application_name</code></em>);
|
45
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-prgname" title="g_get_prgname ()">g_get_prgname</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
46
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-prgname" title="g_set_prgname ()">g_set_prgname</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *prgname</code></em>);
|
47
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-getenv" title="g_getenv ()">g_getenv</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *variable</code></em>);
|
48
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-setenv" title="g_setenv ()">g_setenv</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *variable</code></em>,
|
49
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *value</code></em>,
|
50
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);
|
51
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-unsetenv" title="g_unsetenv ()">g_unsetenv</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *variable</code></em>);
|
52
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> ** <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-listenv" title="g_listenv ()">g_listenv</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
53
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-name" title="g_get_user_name ()">g_get_user_name</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
54
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-real-name" title="g_get_real_name ()">g_get_real_name</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
55
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-cache-dir" title="g_get_user_cache_dir ()">g_get_user_cache_dir</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
56
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-data-dir" title="g_get_user_data_dir ()">g_get_user_data_dir</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
57
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-config-dir" title="g_get_user_config_dir ()">g_get_user_config_dir</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
58
|
-
enum <a class="link" href="glib-Miscellaneous-Utility-Functions.html#GUserDirectory" title="enum GUserDirectory">GUserDirectory</a>;
|
59
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-special-dir" title="g_get_user_special_dir ()">g_get_user_special_dir</a> (<em class="parameter"><code><a class="link" href="glib-Miscellaneous-Utility-Functions.html#GUserDirectory" title="enum GUserDirectory"><span class="type">GUserDirectory</span></a> directory</code></em>);
|
60
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * const * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-system-data-dirs" title="g_get_system_data_dirs ()">g_get_system_data_dirs</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
61
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * const * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-system-config-dirs" title="g_get_system_config_dirs ()">g_get_system_config_dirs</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
62
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-reload-user-special-dirs-cache" title="g_reload_user_special_dirs_cache ()">g_reload_user_special_dirs_cache</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
63
|
-
|
64
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-host-name" title="g_get_host_name ()">g_get_host_name</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
65
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-home-dir" title="g_get_home_dir ()">g_get_home_dir</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
66
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-tmp-dir" title="g_get_tmp_dir ()">g_get_tmp_dir</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
67
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-current-dir" title="g_get_current_dir ()">g_get_current_dir</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
68
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-basename" title="g_basename ()">g_basename</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);
|
69
|
-
#define <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-dirname" title="g_dirname">g_dirname</a>
|
70
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-is-absolute" title="g_path_is_absolute ()">g_path_is_absolute</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);
|
71
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-skip-root" title="g_path_skip_root ()">g_path_skip_root</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);
|
72
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-get-basename" title="g_path_get_basename ()">g_path_get_basename</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);
|
73
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-get-dirname" title="g_path_get_dirname ()">g_path_get_dirname</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);
|
74
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-build-filename" title="g_build_filename ()">g_build_filename</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *first_element</code></em>,
|
75
|
-
<em class="parameter"><code>...</code></em>);
|
76
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-build-filenamev" title="g_build_filenamev ()">g_build_filenamev</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **args</code></em>);
|
77
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-build-path" title="g_build_path ()">g_build_path</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *separator</code></em>,
|
78
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *first_element</code></em>,
|
79
|
-
<em class="parameter"><code>...</code></em>);
|
80
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-build-pathv" title="g_build_pathv ()">g_build_pathv</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *separator</code></em>,
|
81
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **args</code></em>);
|
82
|
-
<span class="returnvalue">char</span> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-format-size-for-display" title="g_format_size_for_display ()">g_format_size_for_display</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#goffset" title="goffset"><span class="type">goffset</span></a> size</code></em>);
|
83
|
-
|
84
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-find-program-in-path" title="g_find_program_in_path ()">g_find_program_in_path</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *program</code></em>);
|
85
|
-
|
86
|
-
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-bit-nth-lsf" title="g_bit_nth_lsf ()">g_bit_nth_lsf</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> mask</code></em>,
|
87
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> nth_bit</code></em>);
|
88
|
-
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-bit-nth-msf" title="g_bit_nth_msf ()">g_bit_nth_msf</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> mask</code></em>,
|
89
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> nth_bit</code></em>);
|
90
|
-
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-bit-storage" title="g_bit_storage ()">g_bit_storage</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> number</code></em>);
|
91
|
-
|
92
|
-
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-spaced-primes-closest" title="g_spaced_primes_closest ()">g_spaced_primes_closest</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> num</code></em>);
|
93
|
-
|
94
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()">g_atexit</a> (<em class="parameter"><code><a class="link" href="glib-Miscellaneous-Utility-Functions.html#GVoidFunc" title="GVoidFunc ()"><span class="type">GVoidFunc</span></a> func</code></em>);
|
95
|
-
|
96
|
-
<a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-parse-debug-string" title="g_parse_debug_string ()">g_parse_debug_string</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *string</code></em>,
|
97
|
-
<em class="parameter"><code>const <a class="link" href="glib-Miscellaneous-Utility-Functions.html#GDebugKey" title="GDebugKey"><span class="type">GDebugKey</span></a> *keys</code></em>,
|
98
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> nkeys</code></em>);
|
99
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#GDebugKey" title="GDebugKey">GDebugKey</a>;
|
100
|
-
|
101
|
-
<span class="returnvalue">void</span> (<a class="link" href="glib-Miscellaneous-Utility-Functions.html#GVoidFunc" title="GVoidFunc ()">*GVoidFunc</a>) (<em class="parameter"><code><span class="type">void</span></code></em>);
|
102
|
-
<span class="returnvalue">void</span> (<a class="link" href="glib-Miscellaneous-Utility-Functions.html#GFreeFunc" title="GFreeFunc ()">*GFreeFunc</a>) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> data</code></em>);
|
103
|
-
|
104
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-qsort-with-data" title="g_qsort_with_data ()">g_qsort_with_data</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> pbase</code></em>,
|
105
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> total_elems</code></em>,
|
106
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> size</code></em>,
|
107
|
-
<em class="parameter"><code><a class="link" href="glib-Doubly-Linked-Lists.html#GCompareDataFunc" title="GCompareDataFunc ()"><span class="type">GCompareDataFunc</span></a> compare_func</code></em>,
|
108
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
|
109
|
-
|
110
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-nullify-pointer" title="g_nullify_pointer ()">g_nullify_pointer</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> *nullify_location</code></em>);
|
111
|
-
</pre>
|
112
|
-
</div>
|
113
|
-
<div class="refsect1">
|
114
|
-
<a name="glib-Miscellaneous-Utility-Functions.description"></a><h2>Description</h2>
|
115
|
-
<p>
|
116
|
-
These are portable utility functions.
|
117
|
-
</p>
|
118
|
-
</div>
|
119
|
-
<div class="refsect1">
|
120
|
-
<a name="glib-Miscellaneous-Utility-Functions.details"></a><h2>Details</h2>
|
121
|
-
<div class="refsect2">
|
122
|
-
<a name="g-get-application-name"></a><h3>g_get_application_name ()</h3>
|
123
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_application_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
124
|
-
<p>
|
125
|
-
Gets a human-readable name for the application, as set by
|
126
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-application-name" title="g_set_application_name ()"><code class="function">g_set_application_name()</code></a>. This name should be localized if
|
127
|
-
possible, and is intended for display to the user. Contrast with
|
128
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-prgname" title="g_get_prgname ()"><code class="function">g_get_prgname()</code></a>, which gets a non-localized name. If
|
129
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-application-name" title="g_set_application_name ()"><code class="function">g_set_application_name()</code></a> has not been called, returns the result of
|
130
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-prgname" title="g_get_prgname ()"><code class="function">g_get_prgname()</code></a> (which may be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-prgname" title="g_set_prgname ()"><code class="function">g_set_prgname()</code></a> has also not
|
131
|
-
been called).
|
132
|
-
</p>
|
133
|
-
<div class="variablelist"><table border="0">
|
134
|
-
<col align="left" valign="top">
|
135
|
-
<tbody><tr>
|
136
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
137
|
-
<td> human-readable application name. may return <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
138
|
-
|
139
|
-
</td>
|
140
|
-
</tr></tbody>
|
141
|
-
</table></div>
|
142
|
-
<p class="since">Since 2.2</p>
|
143
|
-
</div>
|
144
|
-
<hr>
|
145
|
-
<div class="refsect2">
|
146
|
-
<a name="g-set-application-name"></a><h3>g_set_application_name ()</h3>
|
147
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_set_application_name (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *application_name</code></em>);</pre>
|
148
|
-
<p>
|
149
|
-
Sets a human-readable name for the application. This name should be
|
150
|
-
localized if possible, and is intended for display to the user.
|
151
|
-
Contrast with <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-prgname" title="g_set_prgname ()"><code class="function">g_set_prgname()</code></a>, which sets a non-localized name.
|
152
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-prgname" title="g_set_prgname ()"><code class="function">g_set_prgname()</code></a> will be called automatically by <a href="http://library.gnome.org/devel/gtk/unstable/gtk3-General.html#gtk-init"><code class="function">gtk_init()</code></a>,
|
153
|
-
but <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-application-name" title="g_set_application_name ()"><code class="function">g_set_application_name()</code></a> will not.
|
154
|
-
</p>
|
155
|
-
<p>
|
156
|
-
Note that for thread safety reasons, this function can only
|
157
|
-
be called once.
|
158
|
-
</p>
|
159
|
-
<p>
|
160
|
-
The application name will be used in contexts such as error messages,
|
161
|
-
or when displaying an application's name in the task list.
|
162
|
-
</p>
|
163
|
-
<div class="variablelist"><table border="0">
|
164
|
-
<col align="left" valign="top">
|
165
|
-
<tbody><tr>
|
166
|
-
<td><p><span class="term"><em class="parameter"><code>application_name</code></em> :</span></p></td>
|
167
|
-
<td>localized name of the application
|
168
|
-
</td>
|
169
|
-
</tr></tbody>
|
170
|
-
</table></div>
|
171
|
-
<p class="since">Since 2.2</p>
|
172
|
-
</div>
|
173
|
-
<hr>
|
174
|
-
<div class="refsect2">
|
175
|
-
<a name="g-get-prgname"></a><h3>g_get_prgname ()</h3>
|
176
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_prgname (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
177
|
-
<p>
|
178
|
-
Gets the name of the program. This name should <span class="emphasis"><em>not</em></span>
|
179
|
-
be localized, contrast with <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-application-name" title="g_get_application_name ()"><code class="function">g_get_application_name()</code></a>.
|
180
|
-
(If you are using GDK or GTK+ the program name is set in <a href="http://library.gnome.org/devel/gdk/unstable/gdk3-General.html#gdk-init"><code class="function">gdk_init()</code></a>,
|
181
|
-
which is called by <a href="http://library.gnome.org/devel/gtk/unstable/gtk3-General.html#gtk-init"><code class="function">gtk_init()</code></a>. The program name is found by taking
|
182
|
-
the last component of <code class="literal">argv[0]</code>.)
|
183
|
-
</p>
|
184
|
-
<div class="variablelist"><table border="0">
|
185
|
-
<col align="left" valign="top">
|
186
|
-
<tbody><tr>
|
187
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
188
|
-
<td> the name of the program. The returned string belongs
|
189
|
-
to GLib and must not be modified or freed.
|
190
|
-
</td>
|
191
|
-
</tr></tbody>
|
192
|
-
</table></div>
|
193
|
-
</div>
|
194
|
-
<hr>
|
195
|
-
<div class="refsect2">
|
196
|
-
<a name="g-set-prgname"></a><h3>g_set_prgname ()</h3>
|
197
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_set_prgname (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *prgname</code></em>);</pre>
|
198
|
-
<p>
|
199
|
-
Sets the name of the program. This name should <span class="emphasis"><em>not</em></span>
|
200
|
-
be localized, contrast with <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-set-application-name" title="g_set_application_name ()"><code class="function">g_set_application_name()</code></a>. Note that for
|
201
|
-
thread-safety reasons this function can only be called once.
|
202
|
-
</p>
|
203
|
-
<div class="variablelist"><table border="0">
|
204
|
-
<col align="left" valign="top">
|
205
|
-
<tbody><tr>
|
206
|
-
<td><p><span class="term"><em class="parameter"><code>prgname</code></em> :</span></p></td>
|
207
|
-
<td>the name of the program.
|
208
|
-
</td>
|
209
|
-
</tr></tbody>
|
210
|
-
</table></div>
|
211
|
-
</div>
|
212
|
-
<hr>
|
213
|
-
<div class="refsect2">
|
214
|
-
<a name="g-getenv"></a><h3>g_getenv ()</h3>
|
215
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_getenv (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *variable</code></em>);</pre>
|
216
|
-
<p>
|
217
|
-
Returns the value of an environment variable. The name and value
|
218
|
-
are in the GLib file name encoding. On UNIX, this means the actual
|
219
|
-
bytes which might or might not be in some consistent character set
|
220
|
-
and encoding. On Windows, it is in UTF-8. On Windows, in case the
|
221
|
-
environment variable's value contains references to other
|
222
|
-
environment variables, they are expanded.
|
223
|
-
</p>
|
224
|
-
<div class="variablelist"><table border="0">
|
225
|
-
<col align="left" valign="top">
|
226
|
-
<tbody>
|
227
|
-
<tr>
|
228
|
-
<td><p><span class="term"><em class="parameter"><code>variable</code></em> :</span></p></td>
|
229
|
-
<td>the environment variable to get, in the GLib file name encoding.
|
230
|
-
</td>
|
231
|
-
</tr>
|
232
|
-
<tr>
|
233
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
234
|
-
<td> the value of the environment variable, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if
|
235
|
-
the environment variable is not found. The returned string may be
|
236
|
-
overwritten by the next call to <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-getenv" title="g_getenv ()"><code class="function">g_getenv()</code></a>, <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-setenv" title="g_setenv ()"><code class="function">g_setenv()</code></a> or
|
237
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-unsetenv" title="g_unsetenv ()"><code class="function">g_unsetenv()</code></a>.
|
238
|
-
</td>
|
239
|
-
</tr>
|
240
|
-
</tbody>
|
241
|
-
</table></div>
|
242
|
-
</div>
|
243
|
-
<hr>
|
244
|
-
<div class="refsect2">
|
245
|
-
<a name="g-setenv"></a><h3>g_setenv ()</h3>
|
246
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_setenv (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *variable</code></em>,
|
247
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *value</code></em>,
|
248
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);</pre>
|
249
|
-
<p>
|
250
|
-
Sets an environment variable. Both the variable's name and value
|
251
|
-
should be in the GLib file name encoding. On UNIX, this means that
|
252
|
-
they can be any sequence of bytes. On Windows, they should be in
|
253
|
-
UTF-8.
|
254
|
-
</p>
|
255
|
-
<p>
|
256
|
-
Note that on some systems, when variables are overwritten, the memory
|
257
|
-
used for the previous variables and its value isn't reclaimed.
|
258
|
-
</p>
|
259
|
-
<div class="variablelist"><table border="0">
|
260
|
-
<col align="left" valign="top">
|
261
|
-
<tbody>
|
262
|
-
<tr>
|
263
|
-
<td><p><span class="term"><em class="parameter"><code>variable</code></em> :</span></p></td>
|
264
|
-
<td>the environment variable to set, must not contain '='.
|
265
|
-
</td>
|
266
|
-
</tr>
|
267
|
-
<tr>
|
268
|
-
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
269
|
-
<td>the value for to set the variable to.
|
270
|
-
</td>
|
271
|
-
</tr>
|
272
|
-
<tr>
|
273
|
-
<td><p><span class="term"><em class="parameter"><code>overwrite</code></em> :</span></p></td>
|
274
|
-
<td>whether to change the variable if it already exists.
|
275
|
-
</td>
|
276
|
-
</tr>
|
277
|
-
<tr>
|
278
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
279
|
-
<td> <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if the environment variable couldn't be set.
|
280
|
-
|
281
|
-
</td>
|
282
|
-
</tr>
|
283
|
-
</tbody>
|
284
|
-
</table></div>
|
285
|
-
<p class="since">Since 2.4</p>
|
286
|
-
</div>
|
287
|
-
<hr>
|
288
|
-
<div class="refsect2">
|
289
|
-
<a name="g-unsetenv"></a><h3>g_unsetenv ()</h3>
|
290
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_unsetenv (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *variable</code></em>);</pre>
|
291
|
-
<p>
|
292
|
-
Removes an environment variable from the environment.
|
293
|
-
</p>
|
294
|
-
<p>
|
295
|
-
Note that on some systems, when variables are overwritten, the memory
|
296
|
-
used for the previous variables and its value isn't reclaimed.
|
297
|
-
Furthermore, this function can't be guaranteed to operate in a
|
298
|
-
threadsafe way.
|
299
|
-
</p>
|
300
|
-
<div class="variablelist"><table border="0">
|
301
|
-
<col align="left" valign="top">
|
302
|
-
<tbody><tr>
|
303
|
-
<td><p><span class="term"><em class="parameter"><code>variable</code></em> :</span></p></td>
|
304
|
-
<td>the environment variable to remove, must not contain '='.
|
305
|
-
</td>
|
306
|
-
</tr></tbody>
|
307
|
-
</table></div>
|
308
|
-
<p class="since">Since 2.4</p>
|
309
|
-
</div>
|
310
|
-
<hr>
|
311
|
-
<div class="refsect2">
|
312
|
-
<a name="g-listenv"></a><h3>g_listenv ()</h3>
|
313
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> ** g_listenv (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
314
|
-
<p>
|
315
|
-
Gets the names of all variables set in the environment.
|
316
|
-
</p>
|
317
|
-
<div class="variablelist"><table border="0">
|
318
|
-
<col align="left" valign="top">
|
319
|
-
<tbody><tr>
|
320
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
321
|
-
<td> a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated list of strings which must be freed
|
322
|
-
with <a class="link" href="glib-String-Utility-Functions.html#g-strfreev" title="g_strfreev ()"><code class="function">g_strfreev()</code></a>.
|
323
|
-
|
324
|
-
Programs that want to be portable to Windows should typically use
|
325
|
-
this function and <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-getenv" title="g_getenv ()"><code class="function">g_getenv()</code></a> instead of using the environ array
|
326
|
-
from the C library directly. On Windows, the strings in the environ
|
327
|
-
array are in system codepage encoding, while in most of the typical
|
328
|
-
use cases for environment variables in GLib-using programs you want
|
329
|
-
the UTF-8 encoding that this function and <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-getenv" title="g_getenv ()"><code class="function">g_getenv()</code></a> provide.
|
330
|
-
|
331
|
-
</td>
|
332
|
-
</tr></tbody>
|
333
|
-
</table></div>
|
334
|
-
<p class="since">Since 2.8</p>
|
335
|
-
</div>
|
336
|
-
<hr>
|
337
|
-
<div class="refsect2">
|
338
|
-
<a name="g-get-user-name"></a><h3>g_get_user_name ()</h3>
|
339
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_user_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
340
|
-
<p>
|
341
|
-
Gets the user name of the current user. The encoding of the returned
|
342
|
-
string is system-defined. On UNIX, it might be the preferred file name
|
343
|
-
encoding, or something else, and there is no guarantee that it is even
|
344
|
-
consistent on a machine. On Windows, it is always UTF-8.
|
345
|
-
</p>
|
346
|
-
<div class="variablelist"><table border="0">
|
347
|
-
<col align="left" valign="top">
|
348
|
-
<tbody><tr>
|
349
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
350
|
-
<td> the user name of the current user.
|
351
|
-
</td>
|
352
|
-
</tr></tbody>
|
353
|
-
</table></div>
|
354
|
-
</div>
|
355
|
-
<hr>
|
356
|
-
<div class="refsect2">
|
357
|
-
<a name="g-get-real-name"></a><h3>g_get_real_name ()</h3>
|
358
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_real_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
359
|
-
<p>
|
360
|
-
Gets the real name of the user. This usually comes from the user's entry
|
361
|
-
in the <code class="filename">passwd</code> file. The encoding of the returned
|
362
|
-
string is system-defined. (On Windows, it is, however, always UTF-8.)
|
363
|
-
If the real user name cannot be determined, the string "Unknown" is
|
364
|
-
returned.
|
365
|
-
</p>
|
366
|
-
<div class="variablelist"><table border="0">
|
367
|
-
<col align="left" valign="top">
|
368
|
-
<tbody><tr>
|
369
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
370
|
-
<td> the user's real name.
|
371
|
-
</td>
|
372
|
-
</tr></tbody>
|
373
|
-
</table></div>
|
374
|
-
</div>
|
375
|
-
<hr>
|
376
|
-
<div class="refsect2">
|
377
|
-
<a name="g-get-user-cache-dir"></a><h3>g_get_user_cache_dir ()</h3>
|
378
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_user_cache_dir (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
379
|
-
<p>
|
380
|
-
Returns a base directory in which to store non-essential, cached
|
381
|
-
data specific to particular user.
|
382
|
-
</p>
|
383
|
-
<p>
|
384
|
-
On UNIX platforms this is determined using the mechanisms described in
|
385
|
-
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
386
|
-
XDG Base Directory Specification</a>.
|
387
|
-
In this case the directory retrieved will be XDG_CACHE_HOME.
|
388
|
-
</p>
|
389
|
-
<p>
|
390
|
-
On Windows is the directory that serves as a common repository for
|
391
|
-
temporary Internet files. A typical path is
|
392
|
-
C:\Documents and Settings\username\Local Settings\Temporary Internet Files.
|
393
|
-
See documentation for CSIDL_INTERNET_CACHE.
|
394
|
-
</p>
|
395
|
-
<div class="variablelist"><table border="0">
|
396
|
-
<col align="left" valign="top">
|
397
|
-
<tbody><tr>
|
398
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
399
|
-
<td> a string owned by GLib that must not be modified
|
400
|
-
or freed.
|
401
|
-
</td>
|
402
|
-
</tr></tbody>
|
403
|
-
</table></div>
|
404
|
-
<p class="since">Since 2.6</p>
|
405
|
-
</div>
|
406
|
-
<hr>
|
407
|
-
<div class="refsect2">
|
408
|
-
<a name="g-get-user-data-dir"></a><h3>g_get_user_data_dir ()</h3>
|
409
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_user_data_dir (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
410
|
-
<p>
|
411
|
-
Returns a base directory in which to access application data such
|
412
|
-
as icons that is customized for a particular user.
|
413
|
-
</p>
|
414
|
-
<p>
|
415
|
-
On UNIX platforms this is determined using the mechanisms described in
|
416
|
-
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
417
|
-
XDG Base Directory Specification</a>.
|
418
|
-
In this case the directory retrieved will be XDG_DATA_HOME.
|
419
|
-
</p>
|
420
|
-
<p>
|
421
|
-
On Windows is the virtual folder that represents the My Documents
|
422
|
-
desktop item. See documentation for CSIDL_PERSONAL.
|
423
|
-
</p>
|
424
|
-
<div class="variablelist"><table border="0">
|
425
|
-
<col align="left" valign="top">
|
426
|
-
<tbody><tr>
|
427
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
428
|
-
<td> a string owned by GLib that must not be modified
|
429
|
-
or freed.
|
430
|
-
</td>
|
431
|
-
</tr></tbody>
|
432
|
-
</table></div>
|
433
|
-
<p class="since">Since 2.6</p>
|
434
|
-
</div>
|
435
|
-
<hr>
|
436
|
-
<div class="refsect2">
|
437
|
-
<a name="g-get-user-config-dir"></a><h3>g_get_user_config_dir ()</h3>
|
438
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_user_config_dir (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
439
|
-
<p>
|
440
|
-
Returns a base directory in which to store user-specific application
|
441
|
-
configuration information such as user preferences and settings.
|
442
|
-
</p>
|
443
|
-
<p>
|
444
|
-
On UNIX platforms this is determined using the mechanisms described in
|
445
|
-
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
446
|
-
XDG Base Directory Specification</a>.
|
447
|
-
In this case the directory retrieved will be XDG_CONFIG_HOME.
|
448
|
-
</p>
|
449
|
-
<p>
|
450
|
-
On Windows is the directory that serves as a common repository for
|
451
|
-
application-specific data. A typical path is
|
452
|
-
C:\Documents and Settings\username\Application. See documentation for
|
453
|
-
CSIDL_APPDATA.
|
454
|
-
</p>
|
455
|
-
<div class="variablelist"><table border="0">
|
456
|
-
<col align="left" valign="top">
|
457
|
-
<tbody><tr>
|
458
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
459
|
-
<td> a string owned by GLib that must not be modified
|
460
|
-
or freed.
|
461
|
-
</td>
|
462
|
-
</tr></tbody>
|
463
|
-
</table></div>
|
464
|
-
<p class="since">Since 2.6</p>
|
465
|
-
</div>
|
466
|
-
<hr>
|
467
|
-
<div class="refsect2">
|
468
|
-
<a name="GUserDirectory"></a><h3>enum GUserDirectory</h3>
|
469
|
-
<pre class="programlisting">typedef enum {
|
470
|
-
G_USER_DIRECTORY_DESKTOP,
|
471
|
-
G_USER_DIRECTORY_DOCUMENTS,
|
472
|
-
G_USER_DIRECTORY_DOWNLOAD,
|
473
|
-
G_USER_DIRECTORY_MUSIC,
|
474
|
-
G_USER_DIRECTORY_PICTURES,
|
475
|
-
G_USER_DIRECTORY_PUBLIC_SHARE,
|
476
|
-
G_USER_DIRECTORY_TEMPLATES,
|
477
|
-
G_USER_DIRECTORY_VIDEOS,
|
478
|
-
|
479
|
-
G_USER_N_DIRECTORIES
|
480
|
-
} GUserDirectory;
|
481
|
-
</pre>
|
482
|
-
<p>
|
483
|
-
These are logical ids for special directories which are defined
|
484
|
-
depending on the platform used. You should use <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-special-dir" title="g_get_user_special_dir ()"><code class="function">g_get_user_special_dir()</code></a>
|
485
|
-
to retrieve the full path associated to the logical id.
|
486
|
-
</p>
|
487
|
-
<p>
|
488
|
-
The <a class="link" href="glib-Miscellaneous-Utility-Functions.html#GUserDirectory" title="enum GUserDirectory"><span class="type">GUserDirectory</span></a> enumeration can be extended at later date. Not
|
489
|
-
every platform has a directory for every logical id in this
|
490
|
-
enumeration.
|
491
|
-
</p>
|
492
|
-
<div class="variablelist"><table border="0">
|
493
|
-
<col align="left" valign="top">
|
494
|
-
<tbody>
|
495
|
-
<tr>
|
496
|
-
<td><p><a name="G-USER-DIRECTORY-DESKTOP:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_DESKTOP</code></span></p></td>
|
497
|
-
<td>the user's Desktop directory
|
498
|
-
</td>
|
499
|
-
</tr>
|
500
|
-
<tr>
|
501
|
-
<td><p><a name="G-USER-DIRECTORY-DOCUMENTS:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_DOCUMENTS</code></span></p></td>
|
502
|
-
<td>the user's Documents directory
|
503
|
-
</td>
|
504
|
-
</tr>
|
505
|
-
<tr>
|
506
|
-
<td><p><a name="G-USER-DIRECTORY-DOWNLOAD:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_DOWNLOAD</code></span></p></td>
|
507
|
-
<td>the user's Downloads directory
|
508
|
-
</td>
|
509
|
-
</tr>
|
510
|
-
<tr>
|
511
|
-
<td><p><a name="G-USER-DIRECTORY-MUSIC:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_MUSIC</code></span></p></td>
|
512
|
-
<td>the user's Music directory
|
513
|
-
</td>
|
514
|
-
</tr>
|
515
|
-
<tr>
|
516
|
-
<td><p><a name="G-USER-DIRECTORY-PICTURES:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_PICTURES</code></span></p></td>
|
517
|
-
<td>the user's Pictures directory
|
518
|
-
</td>
|
519
|
-
</tr>
|
520
|
-
<tr>
|
521
|
-
<td><p><a name="G-USER-DIRECTORY-PUBLIC-SHARE:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_PUBLIC_SHARE</code></span></p></td>
|
522
|
-
<td>the user's shared directory
|
523
|
-
</td>
|
524
|
-
</tr>
|
525
|
-
<tr>
|
526
|
-
<td><p><a name="G-USER-DIRECTORY-TEMPLATES:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_TEMPLATES</code></span></p></td>
|
527
|
-
<td>the user's Templates directory
|
528
|
-
</td>
|
529
|
-
</tr>
|
530
|
-
<tr>
|
531
|
-
<td><p><a name="G-USER-DIRECTORY-VIDEOS:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_VIDEOS</code></span></p></td>
|
532
|
-
<td>the user's Movies directory
|
533
|
-
</td>
|
534
|
-
</tr>
|
535
|
-
<tr>
|
536
|
-
<td><p><a name="G-USER-N-DIRECTORIES:CAPS"></a><span class="term"><code class="literal">G_USER_N_DIRECTORIES</code></span></p></td>
|
537
|
-
<td>the number of enum values
|
538
|
-
</td>
|
539
|
-
</tr>
|
540
|
-
</tbody>
|
541
|
-
</table></div>
|
542
|
-
<p class="since">Since 2.14</p>
|
543
|
-
</div>
|
544
|
-
<hr>
|
545
|
-
<div class="refsect2">
|
546
|
-
<a name="g-get-user-special-dir"></a><h3>g_get_user_special_dir ()</h3>
|
547
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_user_special_dir (<em class="parameter"><code><a class="link" href="glib-Miscellaneous-Utility-Functions.html#GUserDirectory" title="enum GUserDirectory"><span class="type">GUserDirectory</span></a> directory</code></em>);</pre>
|
548
|
-
<p>
|
549
|
-
Returns the full path of a special directory using its logical id.
|
550
|
-
</p>
|
551
|
-
<p>
|
552
|
-
On Unix this is done using the XDG special user directories.
|
553
|
-
For compatibility with existing practise, <a class="link" href="glib-Miscellaneous-Utility-Functions.html#G-USER-DIRECTORY-DESKTOP:CAPS"><code class="literal">G_USER_DIRECTORY_DESKTOP</code></a>
|
554
|
-
falls back to <code class="filename">$HOME/Desktop</code> when XDG special
|
555
|
-
user directories have not been set up.
|
556
|
-
</p>
|
557
|
-
<p>
|
558
|
-
Depending on the platform, the user might be able to change the path
|
559
|
-
of the special directory without requiring the session to restart; GLib
|
560
|
-
will not reflect any change once the special directories are loaded.
|
561
|
-
</p>
|
562
|
-
<div class="variablelist"><table border="0">
|
563
|
-
<col align="left" valign="top">
|
564
|
-
<tbody>
|
565
|
-
<tr>
|
566
|
-
<td><p><span class="term"><em class="parameter"><code>directory</code></em> :</span></p></td>
|
567
|
-
<td>the logical id of special directory
|
568
|
-
</td>
|
569
|
-
</tr>
|
570
|
-
<tr>
|
571
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
572
|
-
<td> the path to the specified special directory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
573
|
-
if the logical id was not found. The returned string is owned by
|
574
|
-
GLib and should not be modified or freed.
|
575
|
-
|
576
|
-
</td>
|
577
|
-
</tr>
|
578
|
-
</tbody>
|
579
|
-
</table></div>
|
580
|
-
<p class="since">Since 2.14</p>
|
581
|
-
</div>
|
582
|
-
<hr>
|
583
|
-
<div class="refsect2">
|
584
|
-
<a name="g-get-system-data-dirs"></a><h3>g_get_system_data_dirs ()</h3>
|
585
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * const * g_get_system_data_dirs (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
586
|
-
<p>
|
587
|
-
Returns an ordered list of base directories in which to access
|
588
|
-
system-wide application data.
|
589
|
-
</p>
|
590
|
-
<p>
|
591
|
-
On UNIX platforms this is determined using the mechanisms described in
|
592
|
-
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
593
|
-
XDG Base Directory Specification</a>
|
594
|
-
In this case the list of directories retrieved will be XDG_DATA_DIRS.
|
595
|
-
</p>
|
596
|
-
<p>
|
597
|
-
On Windows the first elements in the list are the Application Data
|
598
|
-
and Documents folders for All Users. (These can be determined only
|
599
|
-
on Windows 2000 or later and are not present in the list on other
|
600
|
-
Windows versions.) See documentation for CSIDL_COMMON_APPDATA and
|
601
|
-
CSIDL_COMMON_DOCUMENTS.
|
602
|
-
</p>
|
603
|
-
<p>
|
604
|
-
Then follows the "share" subfolder in the installation folder for
|
605
|
-
the package containing the DLL that calls this function, if it can
|
606
|
-
be determined.
|
607
|
-
</p>
|
608
|
-
<p>
|
609
|
-
Finally the list contains the "share" subfolder in the installation
|
610
|
-
folder for GLib, and in the installation folder for the package the
|
611
|
-
application's .exe file belongs to.
|
612
|
-
</p>
|
613
|
-
<p>
|
614
|
-
The installation folders above are determined by looking up the
|
615
|
-
folder where the module (DLL or EXE) in question is located. If the
|
616
|
-
folder's name is "bin", its parent is used, otherwise the folder
|
617
|
-
itself.
|
618
|
-
</p>
|
619
|
-
<p>
|
620
|
-
Note that on Windows the returned list can vary depending on where
|
621
|
-
this function is called.
|
622
|
-
</p>
|
623
|
-
<div class="variablelist"><table border="0">
|
624
|
-
<col align="left" valign="top">
|
625
|
-
<tbody><tr>
|
626
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
627
|
-
<td> a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of strings owned by GLib that must
|
628
|
-
not be modified or freed.
|
629
|
-
</td>
|
630
|
-
</tr></tbody>
|
631
|
-
</table></div>
|
632
|
-
<p class="since">Since 2.6</p>
|
633
|
-
</div>
|
634
|
-
<hr>
|
635
|
-
<div class="refsect2">
|
636
|
-
<a name="g-get-system-config-dirs"></a><h3>g_get_system_config_dirs ()</h3>
|
637
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * const * g_get_system_config_dirs (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
638
|
-
<p>
|
639
|
-
Returns an ordered list of base directories in which to access
|
640
|
-
system-wide configuration information.
|
641
|
-
</p>
|
642
|
-
<p>
|
643
|
-
On UNIX platforms this is determined using the mechanisms described in
|
644
|
-
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
645
|
-
XDG Base Directory Specification</a>.
|
646
|
-
In this case the list of directories retrieved will be XDG_CONFIG_DIRS.
|
647
|
-
</p>
|
648
|
-
<p>
|
649
|
-
On Windows is the directory that contains application data for all users.
|
650
|
-
A typical path is C:\Documents and Settings\All Users\Application Data.
|
651
|
-
This folder is used for application data that is not user specific.
|
652
|
-
For example, an application can store a spell-check dictionary, a database
|
653
|
-
of clip art, or a log file in the CSIDL_COMMON_APPDATA folder.
|
654
|
-
This information will not roam and is available to anyone using the computer.
|
655
|
-
</p>
|
656
|
-
<div class="variablelist"><table border="0">
|
657
|
-
<col align="left" valign="top">
|
658
|
-
<tbody><tr>
|
659
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
660
|
-
<td> a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of strings owned by GLib that must
|
661
|
-
not be modified or freed.
|
662
|
-
</td>
|
663
|
-
</tr></tbody>
|
664
|
-
</table></div>
|
665
|
-
<p class="since">Since 2.6</p>
|
666
|
-
</div>
|
667
|
-
<hr>
|
668
|
-
<div class="refsect2">
|
669
|
-
<a name="g-reload-user-special-dirs-cache"></a><h3>g_reload_user_special_dirs_cache ()</h3>
|
670
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_reload_user_special_dirs_cache (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
671
|
-
<p>
|
672
|
-
Resets the cache used for <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-special-dir" title="g_get_user_special_dir ()"><code class="function">g_get_user_special_dir()</code></a>, so
|
673
|
-
that the latest on-disk version is used. Call this only
|
674
|
-
if you just changed the data on disk yourself.
|
675
|
-
</p>
|
676
|
-
<p>
|
677
|
-
Due to threadsafety issues this may cause leaking of strings
|
678
|
-
that were previously returned from <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-special-dir" title="g_get_user_special_dir ()"><code class="function">g_get_user_special_dir()</code></a>
|
679
|
-
that can't be freed. We ensure to only leak the data for
|
680
|
-
the directories that actually changed value though.
|
681
|
-
</p>
|
682
|
-
<p class="since">Since 2.22</p>
|
683
|
-
</div>
|
684
|
-
<hr>
|
685
|
-
<div class="refsect2">
|
686
|
-
<a name="g-get-host-name"></a><h3>g_get_host_name ()</h3>
|
687
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_host_name (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
688
|
-
<p>
|
689
|
-
Return a name for the machine.
|
690
|
-
</p>
|
691
|
-
<p>
|
692
|
-
The returned name is not necessarily a fully-qualified domain name,
|
693
|
-
or even present in DNS or some other name service at all. It need
|
694
|
-
not even be unique on your local network or site, but usually it
|
695
|
-
is. Callers should not rely on the return value having any specific
|
696
|
-
properties like uniqueness for security purposes. Even if the name
|
697
|
-
of the machine is changed while an application is running, the
|
698
|
-
return value from this function does not change. The returned
|
699
|
-
string is owned by GLib and should not be modified or freed. If no
|
700
|
-
name can be determined, a default fixed string "localhost" is
|
701
|
-
returned.
|
702
|
-
</p>
|
703
|
-
<div class="variablelist"><table border="0">
|
704
|
-
<col align="left" valign="top">
|
705
|
-
<tbody><tr>
|
706
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
707
|
-
<td> the host name of the machine.
|
708
|
-
|
709
|
-
</td>
|
710
|
-
</tr></tbody>
|
711
|
-
</table></div>
|
712
|
-
<p class="since">Since 2.8</p>
|
713
|
-
</div>
|
714
|
-
<hr>
|
715
|
-
<div class="refsect2">
|
716
|
-
<a name="g-get-home-dir"></a><h3>g_get_home_dir ()</h3>
|
717
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_home_dir (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
718
|
-
<p>
|
719
|
-
Gets the current user's home directory as defined in the
|
720
|
-
password database.
|
721
|
-
</p>
|
722
|
-
<p>
|
723
|
-
Note that in contrast to traditional UNIX tools, this function
|
724
|
-
prefers <code class="filename">passwd</code> entries over the <code class="envar">HOME</code>
|
725
|
-
environment variable.
|
726
|
-
</p>
|
727
|
-
<p>
|
728
|
-
One of the reasons for this decision is that applications in many
|
729
|
-
cases need special handling to deal with the case where
|
730
|
-
<code class="envar">HOME</code> is
|
731
|
-
</p>
|
732
|
-
<table border="0" summary="Simple list" class="simplelist">
|
733
|
-
<tr><td>Not owned by the user</td></tr>
|
734
|
-
<tr><td>Not writeable</td></tr>
|
735
|
-
<tr><td>Not even readable</td></tr>
|
736
|
-
</table>
|
737
|
-
<p>
|
738
|
-
Since applications are in general <span class="emphasis"><em>not</em></span> written
|
739
|
-
to deal with these situations it was considered better to make
|
740
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-home-dir" title="g_get_home_dir ()"><code class="function">g_get_home_dir()</code></a> not pay attention to <code class="envar">HOME</code> and to
|
741
|
-
return the real home directory for the user. If applications
|
742
|
-
want to pay attention to <code class="envar">HOME</code>, they can do:
|
743
|
-
</p>
|
744
|
-
<div class="informalexample">
|
745
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
746
|
-
<tbody>
|
747
|
-
<tr>
|
748
|
-
<td class="listing_lines" align="right"><pre>1
|
749
|
-
2
|
750
|
-
3</pre></td>
|
751
|
-
<td class="listing_code"><pre class="programlisting"><span class="keyword">const</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">homedir </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Miscellaneous-Utility-Functions.html#g-getenv">g_getenv</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"HOME"</span><span class="symbol">);</span>
|
752
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">homedir</span><span class="symbol">)</span>
|
753
|
-
<span class="normal"> homedir </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Miscellaneous-Utility-Functions.html#g-get-home-dir">g_get_home_dir</a></span><span class="normal"> </span><span class="symbol">();</span></pre></td>
|
754
|
-
</tr>
|
755
|
-
</tbody>
|
756
|
-
</table>
|
757
|
-
</div>
|
758
|
-
|
759
|
-
<p>
|
760
|
-
</p>
|
761
|
-
<div class="variablelist"><table border="0">
|
762
|
-
<col align="left" valign="top">
|
763
|
-
<tbody><tr>
|
764
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
765
|
-
<td> the current user's home directory
|
766
|
-
</td>
|
767
|
-
</tr></tbody>
|
768
|
-
</table></div>
|
769
|
-
</div>
|
770
|
-
<hr>
|
771
|
-
<div class="refsect2">
|
772
|
-
<a name="g-get-tmp-dir"></a><h3>g_get_tmp_dir ()</h3>
|
773
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_tmp_dir (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
774
|
-
<p>
|
775
|
-
Gets the directory to use for temporary files. This is found from
|
776
|
-
inspecting the environment variables <code class="envar">TMPDIR</code>,
|
777
|
-
<code class="envar">TMP</code>, and <code class="envar">TEMP</code> in that order. If none
|
778
|
-
of those are defined "/tmp" is returned on UNIX and "C:\" on Windows.
|
779
|
-
The encoding of the returned string is system-defined. On Windows,
|
780
|
-
it is always UTF-8. The return value is never <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> or the empty string.
|
781
|
-
</p>
|
782
|
-
<div class="variablelist"><table border="0">
|
783
|
-
<col align="left" valign="top">
|
784
|
-
<tbody><tr>
|
785
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
786
|
-
<td> the directory to use for temporary files.
|
787
|
-
</td>
|
788
|
-
</tr></tbody>
|
789
|
-
</table></div>
|
790
|
-
</div>
|
791
|
-
<hr>
|
792
|
-
<div class="refsect2">
|
793
|
-
<a name="g-get-current-dir"></a><h3>g_get_current_dir ()</h3>
|
794
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_get_current_dir (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
795
|
-
<p>
|
796
|
-
Gets the current directory.
|
797
|
-
The returned string should be freed when no longer needed. The encoding
|
798
|
-
of the returned string is system defined. On Windows, it is always UTF-8.
|
799
|
-
</p>
|
800
|
-
<div class="variablelist"><table border="0">
|
801
|
-
<col align="left" valign="top">
|
802
|
-
<tbody><tr>
|
803
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
804
|
-
<td> the current directory.
|
805
|
-
</td>
|
806
|
-
</tr></tbody>
|
807
|
-
</table></div>
|
808
|
-
</div>
|
809
|
-
<hr>
|
810
|
-
<div class="refsect2">
|
811
|
-
<a name="g-basename"></a><h3>g_basename ()</h3>
|
812
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_basename (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);</pre>
|
813
|
-
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
814
|
-
<h3 class="title">Warning</h3>
|
815
|
-
<p><code class="literal">g_basename</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-get-basename" title="g_path_get_basename ()"><code class="function">g_path_get_basename()</code></a> instead, but notice that
|
816
|
-
<a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-get-basename" title="g_path_get_basename ()"><code class="function">g_path_get_basename()</code></a> allocates new memory for the returned string, unlike
|
817
|
-
this function which returns a pointer into the argument.</p>
|
818
|
-
</div>
|
819
|
-
<p>
|
820
|
-
Gets the name of the file without any leading directory components.
|
821
|
-
It returns a pointer into the given file name string.
|
822
|
-
</p>
|
823
|
-
<div class="variablelist"><table border="0">
|
824
|
-
<col align="left" valign="top">
|
825
|
-
<tbody>
|
826
|
-
<tr>
|
827
|
-
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
828
|
-
<td>the name of the file.
|
829
|
-
</td>
|
830
|
-
</tr>
|
831
|
-
<tr>
|
832
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
833
|
-
<td> the name of the file without any leading directory components.
|
834
|
-
|
835
|
-
</td>
|
836
|
-
</tr>
|
837
|
-
</tbody>
|
838
|
-
</table></div>
|
839
|
-
</div>
|
840
|
-
<hr>
|
841
|
-
<div class="refsect2">
|
842
|
-
<a name="g-dirname"></a><h3>g_dirname</h3>
|
843
|
-
<pre class="programlisting">#define g_dirname</pre>
|
844
|
-
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
845
|
-
<h3 class="title">Warning</h3>
|
846
|
-
<p><code class="literal">g_dirname</code> is deprecated and should not be used in newly-written code.</p>
|
847
|
-
</div>
|
848
|
-
<p>
|
849
|
-
This function is deprecated and will be removed in the next major
|
850
|
-
release of GLib. Use <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-path-get-dirname" title="g_path_get_dirname ()"><code class="function">g_path_get_dirname()</code></a> instead.
|
851
|
-
</p>
|
852
|
-
<p>
|
853
|
-
Gets the directory components of a file name.
|
854
|
-
If the file name has no directory components "." is returned.
|
855
|
-
The returned string should be freed when no longer needed.
|
856
|
-
</p>
|
857
|
-
<div class="variablelist"><table border="0">
|
858
|
-
<col align="left" valign="top">
|
859
|
-
<tbody><tr>
|
860
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
861
|
-
<td>the directory components of the file.
|
862
|
-
</td>
|
863
|
-
</tr></tbody>
|
864
|
-
</table></div>
|
865
|
-
</div>
|
866
|
-
<hr>
|
867
|
-
<div class="refsect2">
|
868
|
-
<a name="g-path-is-absolute"></a><h3>g_path_is_absolute ()</h3>
|
869
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_path_is_absolute (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);</pre>
|
870
|
-
<p>
|
871
|
-
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the given <em class="parameter"><code>file_name</code></em> is an absolute file name,
|
872
|
-
i.e. it contains a full path from the root directory such as "/usr/local"
|
873
|
-
on UNIX or "C:\windows" on Windows systems.
|
874
|
-
</p>
|
875
|
-
<div class="variablelist"><table border="0">
|
876
|
-
<col align="left" valign="top">
|
877
|
-
<tbody>
|
878
|
-
<tr>
|
879
|
-
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
880
|
-
<td>a file name.
|
881
|
-
</td>
|
882
|
-
</tr>
|
883
|
-
<tr>
|
884
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
885
|
-
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>file_name</code></em> is an absolute path.
|
886
|
-
</td>
|
887
|
-
</tr>
|
888
|
-
</tbody>
|
889
|
-
</table></div>
|
890
|
-
</div>
|
891
|
-
<hr>
|
892
|
-
<div class="refsect2">
|
893
|
-
<a name="g-path-skip-root"></a><h3>g_path_skip_root ()</h3>
|
894
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_path_skip_root (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);</pre>
|
895
|
-
<p>
|
896
|
-
Returns a pointer into <em class="parameter"><code>file_name</code></em> after the root component, i.e. after
|
897
|
-
the "/" in UNIX or "C:\" under Windows. If <em class="parameter"><code>file_name</code></em> is not an absolute
|
898
|
-
path it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
899
|
-
</p>
|
900
|
-
<div class="variablelist"><table border="0">
|
901
|
-
<col align="left" valign="top">
|
902
|
-
<tbody>
|
903
|
-
<tr>
|
904
|
-
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
905
|
-
<td>a file name.
|
906
|
-
</td>
|
907
|
-
</tr>
|
908
|
-
<tr>
|
909
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
910
|
-
<td> a pointer into <em class="parameter"><code>file_name</code></em> after the root component.
|
911
|
-
</td>
|
912
|
-
</tr>
|
913
|
-
</tbody>
|
914
|
-
</table></div>
|
915
|
-
</div>
|
916
|
-
<hr>
|
917
|
-
<div class="refsect2">
|
918
|
-
<a name="g-path-get-basename"></a><h3>g_path_get_basename ()</h3>
|
919
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_path_get_basename (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);</pre>
|
920
|
-
<p>
|
921
|
-
Gets the last component of the filename. If <em class="parameter"><code>file_name</code></em> ends with a
|
922
|
-
directory separator it gets the component before the last slash. If
|
923
|
-
<em class="parameter"><code>file_name</code></em> consists only of directory separators (and on Windows,
|
924
|
-
possibly a drive letter), a single separator is returned. If
|
925
|
-
<em class="parameter"><code>file_name</code></em> is empty, it gets ".".
|
926
|
-
</p>
|
927
|
-
<div class="variablelist"><table border="0">
|
928
|
-
<col align="left" valign="top">
|
929
|
-
<tbody>
|
930
|
-
<tr>
|
931
|
-
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
932
|
-
<td>the name of the file.
|
933
|
-
</td>
|
934
|
-
</tr>
|
935
|
-
<tr>
|
936
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
937
|
-
<td> a newly allocated string containing the last component of
|
938
|
-
the filename.
|
939
|
-
</td>
|
940
|
-
</tr>
|
941
|
-
</tbody>
|
942
|
-
</table></div>
|
943
|
-
</div>
|
944
|
-
<hr>
|
945
|
-
<div class="refsect2">
|
946
|
-
<a name="g-path-get-dirname"></a><h3>g_path_get_dirname ()</h3>
|
947
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_path_get_dirname (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file_name</code></em>);</pre>
|
948
|
-
<p>
|
949
|
-
Gets the directory components of a file name. If the file name has no
|
950
|
-
directory components "." is returned. The returned string should be
|
951
|
-
freed when no longer needed.
|
952
|
-
</p>
|
953
|
-
<div class="variablelist"><table border="0">
|
954
|
-
<col align="left" valign="top">
|
955
|
-
<tbody>
|
956
|
-
<tr>
|
957
|
-
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
958
|
-
<td>the name of the file.
|
959
|
-
</td>
|
960
|
-
</tr>
|
961
|
-
<tr>
|
962
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
963
|
-
<td> the directory components of the file.
|
964
|
-
</td>
|
965
|
-
</tr>
|
966
|
-
</tbody>
|
967
|
-
</table></div>
|
968
|
-
</div>
|
969
|
-
<hr>
|
970
|
-
<div class="refsect2">
|
971
|
-
<a name="g-build-filename"></a><h3>g_build_filename ()</h3>
|
972
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_build_filename (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *first_element</code></em>,
|
973
|
-
<em class="parameter"><code>...</code></em>);</pre>
|
974
|
-
<p>
|
975
|
-
Creates a filename from a series of elements using the correct
|
976
|
-
separator for filenames.
|
977
|
-
</p>
|
978
|
-
<p>
|
979
|
-
On Unix, this function behaves identically to <code class="literal">g_build_path
|
980
|
-
(G_DIR_SEPARATOR_S, first_element, ....)</code>.
|
981
|
-
</p>
|
982
|
-
<p>
|
983
|
-
On Windows, it takes into account that either the backslash
|
984
|
-
(<code class="literal">\</code> or slash (<code class="literal">/</code>) can be used
|
985
|
-
as separator in filenames, but otherwise behaves as on Unix. When
|
986
|
-
file pathname separators need to be inserted, the one that last
|
987
|
-
previously occurred in the parameters (reading from left to right)
|
988
|
-
is used.
|
989
|
-
</p>
|
990
|
-
<p>
|
991
|
-
No attempt is made to force the resulting filename to be an absolute
|
992
|
-
path. If the first element is a relative path, the result will
|
993
|
-
be a relative path.
|
994
|
-
</p>
|
995
|
-
<div class="variablelist"><table border="0">
|
996
|
-
<col align="left" valign="top">
|
997
|
-
<tbody>
|
998
|
-
<tr>
|
999
|
-
<td><p><span class="term"><em class="parameter"><code>first_element</code></em> :</span></p></td>
|
1000
|
-
<td>the first element in the path
|
1001
|
-
</td>
|
1002
|
-
</tr>
|
1003
|
-
<tr>
|
1004
|
-
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
1005
|
-
<td>remaining elements in path, terminated by <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1006
|
-
</td>
|
1007
|
-
</tr>
|
1008
|
-
<tr>
|
1009
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1010
|
-
<td> a newly-allocated string that must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
|
1011
|
-
</td>
|
1012
|
-
</tr>
|
1013
|
-
</tbody>
|
1014
|
-
</table></div>
|
1015
|
-
</div>
|
1016
|
-
<hr>
|
1017
|
-
<div class="refsect2">
|
1018
|
-
<a name="g-build-filenamev"></a><h3>g_build_filenamev ()</h3>
|
1019
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_build_filenamev (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **args</code></em>);</pre>
|
1020
|
-
<p>
|
1021
|
-
Behaves exactly like <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-build-filename" title="g_build_filename ()"><code class="function">g_build_filename()</code></a>, but takes the path elements
|
1022
|
-
as a string array, instead of varargs. This function is mainly
|
1023
|
-
meant for language bindings.
|
1024
|
-
</p>
|
1025
|
-
<div class="variablelist"><table border="0">
|
1026
|
-
<col align="left" valign="top">
|
1027
|
-
<tbody>
|
1028
|
-
<tr>
|
1029
|
-
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
|
1030
|
-
<td>
|
1031
|
-
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of strings containing the path elements.
|
1032
|
-
</td>
|
1033
|
-
</tr>
|
1034
|
-
<tr>
|
1035
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1036
|
-
<td> a newly-allocated string that must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
|
1037
|
-
|
1038
|
-
</td>
|
1039
|
-
</tr>
|
1040
|
-
</tbody>
|
1041
|
-
</table></div>
|
1042
|
-
<p class="since">Since 2.8</p>
|
1043
|
-
</div>
|
1044
|
-
<hr>
|
1045
|
-
<div class="refsect2">
|
1046
|
-
<a name="g-build-path"></a><h3>g_build_path ()</h3>
|
1047
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_build_path (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *separator</code></em>,
|
1048
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *first_element</code></em>,
|
1049
|
-
<em class="parameter"><code>...</code></em>);</pre>
|
1050
|
-
<p>
|
1051
|
-
Creates a path from a series of elements using <em class="parameter"><code>separator</code></em> as the
|
1052
|
-
separator between elements. At the boundary between two elements,
|
1053
|
-
any trailing occurrences of separator in the first element, or
|
1054
|
-
leading occurrences of separator in the second element are removed
|
1055
|
-
and exactly one copy of the separator is inserted.
|
1056
|
-
</p>
|
1057
|
-
<p>
|
1058
|
-
Empty elements are ignored.
|
1059
|
-
</p>
|
1060
|
-
<p>
|
1061
|
-
The number of leading copies of the separator on the result is
|
1062
|
-
the same as the number of leading copies of the separator on
|
1063
|
-
the first non-empty element.
|
1064
|
-
</p>
|
1065
|
-
<p>
|
1066
|
-
The number of trailing copies of the separator on the result is
|
1067
|
-
the same as the number of trailing copies of the separator on
|
1068
|
-
the last non-empty element. (Determination of the number of
|
1069
|
-
trailing copies is done without stripping leading copies, so
|
1070
|
-
if the separator is <code class="literal">ABA</code>, <code class="literal">ABABA</code>
|
1071
|
-
has 1 trailing copy.)
|
1072
|
-
</p>
|
1073
|
-
<p>
|
1074
|
-
However, if there is only a single non-empty element, and there
|
1075
|
-
are no characters in that element not part of the leading or
|
1076
|
-
trailing separators, then the result is exactly the original value
|
1077
|
-
of that element.
|
1078
|
-
</p>
|
1079
|
-
<p>
|
1080
|
-
Other than for determination of the number of leading and trailing
|
1081
|
-
copies of the separator, elements consisting only of copies
|
1082
|
-
of the separator are ignored.
|
1083
|
-
</p>
|
1084
|
-
<div class="variablelist"><table border="0">
|
1085
|
-
<col align="left" valign="top">
|
1086
|
-
<tbody>
|
1087
|
-
<tr>
|
1088
|
-
<td><p><span class="term"><em class="parameter"><code>separator</code></em> :</span></p></td>
|
1089
|
-
<td>a string used to separator the elements of the path.
|
1090
|
-
</td>
|
1091
|
-
</tr>
|
1092
|
-
<tr>
|
1093
|
-
<td><p><span class="term"><em class="parameter"><code>first_element</code></em> :</span></p></td>
|
1094
|
-
<td>the first element in the path
|
1095
|
-
</td>
|
1096
|
-
</tr>
|
1097
|
-
<tr>
|
1098
|
-
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
1099
|
-
<td>remaining elements in path, terminated by <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1100
|
-
</td>
|
1101
|
-
</tr>
|
1102
|
-
<tr>
|
1103
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1104
|
-
<td> a newly-allocated string that must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
|
1105
|
-
</td>
|
1106
|
-
</tr>
|
1107
|
-
</tbody>
|
1108
|
-
</table></div>
|
1109
|
-
</div>
|
1110
|
-
<hr>
|
1111
|
-
<div class="refsect2">
|
1112
|
-
<a name="g-build-pathv"></a><h3>g_build_pathv ()</h3>
|
1113
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_build_pathv (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *separator</code></em>,
|
1114
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **args</code></em>);</pre>
|
1115
|
-
<p>
|
1116
|
-
Behaves exactly like <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-build-path" title="g_build_path ()"><code class="function">g_build_path()</code></a>, but takes the path elements
|
1117
|
-
as a string array, instead of varargs. This function is mainly
|
1118
|
-
meant for language bindings.
|
1119
|
-
</p>
|
1120
|
-
<div class="variablelist"><table border="0">
|
1121
|
-
<col align="left" valign="top">
|
1122
|
-
<tbody>
|
1123
|
-
<tr>
|
1124
|
-
<td><p><span class="term"><em class="parameter"><code>separator</code></em> :</span></p></td>
|
1125
|
-
<td>a string used to separator the elements of the path.
|
1126
|
-
</td>
|
1127
|
-
</tr>
|
1128
|
-
<tr>
|
1129
|
-
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
|
1130
|
-
<td>
|
1131
|
-
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of strings containing the path elements.
|
1132
|
-
</td>
|
1133
|
-
</tr>
|
1134
|
-
<tr>
|
1135
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1136
|
-
<td> a newly-allocated string that must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
|
1137
|
-
|
1138
|
-
</td>
|
1139
|
-
</tr>
|
1140
|
-
</tbody>
|
1141
|
-
</table></div>
|
1142
|
-
<p class="since">Since 2.8</p>
|
1143
|
-
</div>
|
1144
|
-
<hr>
|
1145
|
-
<div class="refsect2">
|
1146
|
-
<a name="g-format-size-for-display"></a><h3>g_format_size_for_display ()</h3>
|
1147
|
-
<pre class="programlisting"><span class="returnvalue">char</span> * g_format_size_for_display (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#goffset" title="goffset"><span class="type">goffset</span></a> size</code></em>);</pre>
|
1148
|
-
<p>
|
1149
|
-
Formats a size (for example the size of a file) into a human readable string.
|
1150
|
-
Sizes are rounded to the nearest size prefix (KB, MB, GB) and are displayed
|
1151
|
-
rounded to the nearest tenth. E.g. the file size 3292528 bytes will be
|
1152
|
-
converted into the string "3.1 MB".
|
1153
|
-
</p>
|
1154
|
-
<p>
|
1155
|
-
The prefix units base is 1024 (i.e. 1 KB is 1024 bytes).
|
1156
|
-
</p>
|
1157
|
-
<p>
|
1158
|
-
This string should be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a> when not needed any longer.
|
1159
|
-
</p>
|
1160
|
-
<div class="variablelist"><table border="0">
|
1161
|
-
<col align="left" valign="top">
|
1162
|
-
<tbody>
|
1163
|
-
<tr>
|
1164
|
-
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1165
|
-
<td>a size in bytes.
|
1166
|
-
</td>
|
1167
|
-
</tr>
|
1168
|
-
<tr>
|
1169
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1170
|
-
<td> a newly-allocated formatted string containing a human readable
|
1171
|
-
file size.
|
1172
|
-
|
1173
|
-
</td>
|
1174
|
-
</tr>
|
1175
|
-
</tbody>
|
1176
|
-
</table></div>
|
1177
|
-
<p class="since">Since 2.16</p>
|
1178
|
-
</div>
|
1179
|
-
<hr>
|
1180
|
-
<div class="refsect2">
|
1181
|
-
<a name="g-find-program-in-path"></a><h3>g_find_program_in_path ()</h3>
|
1182
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_find_program_in_path (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *program</code></em>);</pre>
|
1183
|
-
<p>
|
1184
|
-
Locates the first executable named <em class="parameter"><code>program</code></em> in the user's path, in the
|
1185
|
-
same way that <code class="function">execvp()</code> would locate it. Returns an allocated string
|
1186
|
-
with the absolute path name, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the program is not found in
|
1187
|
-
the path. If <em class="parameter"><code>program</code></em> is already an absolute path, returns a copy of
|
1188
|
-
<em class="parameter"><code>program</code></em> if <em class="parameter"><code>program</code></em> exists and is executable, and <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> otherwise.
|
1189
|
-
|
1190
|
-
On Windows, if <em class="parameter"><code>program</code></em> does not have a file type suffix, tries
|
1191
|
-
with the suffixes .exe, .cmd, .bat and .com, and the suffixes in
|
1192
|
-
the <code class="envar">PATHEXT</code> environment variable.
|
1193
|
-
</p>
|
1194
|
-
<p>
|
1195
|
-
On Windows, it looks for the file in the same way as <code class="function">CreateProcess()</code>
|
1196
|
-
would. This means first in the directory where the executing
|
1197
|
-
program was loaded from, then in the current directory, then in the
|
1198
|
-
Windows 32-bit system directory, then in the Windows directory, and
|
1199
|
-
finally in the directories in the <code class="envar">PATH</code> environment
|
1200
|
-
variable. If the program is found, the return value contains the
|
1201
|
-
full name including the type suffix.
|
1202
|
-
</p>
|
1203
|
-
<div class="variablelist"><table border="0">
|
1204
|
-
<col align="left" valign="top">
|
1205
|
-
<tbody>
|
1206
|
-
<tr>
|
1207
|
-
<td><p><span class="term"><em class="parameter"><code>program</code></em> :</span></p></td>
|
1208
|
-
<td>a program name in the GLib file name encoding
|
1209
|
-
</td>
|
1210
|
-
</tr>
|
1211
|
-
<tr>
|
1212
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1213
|
-
<td> absolute path, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1214
|
-
</td>
|
1215
|
-
</tr>
|
1216
|
-
</tbody>
|
1217
|
-
</table></div>
|
1218
|
-
</div>
|
1219
|
-
<hr>
|
1220
|
-
<div class="refsect2">
|
1221
|
-
<a name="g-bit-nth-lsf"></a><h3>g_bit_nth_lsf ()</h3>
|
1222
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_bit_nth_lsf (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> mask</code></em>,
|
1223
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> nth_bit</code></em>);</pre>
|
1224
|
-
<p>
|
1225
|
-
Find the position of the first bit set in <em class="parameter"><code>mask</code></em>, searching from (but not
|
1226
|
-
including) <em class="parameter"><code>nth_bit</code></em> upwards. Bits are numbered from 0 (least significant)
|
1227
|
-
to sizeof(<a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a>) * 8 - 1 (31 or 63, usually). To start searching from the
|
1228
|
-
0th bit, set <em class="parameter"><code>nth_bit</code></em> to -1.
|
1229
|
-
</p>
|
1230
|
-
<div class="variablelist"><table border="0">
|
1231
|
-
<col align="left" valign="top">
|
1232
|
-
<tbody>
|
1233
|
-
<tr>
|
1234
|
-
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
|
1235
|
-
<td>a <a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> containing flags.
|
1236
|
-
</td>
|
1237
|
-
</tr>
|
1238
|
-
<tr>
|
1239
|
-
<td><p><span class="term"><em class="parameter"><code>nth_bit</code></em> :</span></p></td>
|
1240
|
-
<td>the index of the bit to start the search from.
|
1241
|
-
</td>
|
1242
|
-
</tr>
|
1243
|
-
<tr>
|
1244
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1245
|
-
<td>the index of the first bit set which is higher than <em class="parameter"><code>nth_bit</code></em>.
|
1246
|
-
</td>
|
1247
|
-
</tr>
|
1248
|
-
</tbody>
|
1249
|
-
</table></div>
|
1250
|
-
</div>
|
1251
|
-
<hr>
|
1252
|
-
<div class="refsect2">
|
1253
|
-
<a name="g-bit-nth-msf"></a><h3>g_bit_nth_msf ()</h3>
|
1254
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_bit_nth_msf (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> mask</code></em>,
|
1255
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> nth_bit</code></em>);</pre>
|
1256
|
-
<p>
|
1257
|
-
Find the position of the first bit set in <em class="parameter"><code>mask</code></em>, searching from (but not
|
1258
|
-
including) <em class="parameter"><code>nth_bit</code></em> downwards. Bits are numbered from 0 (least significant)
|
1259
|
-
to sizeof(<a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a>) * 8 - 1 (31 or 63, usually). To start searching from the
|
1260
|
-
last bit, set <em class="parameter"><code>nth_bit</code></em> to -1 or GLIB_SIZEOF_LONG * 8.
|
1261
|
-
</p>
|
1262
|
-
<div class="variablelist"><table border="0">
|
1263
|
-
<col align="left" valign="top">
|
1264
|
-
<tbody>
|
1265
|
-
<tr>
|
1266
|
-
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
|
1267
|
-
<td>a <a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> containing flags.
|
1268
|
-
</td>
|
1269
|
-
</tr>
|
1270
|
-
<tr>
|
1271
|
-
<td><p><span class="term"><em class="parameter"><code>nth_bit</code></em> :</span></p></td>
|
1272
|
-
<td>the index of the bit to start the search from.
|
1273
|
-
</td>
|
1274
|
-
</tr>
|
1275
|
-
<tr>
|
1276
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1277
|
-
<td>the index of the first bit set which is lower than <em class="parameter"><code>nth_bit</code></em>.
|
1278
|
-
</td>
|
1279
|
-
</tr>
|
1280
|
-
</tbody>
|
1281
|
-
</table></div>
|
1282
|
-
</div>
|
1283
|
-
<hr>
|
1284
|
-
<div class="refsect2">
|
1285
|
-
<a name="g-bit-storage"></a><h3>g_bit_storage ()</h3>
|
1286
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_bit_storage (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> number</code></em>);</pre>
|
1287
|
-
<p>
|
1288
|
-
Gets the number of bits used to hold <em class="parameter"><code>number</code></em>,
|
1289
|
-
e.g. if <em class="parameter"><code>number</code></em> is 4, 3 bits are needed.
|
1290
|
-
</p>
|
1291
|
-
<div class="variablelist"><table border="0">
|
1292
|
-
<col align="left" valign="top">
|
1293
|
-
<tbody>
|
1294
|
-
<tr>
|
1295
|
-
<td><p><span class="term"><em class="parameter"><code>number</code></em> :</span></p></td>
|
1296
|
-
<td>a guint.
|
1297
|
-
</td>
|
1298
|
-
</tr>
|
1299
|
-
<tr>
|
1300
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1301
|
-
<td>the number of bits used to hold <em class="parameter"><code>number</code></em>.
|
1302
|
-
</td>
|
1303
|
-
</tr>
|
1304
|
-
</tbody>
|
1305
|
-
</table></div>
|
1306
|
-
</div>
|
1307
|
-
<hr>
|
1308
|
-
<div class="refsect2">
|
1309
|
-
<a name="g-spaced-primes-closest"></a><h3>g_spaced_primes_closest ()</h3>
|
1310
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_spaced_primes_closest (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> num</code></em>);</pre>
|
1311
|
-
<p>
|
1312
|
-
Gets the smallest prime number from a built-in array of primes which
|
1313
|
-
is larger than <em class="parameter"><code>num</code></em>. This is used within GLib to calculate the optimum
|
1314
|
-
size of a <a class="link" href="glib-Hash-Tables.html#GHashTable" title="GHashTable"><span class="type">GHashTable</span></a>.
|
1315
|
-
</p>
|
1316
|
-
<p>
|
1317
|
-
The built-in array of primes ranges from 11 to 13845163 such that
|
1318
|
-
each prime is approximately 1.5-2 times the previous prime.
|
1319
|
-
</p>
|
1320
|
-
<div class="variablelist"><table border="0">
|
1321
|
-
<col align="left" valign="top">
|
1322
|
-
<tbody>
|
1323
|
-
<tr>
|
1324
|
-
<td><p><span class="term"><em class="parameter"><code>num</code></em> :</span></p></td>
|
1325
|
-
<td>a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a>.
|
1326
|
-
</td>
|
1327
|
-
</tr>
|
1328
|
-
<tr>
|
1329
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1330
|
-
<td>the smallest prime number from a built-in array of primes which is
|
1331
|
-
larger than <em class="parameter"><code>num</code></em>.
|
1332
|
-
</td>
|
1333
|
-
</tr>
|
1334
|
-
</tbody>
|
1335
|
-
</table></div>
|
1336
|
-
</div>
|
1337
|
-
<hr>
|
1338
|
-
<div class="refsect2">
|
1339
|
-
<a name="g-atexit"></a><h3>g_atexit ()</h3>
|
1340
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_atexit (<em class="parameter"><code><a class="link" href="glib-Miscellaneous-Utility-Functions.html#GVoidFunc" title="GVoidFunc ()"><span class="type">GVoidFunc</span></a> func</code></em>);</pre>
|
1341
|
-
<p>
|
1342
|
-
Specifies a function to be called at normal program termination.
|
1343
|
-
</p>
|
1344
|
-
<p>
|
1345
|
-
Since GLib 2.8.2, on Windows <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()"><code class="function">g_atexit()</code></a> actually is a preprocessor
|
1346
|
-
macro that maps to a call to the <code class="function">atexit()</code> function in the C
|
1347
|
-
library. This means that in case the code that calls <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()"><code class="function">g_atexit()</code></a>,
|
1348
|
-
i.e. <code class="function">atexit()</code>, is in a DLL, the function will be called when the
|
1349
|
-
DLL is detached from the program. This typically makes more sense
|
1350
|
-
than that the function is called when the GLib DLL is detached,
|
1351
|
-
which happened earlier when <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()"><code class="function">g_atexit()</code></a> was a function in the GLib
|
1352
|
-
DLL.
|
1353
|
-
</p>
|
1354
|
-
<p>
|
1355
|
-
The behaviour of <code class="function">atexit()</code> in the context of dynamically loaded
|
1356
|
-
modules is not formally specified and varies wildly.
|
1357
|
-
</p>
|
1358
|
-
<p>
|
1359
|
-
On POSIX systems, calling <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()"><code class="function">g_atexit()</code></a> (or <code class="function">atexit()</code>) in a dynamically
|
1360
|
-
loaded module which is unloaded before the program terminates might
|
1361
|
-
well cause a crash at program exit.
|
1362
|
-
</p>
|
1363
|
-
<p>
|
1364
|
-
Some POSIX systems implement <code class="function">atexit()</code> like Windows, and have each
|
1365
|
-
dynamically loaded module maintain an own atexit chain that is
|
1366
|
-
called when the module is unloaded.
|
1367
|
-
</p>
|
1368
|
-
<p>
|
1369
|
-
On other POSIX systems, before a dynamically loaded module is
|
1370
|
-
unloaded, the registered atexit functions (if any) residing in that
|
1371
|
-
module are called, regardless where the code that registered them
|
1372
|
-
resided. This is presumably the most robust approach.
|
1373
|
-
</p>
|
1374
|
-
<p>
|
1375
|
-
As can be seen from the above, for portability it's best to avoid
|
1376
|
-
calling <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()"><code class="function">g_atexit()</code></a> (or <code class="function">atexit()</code>) except in the main executable of a
|
1377
|
-
program.
|
1378
|
-
</p>
|
1379
|
-
<div class="variablelist"><table border="0">
|
1380
|
-
<col align="left" valign="top">
|
1381
|
-
<tbody><tr>
|
1382
|
-
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
1383
|
-
<td>the function to call on normal program termination.
|
1384
|
-
</td>
|
1385
|
-
</tr></tbody>
|
1386
|
-
</table></div>
|
1387
|
-
</div>
|
1388
|
-
<hr>
|
1389
|
-
<div class="refsect2">
|
1390
|
-
<a name="g-parse-debug-string"></a><h3>g_parse_debug_string ()</h3>
|
1391
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="returnvalue">guint</span></a> g_parse_debug_string (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *string</code></em>,
|
1392
|
-
<em class="parameter"><code>const <a class="link" href="glib-Miscellaneous-Utility-Functions.html#GDebugKey" title="GDebugKey"><span class="type">GDebugKey</span></a> *keys</code></em>,
|
1393
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> nkeys</code></em>);</pre>
|
1394
|
-
<p>
|
1395
|
-
Parses a string containing debugging options
|
1396
|
-
into a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><code class="literal">guint</code></a> containing bit flags. This is used
|
1397
|
-
within GDK and GTK+ to parse the debug options passed on the
|
1398
|
-
command line or through environment variables.
|
1399
|
-
</p>
|
1400
|
-
<p>
|
1401
|
-
If <em class="parameter"><code>string</code></em> is equal to "all", all flags are set. If <em class="parameter"><code>string</code></em>
|
1402
|
-
is equal to "help", all the available keys in <em class="parameter"><code>keys</code></em> are printed
|
1403
|
-
out to standard error.
|
1404
|
-
</p>
|
1405
|
-
<div class="variablelist"><table border="0">
|
1406
|
-
<col align="left" valign="top">
|
1407
|
-
<tbody>
|
1408
|
-
<tr>
|
1409
|
-
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
|
1410
|
-
<td>a list of debug options separated by colons, spaces, or
|
1411
|
-
commas, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
1412
|
-
</td>
|
1413
|
-
</tr>
|
1414
|
-
<tr>
|
1415
|
-
<td><p><span class="term"><em class="parameter"><code>keys</code></em> :</span></p></td>
|
1416
|
-
<td>pointer to an array of <a class="link" href="glib-Miscellaneous-Utility-Functions.html#GDebugKey" title="GDebugKey"><span class="type">GDebugKey</span></a> which associate
|
1417
|
-
strings with bit flags.
|
1418
|
-
</td>
|
1419
|
-
</tr>
|
1420
|
-
<tr>
|
1421
|
-
<td><p><span class="term"><em class="parameter"><code>nkeys</code></em> :</span></p></td>
|
1422
|
-
<td>the number of <a class="link" href="glib-Miscellaneous-Utility-Functions.html#GDebugKey" title="GDebugKey"><span class="type">GDebugKey</span></a>s in the array.
|
1423
|
-
</td>
|
1424
|
-
</tr>
|
1425
|
-
<tr>
|
1426
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1427
|
-
<td> the combined set of bit flags.
|
1428
|
-
</td>
|
1429
|
-
</tr>
|
1430
|
-
</tbody>
|
1431
|
-
</table></div>
|
1432
|
-
</div>
|
1433
|
-
<hr>
|
1434
|
-
<div class="refsect2">
|
1435
|
-
<a name="GDebugKey"></a><h3>GDebugKey</h3>
|
1436
|
-
<pre class="programlisting">typedef struct {
|
1437
|
-
const gchar *key;
|
1438
|
-
guint value;
|
1439
|
-
} GDebugKey;
|
1440
|
-
</pre>
|
1441
|
-
<p>
|
1442
|
-
Associates a string with a bit flag.
|
1443
|
-
Used in <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-parse-debug-string" title="g_parse_debug_string ()"><code class="function">g_parse_debug_string()</code></a>.
|
1444
|
-
</p>
|
1445
|
-
<div class="variablelist"><table border="0">
|
1446
|
-
<col align="left" valign="top">
|
1447
|
-
<tbody>
|
1448
|
-
<tr>
|
1449
|
-
<td><p><span class="term">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GDebugKey.key"></a>key</code></em>;</span></p></td>
|
1450
|
-
<td>the string
|
1451
|
-
</td>
|
1452
|
-
</tr>
|
1453
|
-
<tr>
|
1454
|
-
<td><p><span class="term"><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GDebugKey.value"></a>value</code></em>;</span></p></td>
|
1455
|
-
<td>the flag
|
1456
|
-
</td>
|
1457
|
-
</tr>
|
1458
|
-
</tbody>
|
1459
|
-
</table></div>
|
1460
|
-
</div>
|
1461
|
-
<hr>
|
1462
|
-
<div class="refsect2">
|
1463
|
-
<a name="GVoidFunc"></a><h3>GVoidFunc ()</h3>
|
1464
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*GVoidFunc) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1465
|
-
<p>
|
1466
|
-
Declares a type of function which takes no arguments and has no return value.
|
1467
|
-
It is used to specify the type function passed to <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-atexit" title="g_atexit ()"><code class="function">g_atexit()</code></a>.
|
1468
|
-
</p>
|
1469
|
-
</div>
|
1470
|
-
<hr>
|
1471
|
-
<div class="refsect2">
|
1472
|
-
<a name="GFreeFunc"></a><h3>GFreeFunc ()</h3>
|
1473
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*GFreeFunc) (<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>
|
1474
|
-
<p>
|
1475
|
-
Declares a type of function which takes an arbitrary data pointer argument
|
1476
|
-
and has no return value. It is not currently used in GLib or GTK+.
|
1477
|
-
</p>
|
1478
|
-
<div class="variablelist"><table border="0">
|
1479
|
-
<col align="left" valign="top">
|
1480
|
-
<tbody><tr>
|
1481
|
-
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
1482
|
-
<td>a data pointer.
|
1483
|
-
</td>
|
1484
|
-
</tr></tbody>
|
1485
|
-
</table></div>
|
1486
|
-
</div>
|
1487
|
-
<hr>
|
1488
|
-
<div class="refsect2">
|
1489
|
-
<a name="g-qsort-with-data"></a><h3>g_qsort_with_data ()</h3>
|
1490
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_qsort_with_data (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> pbase</code></em>,
|
1491
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> total_elems</code></em>,
|
1492
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> size</code></em>,
|
1493
|
-
<em class="parameter"><code><a class="link" href="glib-Doubly-Linked-Lists.html#GCompareDataFunc" title="GCompareDataFunc ()"><span class="type">GCompareDataFunc</span></a> compare_func</code></em>,
|
1494
|
-
<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>
|
1495
|
-
<p>
|
1496
|
-
This is just like the standard C <code class="function">qsort()</code> function, but
|
1497
|
-
the comparison routine accepts a user data argument.
|
1498
|
-
</p>
|
1499
|
-
<div class="variablelist"><table border="0">
|
1500
|
-
<col align="left" valign="top">
|
1501
|
-
<tbody>
|
1502
|
-
<tr>
|
1503
|
-
<td><p><span class="term"><em class="parameter"><code>pbase</code></em> :</span></p></td>
|
1504
|
-
<td>start of array to sort
|
1505
|
-
</td>
|
1506
|
-
</tr>
|
1507
|
-
<tr>
|
1508
|
-
<td><p><span class="term"><em class="parameter"><code>total_elems</code></em> :</span></p></td>
|
1509
|
-
<td>elements in the array
|
1510
|
-
</td>
|
1511
|
-
</tr>
|
1512
|
-
<tr>
|
1513
|
-
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1514
|
-
<td>size of each element
|
1515
|
-
</td>
|
1516
|
-
</tr>
|
1517
|
-
<tr>
|
1518
|
-
<td><p><span class="term"><em class="parameter"><code>compare_func</code></em> :</span></p></td>
|
1519
|
-
<td>function to compare elements
|
1520
|
-
</td>
|
1521
|
-
</tr>
|
1522
|
-
<tr>
|
1523
|
-
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
1524
|
-
<td>data to pass to <em class="parameter"><code>compare_func</code></em>
|
1525
|
-
</td>
|
1526
|
-
</tr>
|
1527
|
-
</tbody>
|
1528
|
-
</table></div>
|
1529
|
-
</div>
|
1530
|
-
<hr>
|
1531
|
-
<div class="refsect2">
|
1532
|
-
<a name="g-nullify-pointer"></a><h3>g_nullify_pointer ()</h3>
|
1533
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_nullify_pointer (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> *nullify_location</code></em>);</pre>
|
1534
|
-
<p>
|
1535
|
-
Set the pointer at the specified location to <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
1536
|
-
</p>
|
1537
|
-
<div class="variablelist"><table border="0">
|
1538
|
-
<col align="left" valign="top">
|
1539
|
-
<tbody><tr>
|
1540
|
-
<td><p><span class="term"><em class="parameter"><code>nullify_location</code></em> :</span></p></td>
|
1541
|
-
<td>the memory address of the pointer.
|
1542
|
-
</td>
|
1543
|
-
</tr></tbody>
|
1544
|
-
</table></div>
|
1545
|
-
</div>
|
1546
|
-
</div>
|
1547
|
-
</div>
|
1548
|
-
<div class="footer">
|
1549
|
-
<hr>
|
1550
|
-
Generated by GTK-Doc V1.15.1</div>
|
1551
|
-
</body>
|
1552
|
-
</html>
|