glib2 0.90.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +3115 -0
- data/README +40 -0
- data/Rakefile +69 -0
- data/ext/glib2/depend +10 -0
- data/ext/glib2/extconf.rb +61 -0
- data/ext/glib2/glib2.def +89 -0
- data/ext/glib2/rbgcompat.h +30 -0
- data/ext/glib2/rbglib.c +330 -0
- data/ext/glib2/rbglib.h +96 -0
- data/ext/glib2/rbglib_bookmarkfile.c +595 -0
- data/ext/glib2/rbglib_completion.c +192 -0
- data/ext/glib2/rbglib_convert.c +195 -0
- data/ext/glib2/rbglib_error.c +95 -0
- data/ext/glib2/rbglib_fileutils.c +83 -0
- data/ext/glib2/rbglib_i18n.c +44 -0
- data/ext/glib2/rbglib_int64.c +157 -0
- data/ext/glib2/rbglib_iochannel.c +883 -0
- data/ext/glib2/rbglib_keyfile.c +846 -0
- data/ext/glib2/rbglib_maincontext.c +915 -0
- data/ext/glib2/rbglib_mainloop.c +87 -0
- data/ext/glib2/rbglib_messages.c +150 -0
- data/ext/glib2/rbglib_pollfd.c +111 -0
- data/ext/glib2/rbglib_shell.c +68 -0
- data/ext/glib2/rbglib_source.c +190 -0
- data/ext/glib2/rbglib_spawn.c +345 -0
- data/ext/glib2/rbglib_threads.c +51 -0
- data/ext/glib2/rbglib_timer.c +127 -0
- data/ext/glib2/rbglib_unicode.c +611 -0
- data/ext/glib2/rbglib_utils.c +386 -0
- data/ext/glib2/rbglib_win32.c +136 -0
- data/ext/glib2/rbgobj_boxed.c +251 -0
- data/ext/glib2/rbgobj_closure.c +337 -0
- data/ext/glib2/rbgobj_convert.c +167 -0
- data/ext/glib2/rbgobj_enums.c +961 -0
- data/ext/glib2/rbgobj_fundamental.c +30 -0
- data/ext/glib2/rbgobj_object.c +892 -0
- data/ext/glib2/rbgobj_param.c +390 -0
- data/ext/glib2/rbgobj_paramspecs.c +305 -0
- data/ext/glib2/rbgobj_signal.c +963 -0
- data/ext/glib2/rbgobj_strv.c +61 -0
- data/ext/glib2/rbgobj_type.c +851 -0
- data/ext/glib2/rbgobj_typeinstance.c +121 -0
- data/ext/glib2/rbgobj_typeinterface.c +148 -0
- data/ext/glib2/rbgobj_typemodule.c +66 -0
- data/ext/glib2/rbgobj_typeplugin.c +49 -0
- data/ext/glib2/rbgobj_value.c +313 -0
- data/ext/glib2/rbgobj_valuearray.c +59 -0
- data/ext/glib2/rbgobj_valuetypes.c +298 -0
- data/ext/glib2/rbgobject.c +406 -0
- data/ext/glib2/rbgobject.h +265 -0
- data/ext/glib2/rbgprivate.h +88 -0
- data/ext/glib2/rbgutil.c +316 -0
- data/ext/glib2/rbgutil.h +82 -0
- data/ext/glib2/rbgutil_callback.c +231 -0
- data/extconf.rb +49 -0
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib-mkenums.rb +199 -0
- data/lib/glib2.rb +239 -0
- data/lib/gnome2-win32-binary-downloader.rb +92 -0
- data/lib/mkmf-gnome2.rb +377 -0
- data/sample/bookmarkfile.rb +66 -0
- data/sample/completion.rb +45 -0
- data/sample/idle.rb +41 -0
- data/sample/iochannel.rb +44 -0
- data/sample/keyfile.rb +62 -0
- data/sample/shell.rb +36 -0
- data/sample/spawn.rb +25 -0
- data/sample/timeout.rb +28 -0
- data/sample/timeout2.rb +35 -0
- data/sample/timer.rb +40 -0
- data/sample/type-register.rb +103 -0
- data/sample/type-register2.rb +104 -0
- data/sample/utils.rb +54 -0
- data/test/glib-test-init.rb +6 -0
- data/test/glib-test-utils.rb +12 -0
- data/test/run-test.rb +21 -0
- data/test/test_enum.rb +99 -0
- data/test/test_file_utils.rb +15 -0
- data/test/test_glib2.rb +120 -0
- data/test/test_iochannel.rb +275 -0
- data/test/test_key_file.rb +38 -0
- data/test/test_mkenums.rb +25 -0
- data/test/test_signal.rb +20 -0
- data/test/test_timeout.rb +28 -0
- data/test/test_unicode.rb +369 -0
- data/test/test_utils.rb +37 -0
- data/test/test_win32.rb +13 -0
- data/test-unit/COPYING +56 -0
- data/test-unit/GPL +340 -0
- data/test-unit/History.txt +232 -0
- data/test-unit/Manifest.txt +110 -0
- data/test-unit/PSFL +271 -0
- data/test-unit/README.txt +75 -0
- data/test-unit/Rakefile +53 -0
- data/test-unit/TODO +5 -0
- data/test-unit/bin/testrb +5 -0
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +153 -0
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +469 -0
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +82 -0
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +393 -0
- data/test-unit/html/index.html +247 -0
- data/test-unit/html/index.html.ja +270 -0
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +636 -0
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +483 -0
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +339 -0
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +559 -0
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit/assertionfailederror.rb +25 -0
- data/test-unit/lib/test/unit/assertions.rb +1334 -0
- data/test-unit/lib/test/unit/attribute.rb +125 -0
- data/test-unit/lib/test/unit/autorunner.rb +363 -0
- data/test-unit/lib/test/unit/collector/descendant.rb +23 -0
- data/test-unit/lib/test/unit/collector/dir.rb +108 -0
- data/test-unit/lib/test/unit/collector/load.rb +144 -0
- data/test-unit/lib/test/unit/collector/objectspace.rb +34 -0
- data/test-unit/lib/test/unit/collector.rb +36 -0
- data/test-unit/lib/test/unit/color-scheme.rb +106 -0
- data/test-unit/lib/test/unit/color.rb +96 -0
- data/test-unit/lib/test/unit/diff.rb +740 -0
- data/test-unit/lib/test/unit/error.rb +130 -0
- data/test-unit/lib/test/unit/exceptionhandler.rb +39 -0
- data/test-unit/lib/test/unit/failure.rb +136 -0
- data/test-unit/lib/test/unit/fixture.rb +176 -0
- data/test-unit/lib/test/unit/notification.rb +129 -0
- data/test-unit/lib/test/unit/omission.rb +191 -0
- data/test-unit/lib/test/unit/pending.rb +150 -0
- data/test-unit/lib/test/unit/priority.rb +180 -0
- data/test-unit/lib/test/unit/runner/console.rb +52 -0
- data/test-unit/lib/test/unit/runner/emacs.rb +8 -0
- data/test-unit/lib/test/unit/runner/tap.rb +8 -0
- data/test-unit/lib/test/unit/testcase.rb +483 -0
- data/test-unit/lib/test/unit/testresult.rb +121 -0
- data/test-unit/lib/test/unit/testsuite.rb +110 -0
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +14 -0
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +430 -0
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +63 -0
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +82 -0
- data/test-unit/lib/test/unit/ui/testrunner.rb +53 -0
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +77 -0
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +41 -0
- data/test-unit/lib/test/unit/util/backtracefilter.rb +42 -0
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/test-unit/lib/test/unit/util/observable.rb +90 -0
- data/test-unit/lib/test/unit/util/output.rb +31 -0
- data/test-unit/lib/test/unit/util/procwrapper.rb +48 -0
- data/test-unit/lib/test/unit/version.rb +7 -0
- data/test-unit/lib/test/unit.rb +328 -0
- data/test-unit/sample/adder.rb +13 -0
- data/test-unit/sample/subtracter.rb +12 -0
- data/test-unit/sample/test_adder.rb +20 -0
- data/test-unit/sample/test_subtracter.rb +20 -0
- data/test-unit/sample/test_user.rb +23 -0
- data/test-unit/test/collector/test-descendant.rb +133 -0
- data/test-unit/test/collector/test-load.rb +442 -0
- data/test-unit/test/collector/test_dir.rb +406 -0
- data/test-unit/test/collector/test_objectspace.rb +100 -0
- data/test-unit/test/run-test.rb +15 -0
- data/test-unit/test/test-attribute.rb +86 -0
- data/test-unit/test/test-color-scheme.rb +69 -0
- data/test-unit/test/test-color.rb +47 -0
- data/test-unit/test/test-diff.rb +518 -0
- data/test-unit/test/test-emacs-runner.rb +60 -0
- data/test-unit/test/test-fixture.rb +287 -0
- data/test-unit/test/test-notification.rb +33 -0
- data/test-unit/test/test-omission.rb +81 -0
- data/test-unit/test/test-pending.rb +70 -0
- data/test-unit/test/test-priority.rb +119 -0
- data/test-unit/test/test-testcase.rb +544 -0
- data/test-unit/test/test_assertions.rb +1197 -0
- data/test-unit/test/test_error.rb +26 -0
- data/test-unit/test/test_failure.rb +33 -0
- data/test-unit/test/test_testresult.rb +113 -0
- data/test-unit/test/test_testsuite.rb +129 -0
- data/test-unit/test/testunit-test-util.rb +14 -0
- data/test-unit/test/ui/test_tap.rb +33 -0
- data/test-unit/test/ui/test_testrunmediator.rb +20 -0
- data/test-unit/test/util/test-method-owner-finder.rb +38 -0
- data/test-unit/test/util/test-output.rb +11 -0
- data/test-unit/test/util/test_backtracefilter.rb +41 -0
- data/test-unit/test/util/test_observable.rb +102 -0
- data/test-unit/test/util/test_procwrapper.rb +36 -0
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +123 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +188 -0
- data/vendor/local/bin/glib-mkenums +511 -0
- 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 +66 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +237 -0
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +119 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +73 -0
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +82 -0
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +103 -0
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +60 -0
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +57 -0
- data/vendor/local/include/glib-2.0/gio/gconverter.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +80 -0
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +80 -0
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +133 -0
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +116 -0
- data/vendor/local/include/glib-2.0/gio/gdrive.h +225 -0
- data/vendor/local/include/glib-2.0/gio/gemblem.h +58 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +62 -0
- data/vendor/local/include/glib-2.0/gio/gfile.h +1017 -0
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +77 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +133 -0
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +56 -0
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +951 -0
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +112 -0
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +119 -0
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gicon.h +91 -0
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +103 -0
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +69 -0
- data/vendor/local/include/glib-2.0/gio/ginitable.h +96 -0
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +172 -0
- data/vendor/local/include/glib-2.0/gio/gio.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +703 -0
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +79 -0
- data/vendor/local/include/glib-2.0/gio/gioerror.h +48 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +132 -0
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +52 -0
- data/vendor/local/include/glib-2.0/gio/giostream.h +112 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +339 -0
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +97 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +82 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +97 -0
- data/vendor/local/include/glib-2.0/gio/gmount.h +242 -0
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +62 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +69 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +69 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +207 -0
- data/vendor/local/include/glib-2.0/gio/gresolver.h +167 -0
- data/vendor/local/include/glib-2.0/gio/gseekable.h +99 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +125 -0
- data/vendor/local/include/glib-2.0/gio/gsocket.h +176 -0
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +79 -0
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +89 -0
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +130 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +105 -0
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +138 -0
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +88 -0
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +52 -0
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +63 -0
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +81 -0
- data/vendor/local/include/glib-2.0/gio/gvfs.h +125 -0
- data/vendor/local/include/glib-2.0/gio/gvolume.h +211 -0
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +55 -0
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +54 -0
- data/vendor/local/include/glib-2.0/glib/galloca.h +63 -0
- data/vendor/local/include/glib-2.0/glib/garray.h +179 -0
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +120 -0
- data/vendor/local/include/glib-2.0/glib/gatomic.h +85 -0
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +68 -0
- data/vendor/local/include/glib-2.0/glib/gbase64.h +57 -0
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +43 -0
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +191 -0
- data/vendor/local/include/glib-2.0/glib/gcache.h +69 -0
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +86 -0
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +77 -0
- data/vendor/local/include/glib-2.0/glib/gconvert.h +138 -0
- data/vendor/local/include/glib-2.0/glib/gdataset.h +122 -0
- data/vendor/local/include/glib-2.0/glib/gdate.h +263 -0
- data/vendor/local/include/glib-2.0/glib/gdir.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gerror.h +98 -0
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +128 -0
- data/vendor/local/include/glib-2.0/glib/ghash.h +166 -0
- data/vendor/local/include/glib-2.0/glib/ghook.h +181 -0
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +40 -0
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +38 -0
- data/vendor/local/include/glib-2.0/glib/gi18n.h +34 -0
- data/vendor/local/include/glib-2.0/glib/giochannel.h +366 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +250 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +120 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +277 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +304 -0
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +49 -0
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +163 -0
- data/vendor/local/include/glib-2.0/glib/gmem.h +203 -0
- data/vendor/local/include/glib-2.0/glib/gmessages.h +343 -0
- data/vendor/local/include/glib-2.0/glib/gnode.h +288 -0
- data/vendor/local/include/glib-2.0/glib/goption.h +370 -0
- data/vendor/local/include/glib-2.0/glib/gpattern.h +49 -0
- data/vendor/local/include/glib-2.0/glib/gpoll.h +93 -0
- data/vendor/local/include/glib-2.0/glib/gprimes.h +51 -0
- data/vendor/local/include/glib-2.0/glib/gprintf.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gqsort.h +46 -0
- data/vendor/local/include/glib-2.0/glib/gquark.h +52 -0
- data/vendor/local/include/glib-2.0/glib/gqueue.h +127 -0
- data/vendor/local/include/glib-2.0/glib/grand.h +85 -0
- data/vendor/local/include/glib-2.0/glib/gregex.h +243 -0
- data/vendor/local/include/glib-2.0/glib/grel.h +97 -0
- data/vendor/local/include/glib-2.0/glib/gscanner.h +278 -0
- data/vendor/local/include/glib-2.0/glib/gsequence.h +128 -0
- data/vendor/local/include/glib-2.0/glib/gshell.h +55 -0
- data/vendor/local/include/glib-2.0/glib/gslice.h +86 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +114 -0
- data/vendor/local/include/glib-2.0/glib/gspawn.h +139 -0
- data/vendor/local/include/glib-2.0/glib/gstdio.h +159 -0
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +267 -0
- data/vendor/local/include/glib-2.0/glib/gstring.h +178 -0
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +292 -0
- data/vendor/local/include/glib-2.0/glib/gthread.h +408 -0
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +114 -0
- data/vendor/local/include/glib-2.0/glib/gtimer.h +65 -0
- data/vendor/local/include/glib-2.0/glib/gtree.h +91 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +451 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +404 -0
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +81 -0
- data/vendor/local/include/glib-2.0/glib/gutils.h +490 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +224 -0
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +305 -0
- data/vendor/local/include/glib-2.0/glib/gwin32.h +114 -0
- data/vendor/local/include/glib-2.0/glib-object.h +41 -0
- data/vendor/local/include/glib-2.0/glib.h +97 -0
- data/vendor/local/include/glib-2.0/gmodule.h +101 -0
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +236 -0
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +251 -0
- data/vendor/local/include/glib-2.0/gobject/genums.h +261 -0
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +169 -0
- data/vendor/local/include/glib-2.0/gobject/gobject.h +562 -0
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +166 -0
- data/vendor/local/include/glib-2.0/gobject/gparam.h +410 -0
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +1083 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +509 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +51 -0
- data/vendor/local/include/glib-2.0/gobject/gtype.h +1608 -0
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +263 -0
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +134 -0
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +159 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +77 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +222 -0
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +243 -0
- data/vendor/local/include/libintl.h +464 -0
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +800 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +284 -0
- data/vendor/local/lib/glib-2.0.def +1381 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/gmodule-2.0.def +11 -0
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +349 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +3 -0
- 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 +31 -0
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +14 -0
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +11 -0
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +11 -0
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +81 -0
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +3 -0
- data/vendor/local/manifest/glib-dev_2.24.2-2_win32.mft +491 -0
- data/vendor/local/manifest/glib_2.24.2-2_win32.mft +101 -0
- data/vendor/local/share/aclocal/glib-2.0.m4 +211 -0
- data/vendor/local/share/aclocal/glib-gettext.m4 +432 -0
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +165 -0
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +160 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +8 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +305 -0
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +356 -0
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +11 -0
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +10 -0
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +6 -0
- data/vendor/local/share/doc/gettext/envsubst.1.html +213 -0
- data/vendor/local/share/doc/gettext/gettext.1.html +266 -0
- data/vendor/local/share/doc/gettext/gettext.3.html +186 -0
- data/vendor/local/share/doc/gettext/ngettext.1.html +280 -0
- data/vendor/local/share/doc/gettext/ngettext.3.html +143 -0
- data/vendor/local/share/doc/gettext/textdomain.3.html +150 -0
- data/vendor/local/share/doc/glib-2.24.2/COPYING +482 -0
- data/vendor/local/share/doc/glib-dev-2.24.2/COPYING +482 -0
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +174 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +252 -0
- data/vendor/local/share/glib-2.0/gdb/gobject.py +305 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +111 -0
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +277 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +1390 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +531 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +343 -0
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +568 -0
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +295 -0
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +620 -0
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +245 -0
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +388 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +993 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +544 -0
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +1416 -0
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +272 -0
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +206 -0
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +7450 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +115 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +520 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +312 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +155 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +3116 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +262 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +353 -0
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +217 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +182 -0
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +183 -0
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +261 -0
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +479 -0
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +331 -0
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +717 -0
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +195 -0
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +388 -0
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +808 -0
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +185 -0
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +362 -0
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +1465 -0
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +848 -0
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +263 -0
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +248 -0
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +1006 -0
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +787 -0
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +350 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +979 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +2152 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +297 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +930 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +548 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +274 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +741 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +258 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +377 -0
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +197 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +381 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +280 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +237 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +237 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +306 -0
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +274 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1028 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +709 -0
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +180 -0
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +128 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +153 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +155 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +1088 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +206 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +97 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4499 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +171 -0
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +45 -0
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +80 -0
- data/vendor/local/share/gtk-doc/html/gio/ch19.html +75 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20.html +217 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20s02.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/ch20s03.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +96 -0
- data/vendor/local/share/gtk-doc/html/gio/extending.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +38 -0
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +33 -0
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +465 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +381 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +163 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +163 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +927 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +328 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +297 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +313 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +918 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +107 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +1235 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +1384 -0
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +47 -0
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/index.html +318 -0
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +1795 -0
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +42 -0
- data/vendor/local/share/gtk-doc/html/gio/networking.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +293 -0
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +47 -0
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +92 -0
- data/vendor/local/share/gtk-doc/html/gio/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/gio/types.html +41 -0
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +33 -0
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +47 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +180 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +312 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +563 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +362 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +102 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +124 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +83 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +194 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +419 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +389 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +413 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +158 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +340 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +7835 -0
- 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 +893 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +818 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +413 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +430 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +802 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +372 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +500 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +2054 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +560 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +1686 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +398 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +1187 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +1665 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +460 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +528 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +2042 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +1278 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +1406 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +548 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +1023 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +1810 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +3798 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +1815 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +295 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +1512 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +1367 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +229 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +629 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +2196 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +2556 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +612 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +1451 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +389 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +1029 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +141 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +706 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +510 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +703 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +1045 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +1523 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +1466 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +204 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +2648 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +752 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +269 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +578 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +483 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +1353 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +238 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +1283 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +1212 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +924 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +466 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +301 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2947 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +1290 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +1719 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +3379 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +606 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +3411 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +245 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +188 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +263 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +314 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +3356 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +150 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +438 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +476 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +438 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +159 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +118 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +64 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +160 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +120 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +59 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +93 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +2395 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +121 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +302 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +2084 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +2556 -0
- data/vendor/local/share/gtk-doc/html/glib/glib.html +80 -0
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +72 -0
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +131 -0
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +1171 -0
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +336 -0
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +2717 -0
- 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 +257 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +41 -0
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +710 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +453 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +85 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +51 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +46 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +38 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +46 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +72 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +178 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +42 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +42 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +50 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +2577 -0
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +136 -0
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +113 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +293 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +263 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +92 -0
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +214 -0
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +355 -0
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +295 -0
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +406 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +2355 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +847 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +1423 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +776 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +2741 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +5242 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +2609 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +4227 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +413 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +230 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +234 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +270 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +117 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +723 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +757 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +143 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +287 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +316 -0
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +76 -0
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +100 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +86 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +113 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +122 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +257 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +283 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +125 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +167 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +160 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +121 -0
- data/vendor/local/share/gtk-doc/html/gobject/index.html +187 -0
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +734 -0
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +72 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +80 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +66 -0
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +82 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +377 -0
- data/vendor/local/share/gtk-doc/html/gobject/style.css +257 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +35 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +40 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +63 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +55 -0
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +43 -0
- 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/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 +77 -0
- 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 +54 -0
- data/vendor/local/share/man/man1/gettext.1 +69 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +307 -0
- data/vendor/local/share/man/man1/glib-mkenums.1 +234 -0
- data/vendor/local/share/man/man1/gobject-query.1 +83 -0
- data/vendor/local/share/man/man1/ngettext.1 +68 -0
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +72 -0
- data/vendor/local/share/man/man3/bindtextdomain.3 +69 -0
- data/vendor/local/share/man/man3/dcgettext.3 +1 -0
- data/vendor/local/share/man/man3/dcngettext.3 +1 -0
- data/vendor/local/share/man/man3/dgettext.3 +1 -0
- data/vendor/local/share/man/man3/dngettext.3 +1 -0
- data/vendor/local/share/man/man3/gettext.3 +99 -0
- data/vendor/local/share/man/man3/ngettext.3 +60 -0
- data/vendor/local/share/man/man3/textdomain.3 +57 -0
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +10423 -0
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +457 -0
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.log +2602 -0
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +290 -0
- metadata +940 -0
@@ -0,0 +1,1523 @@
|
|
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.14 (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" title="Miscellaneous Utility Functions">
|
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" title="Synopsis">
|
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" title="Description">
|
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" title="Details">
|
120
|
+
<a name="glib-Miscellaneous-Utility-Functions.details"></a><h2>Details</h2>
|
121
|
+
<div class="refsect2" title="g_get_application_name ()">
|
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" title="g_set_application_name ()">
|
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 <code class="function">gtk_init()</code>,
|
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" title="g_get_prgname ()">
|
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 <code class="function">gdk_init()</code>,
|
181
|
+
which is called by <code class="function">gtk_init()</code>. 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" title="g_set_prgname ()">
|
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" title="g_getenv ()">
|
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" title="g_setenv ()">
|
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" title="g_unsetenv ()">
|
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" title="g_listenv ()">
|
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" title="g_get_user_name ()">
|
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" title="g_get_real_name ()">
|
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" title="g_get_user_cache_dir ()">
|
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
|
+
</p>
|
388
|
+
<div class="variablelist"><table border="0">
|
389
|
+
<col align="left" valign="top">
|
390
|
+
<tbody><tr>
|
391
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
392
|
+
<td> a string owned by GLib that must not be modified
|
393
|
+
or freed.
|
394
|
+
</td>
|
395
|
+
</tr></tbody>
|
396
|
+
</table></div>
|
397
|
+
<p class="since">Since 2.6</p>
|
398
|
+
</div>
|
399
|
+
<hr>
|
400
|
+
<div class="refsect2" title="g_get_user_data_dir ()">
|
401
|
+
<a name="g-get-user-data-dir"></a><h3>g_get_user_data_dir ()</h3>
|
402
|
+
<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>
|
403
|
+
<p>
|
404
|
+
Returns a base directory in which to access application data such
|
405
|
+
as icons that is customized for a particular user.
|
406
|
+
</p>
|
407
|
+
<p>
|
408
|
+
On UNIX platforms this is determined using the mechanisms described in
|
409
|
+
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
410
|
+
XDG Base Directory Specification</a>
|
411
|
+
</p>
|
412
|
+
<div class="variablelist"><table border="0">
|
413
|
+
<col align="left" valign="top">
|
414
|
+
<tbody><tr>
|
415
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
416
|
+
<td> a string owned by GLib that must not be modified
|
417
|
+
or freed.
|
418
|
+
</td>
|
419
|
+
</tr></tbody>
|
420
|
+
</table></div>
|
421
|
+
<p class="since">Since 2.6</p>
|
422
|
+
</div>
|
423
|
+
<hr>
|
424
|
+
<div class="refsect2" title="g_get_user_config_dir ()">
|
425
|
+
<a name="g-get-user-config-dir"></a><h3>g_get_user_config_dir ()</h3>
|
426
|
+
<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>
|
427
|
+
<p>
|
428
|
+
Returns a base directory in which to store user-specific application
|
429
|
+
configuration information such as user preferences and settings.
|
430
|
+
</p>
|
431
|
+
<p>
|
432
|
+
On UNIX platforms this is determined using the mechanisms described in
|
433
|
+
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
434
|
+
XDG Base Directory Specification</a>
|
435
|
+
</p>
|
436
|
+
<div class="variablelist"><table border="0">
|
437
|
+
<col align="left" valign="top">
|
438
|
+
<tbody><tr>
|
439
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
440
|
+
<td> a string owned by GLib that must not be modified
|
441
|
+
or freed.
|
442
|
+
</td>
|
443
|
+
</tr></tbody>
|
444
|
+
</table></div>
|
445
|
+
<p class="since">Since 2.6</p>
|
446
|
+
</div>
|
447
|
+
<hr>
|
448
|
+
<div class="refsect2" title="enum GUserDirectory">
|
449
|
+
<a name="GUserDirectory"></a><h3>enum GUserDirectory</h3>
|
450
|
+
<pre class="programlisting">typedef enum {
|
451
|
+
G_USER_DIRECTORY_DESKTOP,
|
452
|
+
G_USER_DIRECTORY_DOCUMENTS,
|
453
|
+
G_USER_DIRECTORY_DOWNLOAD,
|
454
|
+
G_USER_DIRECTORY_MUSIC,
|
455
|
+
G_USER_DIRECTORY_PICTURES,
|
456
|
+
G_USER_DIRECTORY_PUBLIC_SHARE,
|
457
|
+
G_USER_DIRECTORY_TEMPLATES,
|
458
|
+
G_USER_DIRECTORY_VIDEOS,
|
459
|
+
|
460
|
+
G_USER_N_DIRECTORIES
|
461
|
+
} GUserDirectory;
|
462
|
+
</pre>
|
463
|
+
<p>
|
464
|
+
These are logical ids for special directories which are defined
|
465
|
+
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>
|
466
|
+
to retrieve the full path associated to the logical id.
|
467
|
+
</p>
|
468
|
+
<p>
|
469
|
+
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
|
470
|
+
every platform has a directory for every logical id in this
|
471
|
+
enumeration.
|
472
|
+
</p>
|
473
|
+
<div class="variablelist"><table border="0">
|
474
|
+
<col align="left" valign="top">
|
475
|
+
<tbody>
|
476
|
+
<tr>
|
477
|
+
<td><p><a name="G-USER-DIRECTORY-DESKTOP:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_DESKTOP</code></span></p></td>
|
478
|
+
<td>the user's Desktop directory
|
479
|
+
</td>
|
480
|
+
</tr>
|
481
|
+
<tr>
|
482
|
+
<td><p><a name="G-USER-DIRECTORY-DOCUMENTS:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_DOCUMENTS</code></span></p></td>
|
483
|
+
<td>the user's Documents directory
|
484
|
+
</td>
|
485
|
+
</tr>
|
486
|
+
<tr>
|
487
|
+
<td><p><a name="G-USER-DIRECTORY-DOWNLOAD:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_DOWNLOAD</code></span></p></td>
|
488
|
+
<td>the user's Downloads directory
|
489
|
+
</td>
|
490
|
+
</tr>
|
491
|
+
<tr>
|
492
|
+
<td><p><a name="G-USER-DIRECTORY-MUSIC:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_MUSIC</code></span></p></td>
|
493
|
+
<td>the user's Music directory
|
494
|
+
</td>
|
495
|
+
</tr>
|
496
|
+
<tr>
|
497
|
+
<td><p><a name="G-USER-DIRECTORY-PICTURES:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_PICTURES</code></span></p></td>
|
498
|
+
<td>the user's Pictures directory
|
499
|
+
</td>
|
500
|
+
</tr>
|
501
|
+
<tr>
|
502
|
+
<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>
|
503
|
+
<td>the user's shared directory
|
504
|
+
</td>
|
505
|
+
</tr>
|
506
|
+
<tr>
|
507
|
+
<td><p><a name="G-USER-DIRECTORY-TEMPLATES:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_TEMPLATES</code></span></p></td>
|
508
|
+
<td>the user's Templates directory
|
509
|
+
</td>
|
510
|
+
</tr>
|
511
|
+
<tr>
|
512
|
+
<td><p><a name="G-USER-DIRECTORY-VIDEOS:CAPS"></a><span class="term"><code class="literal">G_USER_DIRECTORY_VIDEOS</code></span></p></td>
|
513
|
+
<td>the user's Movies directory
|
514
|
+
</td>
|
515
|
+
</tr>
|
516
|
+
<tr>
|
517
|
+
<td><p><a name="G-USER-N-DIRECTORIES:CAPS"></a><span class="term"><code class="literal">G_USER_N_DIRECTORIES</code></span></p></td>
|
518
|
+
<td>the number of enum values
|
519
|
+
</td>
|
520
|
+
</tr>
|
521
|
+
</tbody>
|
522
|
+
</table></div>
|
523
|
+
<p class="since">Since 2.14</p>
|
524
|
+
</div>
|
525
|
+
<hr>
|
526
|
+
<div class="refsect2" title="g_get_user_special_dir ()">
|
527
|
+
<a name="g-get-user-special-dir"></a><h3>g_get_user_special_dir ()</h3>
|
528
|
+
<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>
|
529
|
+
<p>
|
530
|
+
Returns the full path of a special directory using its logical id.
|
531
|
+
</p>
|
532
|
+
<p>
|
533
|
+
On Unix this is done using the XDG special user directories.
|
534
|
+
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>
|
535
|
+
falls back to <code class="filename">$HOME/Desktop</code> when XDG special
|
536
|
+
user directories have not been set up.
|
537
|
+
</p>
|
538
|
+
<p>
|
539
|
+
Depending on the platform, the user might be able to change the path
|
540
|
+
of the special directory without requiring the session to restart; GLib
|
541
|
+
will not reflect any change once the special directories are loaded.
|
542
|
+
</p>
|
543
|
+
<div class="variablelist"><table border="0">
|
544
|
+
<col align="left" valign="top">
|
545
|
+
<tbody>
|
546
|
+
<tr>
|
547
|
+
<td><p><span class="term"><em class="parameter"><code>directory</code></em> :</span></p></td>
|
548
|
+
<td>the logical id of special directory
|
549
|
+
</td>
|
550
|
+
</tr>
|
551
|
+
<tr>
|
552
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
553
|
+
<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>
|
554
|
+
if the logical id was not found. The returned string is owned by
|
555
|
+
GLib and should not be modified or freed.
|
556
|
+
|
557
|
+
</td>
|
558
|
+
</tr>
|
559
|
+
</tbody>
|
560
|
+
</table></div>
|
561
|
+
<p class="since">Since 2.14</p>
|
562
|
+
</div>
|
563
|
+
<hr>
|
564
|
+
<div class="refsect2" title="g_get_system_data_dirs ()">
|
565
|
+
<a name="g-get-system-data-dirs"></a><h3>g_get_system_data_dirs ()</h3>
|
566
|
+
<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>
|
567
|
+
<p>
|
568
|
+
Returns an ordered list of base directories in which to access
|
569
|
+
system-wide application data.
|
570
|
+
</p>
|
571
|
+
<p>
|
572
|
+
On UNIX platforms this is determined using the mechanisms described in
|
573
|
+
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
574
|
+
XDG Base Directory Specification</a>
|
575
|
+
</p>
|
576
|
+
<p>
|
577
|
+
On Windows the first elements in the list are the Application Data
|
578
|
+
and Documents folders for All Users. (These can be determined only
|
579
|
+
on Windows 2000 or later and are not present in the list on other
|
580
|
+
Windows versions.) See documentation for CSIDL_COMMON_APPDATA and
|
581
|
+
CSIDL_COMMON_DOCUMENTS.
|
582
|
+
</p>
|
583
|
+
<p>
|
584
|
+
Then follows the "share" subfolder in the installation folder for
|
585
|
+
the package containing the DLL that calls this function, if it can
|
586
|
+
be determined.
|
587
|
+
</p>
|
588
|
+
<p>
|
589
|
+
Finally the list contains the "share" subfolder in the installation
|
590
|
+
folder for GLib, and in the installation folder for the package the
|
591
|
+
application's .exe file belongs to.
|
592
|
+
</p>
|
593
|
+
<p>
|
594
|
+
The installation folders above are determined by looking up the
|
595
|
+
folder where the module (DLL or EXE) in question is located. If the
|
596
|
+
folder's name is "bin", its parent is used, otherwise the folder
|
597
|
+
itself.
|
598
|
+
</p>
|
599
|
+
<p>
|
600
|
+
Note that on Windows the returned list can vary depending on where
|
601
|
+
this function is called.
|
602
|
+
</p>
|
603
|
+
<div class="variablelist"><table border="0">
|
604
|
+
<col align="left" valign="top">
|
605
|
+
<tbody><tr>
|
606
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
607
|
+
<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
|
608
|
+
not be modified or freed.
|
609
|
+
</td>
|
610
|
+
</tr></tbody>
|
611
|
+
</table></div>
|
612
|
+
<p class="since">Since 2.6</p>
|
613
|
+
</div>
|
614
|
+
<hr>
|
615
|
+
<div class="refsect2" title="g_get_system_config_dirs ()">
|
616
|
+
<a name="g-get-system-config-dirs"></a><h3>g_get_system_config_dirs ()</h3>
|
617
|
+
<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>
|
618
|
+
<p>
|
619
|
+
Returns an ordered list of base directories in which to access
|
620
|
+
system-wide configuration information.
|
621
|
+
</p>
|
622
|
+
<p>
|
623
|
+
On UNIX platforms this is determined using the mechanisms described in
|
624
|
+
the <a class="ulink" href="http://www.freedesktop.org/Standards/basedir-spec" target="_top">
|
625
|
+
XDG Base Directory Specification</a>
|
626
|
+
</p>
|
627
|
+
<div class="variablelist"><table border="0">
|
628
|
+
<col align="left" valign="top">
|
629
|
+
<tbody><tr>
|
630
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
631
|
+
<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
|
632
|
+
not be modified or freed.
|
633
|
+
</td>
|
634
|
+
</tr></tbody>
|
635
|
+
</table></div>
|
636
|
+
<p class="since">Since 2.6</p>
|
637
|
+
</div>
|
638
|
+
<hr>
|
639
|
+
<div class="refsect2" title="g_reload_user_special_dirs_cache ()">
|
640
|
+
<a name="g-reload-user-special-dirs-cache"></a><h3>g_reload_user_special_dirs_cache ()</h3>
|
641
|
+
<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>
|
642
|
+
<p>
|
643
|
+
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
|
644
|
+
that the latest on-disk version is used. Call this only
|
645
|
+
if you just changed the data on disk yourself.
|
646
|
+
</p>
|
647
|
+
<p>
|
648
|
+
Due to threadsafety issues this may cause leaking of strings
|
649
|
+
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>
|
650
|
+
that can't be freed. We ensure to only leak the data for
|
651
|
+
the directories that actually changed value though.
|
652
|
+
</p>
|
653
|
+
<p class="since">Since 2.22</p>
|
654
|
+
</div>
|
655
|
+
<hr>
|
656
|
+
<div class="refsect2" title="g_get_host_name ()">
|
657
|
+
<a name="g-get-host-name"></a><h3>g_get_host_name ()</h3>
|
658
|
+
<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>
|
659
|
+
<p>
|
660
|
+
Return a name for the machine.
|
661
|
+
</p>
|
662
|
+
<p>
|
663
|
+
The returned name is not necessarily a fully-qualified domain name,
|
664
|
+
or even present in DNS or some other name service at all. It need
|
665
|
+
not even be unique on your local network or site, but usually it
|
666
|
+
is. Callers should not rely on the return value having any specific
|
667
|
+
properties like uniqueness for security purposes. Even if the name
|
668
|
+
of the machine is changed while an application is running, the
|
669
|
+
return value from this function does not change. The returned
|
670
|
+
string is owned by GLib and should not be modified or freed. If no
|
671
|
+
name can be determined, a default fixed string "localhost" is
|
672
|
+
returned.
|
673
|
+
</p>
|
674
|
+
<div class="variablelist"><table border="0">
|
675
|
+
<col align="left" valign="top">
|
676
|
+
<tbody><tr>
|
677
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
678
|
+
<td> the host name of the machine.
|
679
|
+
|
680
|
+
</td>
|
681
|
+
</tr></tbody>
|
682
|
+
</table></div>
|
683
|
+
<p class="since">Since 2.8</p>
|
684
|
+
</div>
|
685
|
+
<hr>
|
686
|
+
<div class="refsect2" title="g_get_home_dir ()">
|
687
|
+
<a name="g-get-home-dir"></a><h3>g_get_home_dir ()</h3>
|
688
|
+
<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>
|
689
|
+
<p>
|
690
|
+
Gets the current user's home directory as defined in the
|
691
|
+
password database.
|
692
|
+
</p>
|
693
|
+
<p>
|
694
|
+
Note that in contrast to traditional UNIX tools, this function
|
695
|
+
prefers <code class="filename">passwd</code> entries over the <code class="envar">HOME</code>
|
696
|
+
environment variable.
|
697
|
+
</p>
|
698
|
+
<p>
|
699
|
+
One of the reasons for this decision is that applications in many
|
700
|
+
cases need special handling to deal with the case where
|
701
|
+
<code class="envar">HOME</code> is
|
702
|
+
</p>
|
703
|
+
<table border="0" summary="Simple list" class="simplelist">
|
704
|
+
<tr><td>Not owned by the user</td></tr>
|
705
|
+
<tr><td>Not writeable</td></tr>
|
706
|
+
<tr><td>Not even readable</td></tr>
|
707
|
+
</table>
|
708
|
+
<p>
|
709
|
+
Since applications are in general <span class="emphasis"><em>not</em></span> written
|
710
|
+
to deal with these situations it was considered better to make
|
711
|
+
<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
|
712
|
+
return the real home directory for the user. If applications
|
713
|
+
want to pay attention to <code class="envar">HOME</code>, they can do:
|
714
|
+
</p>
|
715
|
+
<div class="informalexample">
|
716
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
717
|
+
<tbody>
|
718
|
+
<tr>
|
719
|
+
<td class="listing_lines" align="right"><pre>1
|
720
|
+
2
|
721
|
+
3</pre></td>
|
722
|
+
<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>
|
723
|
+
<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>
|
724
|
+
<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>
|
725
|
+
</tr>
|
726
|
+
</tbody>
|
727
|
+
</table>
|
728
|
+
</div>
|
729
|
+
|
730
|
+
<p>
|
731
|
+
</p>
|
732
|
+
<div class="variablelist"><table border="0">
|
733
|
+
<col align="left" valign="top">
|
734
|
+
<tbody><tr>
|
735
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
736
|
+
<td> the current user's home directory
|
737
|
+
</td>
|
738
|
+
</tr></tbody>
|
739
|
+
</table></div>
|
740
|
+
</div>
|
741
|
+
<hr>
|
742
|
+
<div class="refsect2" title="g_get_tmp_dir ()">
|
743
|
+
<a name="g-get-tmp-dir"></a><h3>g_get_tmp_dir ()</h3>
|
744
|
+
<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>
|
745
|
+
<p>
|
746
|
+
Gets the directory to use for temporary files. This is found from
|
747
|
+
inspecting the environment variables <code class="envar">TMPDIR</code>,
|
748
|
+
<code class="envar">TMP</code>, and <code class="envar">TEMP</code> in that order. If none
|
749
|
+
of those are defined "/tmp" is returned on UNIX and "C:\" on Windows.
|
750
|
+
The encoding of the returned string is system-defined. On Windows,
|
751
|
+
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>.
|
752
|
+
</p>
|
753
|
+
<div class="variablelist"><table border="0">
|
754
|
+
<col align="left" valign="top">
|
755
|
+
<tbody><tr>
|
756
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
757
|
+
<td> the directory to use for temporary files.
|
758
|
+
</td>
|
759
|
+
</tr></tbody>
|
760
|
+
</table></div>
|
761
|
+
</div>
|
762
|
+
<hr>
|
763
|
+
<div class="refsect2" title="g_get_current_dir ()">
|
764
|
+
<a name="g-get-current-dir"></a><h3>g_get_current_dir ()</h3>
|
765
|
+
<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>
|
766
|
+
<p>
|
767
|
+
Gets the current directory.
|
768
|
+
The returned string should be freed when no longer needed. The encoding
|
769
|
+
of the returned string is system defined. On Windows, it is always UTF-8.
|
770
|
+
</p>
|
771
|
+
<div class="variablelist"><table border="0">
|
772
|
+
<col align="left" valign="top">
|
773
|
+
<tbody><tr>
|
774
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
775
|
+
<td> the current directory.
|
776
|
+
</td>
|
777
|
+
</tr></tbody>
|
778
|
+
</table></div>
|
779
|
+
</div>
|
780
|
+
<hr>
|
781
|
+
<div class="refsect2" title="g_basename ()">
|
782
|
+
<a name="g-basename"></a><h3>g_basename ()</h3>
|
783
|
+
<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>
|
784
|
+
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
785
|
+
<h3 class="title">Warning</h3>
|
786
|
+
<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
|
787
|
+
<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
|
788
|
+
this function which returns a pointer into the argument.</p>
|
789
|
+
</div>
|
790
|
+
<p>
|
791
|
+
Gets the name of the file without any leading directory components.
|
792
|
+
It returns a pointer into the given file name string.
|
793
|
+
</p>
|
794
|
+
<div class="variablelist"><table border="0">
|
795
|
+
<col align="left" valign="top">
|
796
|
+
<tbody>
|
797
|
+
<tr>
|
798
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
799
|
+
<td>the name of the file.
|
800
|
+
</td>
|
801
|
+
</tr>
|
802
|
+
<tr>
|
803
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
804
|
+
<td> the name of the file without any leading directory components.
|
805
|
+
|
806
|
+
</td>
|
807
|
+
</tr>
|
808
|
+
</tbody>
|
809
|
+
</table></div>
|
810
|
+
</div>
|
811
|
+
<hr>
|
812
|
+
<div class="refsect2" title="g_dirname">
|
813
|
+
<a name="g-dirname"></a><h3>g_dirname</h3>
|
814
|
+
<pre class="programlisting">#define g_dirname</pre>
|
815
|
+
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
816
|
+
<h3 class="title">Warning</h3>
|
817
|
+
<p><code class="literal">g_dirname</code> is deprecated and should not be used in newly-written code.</p>
|
818
|
+
</div>
|
819
|
+
<p>
|
820
|
+
This function is deprecated and will be removed in the next major
|
821
|
+
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.
|
822
|
+
</p>
|
823
|
+
<p>
|
824
|
+
Gets the directory components of a file name.
|
825
|
+
If the file name has no directory components "." is returned.
|
826
|
+
The returned string should be freed when no longer needed.
|
827
|
+
</p>
|
828
|
+
<div class="variablelist"><table border="0">
|
829
|
+
<col align="left" valign="top">
|
830
|
+
<tbody><tr>
|
831
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
832
|
+
<td>the directory components of the file.
|
833
|
+
</td>
|
834
|
+
</tr></tbody>
|
835
|
+
</table></div>
|
836
|
+
</div>
|
837
|
+
<hr>
|
838
|
+
<div class="refsect2" title="g_path_is_absolute ()">
|
839
|
+
<a name="g-path-is-absolute"></a><h3>g_path_is_absolute ()</h3>
|
840
|
+
<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>
|
841
|
+
<p>
|
842
|
+
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,
|
843
|
+
i.e. it contains a full path from the root directory such as "/usr/local"
|
844
|
+
on UNIX or "C:\windows" on Windows systems.
|
845
|
+
</p>
|
846
|
+
<div class="variablelist"><table border="0">
|
847
|
+
<col align="left" valign="top">
|
848
|
+
<tbody>
|
849
|
+
<tr>
|
850
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
851
|
+
<td>a file name.
|
852
|
+
</td>
|
853
|
+
</tr>
|
854
|
+
<tr>
|
855
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
856
|
+
<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.
|
857
|
+
</td>
|
858
|
+
</tr>
|
859
|
+
</tbody>
|
860
|
+
</table></div>
|
861
|
+
</div>
|
862
|
+
<hr>
|
863
|
+
<div class="refsect2" title="g_path_skip_root ()">
|
864
|
+
<a name="g-path-skip-root"></a><h3>g_path_skip_root ()</h3>
|
865
|
+
<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>
|
866
|
+
<p>
|
867
|
+
Returns a pointer into <em class="parameter"><code>file_name</code></em> after the root component, i.e. after
|
868
|
+
the "/" in UNIX or "C:\" under Windows. If <em class="parameter"><code>file_name</code></em> is not an absolute
|
869
|
+
path it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
870
|
+
</p>
|
871
|
+
<div class="variablelist"><table border="0">
|
872
|
+
<col align="left" valign="top">
|
873
|
+
<tbody>
|
874
|
+
<tr>
|
875
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
876
|
+
<td>a file name.
|
877
|
+
</td>
|
878
|
+
</tr>
|
879
|
+
<tr>
|
880
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
881
|
+
<td> a pointer into <em class="parameter"><code>file_name</code></em> after the root component.
|
882
|
+
</td>
|
883
|
+
</tr>
|
884
|
+
</tbody>
|
885
|
+
</table></div>
|
886
|
+
</div>
|
887
|
+
<hr>
|
888
|
+
<div class="refsect2" title="g_path_get_basename ()">
|
889
|
+
<a name="g-path-get-basename"></a><h3>g_path_get_basename ()</h3>
|
890
|
+
<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>
|
891
|
+
<p>
|
892
|
+
Gets the last component of the filename. If <em class="parameter"><code>file_name</code></em> ends with a
|
893
|
+
directory separator it gets the component before the last slash. If
|
894
|
+
<em class="parameter"><code>file_name</code></em> consists only of directory separators (and on Windows,
|
895
|
+
possibly a drive letter), a single separator is returned. If
|
896
|
+
<em class="parameter"><code>file_name</code></em> is empty, it gets ".".
|
897
|
+
</p>
|
898
|
+
<div class="variablelist"><table border="0">
|
899
|
+
<col align="left" valign="top">
|
900
|
+
<tbody>
|
901
|
+
<tr>
|
902
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
903
|
+
<td>the name of the file.
|
904
|
+
</td>
|
905
|
+
</tr>
|
906
|
+
<tr>
|
907
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
908
|
+
<td> a newly allocated string containing the last component of
|
909
|
+
the filename.
|
910
|
+
</td>
|
911
|
+
</tr>
|
912
|
+
</tbody>
|
913
|
+
</table></div>
|
914
|
+
</div>
|
915
|
+
<hr>
|
916
|
+
<div class="refsect2" title="g_path_get_dirname ()">
|
917
|
+
<a name="g-path-get-dirname"></a><h3>g_path_get_dirname ()</h3>
|
918
|
+
<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>
|
919
|
+
<p>
|
920
|
+
Gets the directory components of a file name. If the file name has no
|
921
|
+
directory components "." is returned. The returned string should be
|
922
|
+
freed when no longer needed.
|
923
|
+
</p>
|
924
|
+
<div class="variablelist"><table border="0">
|
925
|
+
<col align="left" valign="top">
|
926
|
+
<tbody>
|
927
|
+
<tr>
|
928
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
929
|
+
<td>the name of the file.
|
930
|
+
</td>
|
931
|
+
</tr>
|
932
|
+
<tr>
|
933
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
934
|
+
<td> the directory components of the file.
|
935
|
+
</td>
|
936
|
+
</tr>
|
937
|
+
</tbody>
|
938
|
+
</table></div>
|
939
|
+
</div>
|
940
|
+
<hr>
|
941
|
+
<div class="refsect2" title="g_build_filename ()">
|
942
|
+
<a name="g-build-filename"></a><h3>g_build_filename ()</h3>
|
943
|
+
<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>,
|
944
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
945
|
+
<p>
|
946
|
+
Creates a filename from a series of elements using the correct
|
947
|
+
separator for filenames.
|
948
|
+
</p>
|
949
|
+
<p>
|
950
|
+
On Unix, this function behaves identically to <code class="literal">g_build_path
|
951
|
+
(G_DIR_SEPARATOR_S, first_element, ....)</code>.
|
952
|
+
</p>
|
953
|
+
<p>
|
954
|
+
On Windows, it takes into account that either the backslash
|
955
|
+
(<code class="literal">\</code> or slash (<code class="literal">/</code>) can be used
|
956
|
+
as separator in filenames, but otherwise behaves as on Unix. When
|
957
|
+
file pathname separators need to be inserted, the one that last
|
958
|
+
previously occurred in the parameters (reading from left to right)
|
959
|
+
is used.
|
960
|
+
</p>
|
961
|
+
<p>
|
962
|
+
No attempt is made to force the resulting filename to be an absolute
|
963
|
+
path. If the first element is a relative path, the result will
|
964
|
+
be a relative path.
|
965
|
+
</p>
|
966
|
+
<div class="variablelist"><table border="0">
|
967
|
+
<col align="left" valign="top">
|
968
|
+
<tbody>
|
969
|
+
<tr>
|
970
|
+
<td><p><span class="term"><em class="parameter"><code>first_element</code></em> :</span></p></td>
|
971
|
+
<td>the first element in the path
|
972
|
+
</td>
|
973
|
+
</tr>
|
974
|
+
<tr>
|
975
|
+
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
976
|
+
<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>
|
977
|
+
</td>
|
978
|
+
</tr>
|
979
|
+
<tr>
|
980
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
981
|
+
<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>.
|
982
|
+
</td>
|
983
|
+
</tr>
|
984
|
+
</tbody>
|
985
|
+
</table></div>
|
986
|
+
</div>
|
987
|
+
<hr>
|
988
|
+
<div class="refsect2" title="g_build_filenamev ()">
|
989
|
+
<a name="g-build-filenamev"></a><h3>g_build_filenamev ()</h3>
|
990
|
+
<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>
|
991
|
+
<p>
|
992
|
+
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
|
993
|
+
as a string array, instead of varargs. This function is mainly
|
994
|
+
meant for language bindings.
|
995
|
+
</p>
|
996
|
+
<div class="variablelist"><table border="0">
|
997
|
+
<col align="left" valign="top">
|
998
|
+
<tbody>
|
999
|
+
<tr>
|
1000
|
+
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
|
1001
|
+
<td>
|
1002
|
+
<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.
|
1003
|
+
</td>
|
1004
|
+
</tr>
|
1005
|
+
<tr>
|
1006
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1007
|
+
<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>.
|
1008
|
+
|
1009
|
+
</td>
|
1010
|
+
</tr>
|
1011
|
+
</tbody>
|
1012
|
+
</table></div>
|
1013
|
+
<p class="since">Since 2.8</p>
|
1014
|
+
</div>
|
1015
|
+
<hr>
|
1016
|
+
<div class="refsect2" title="g_build_path ()">
|
1017
|
+
<a name="g-build-path"></a><h3>g_build_path ()</h3>
|
1018
|
+
<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>,
|
1019
|
+
<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>,
|
1020
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
1021
|
+
<p>
|
1022
|
+
Creates a path from a series of elements using <em class="parameter"><code>separator</code></em> as the
|
1023
|
+
separator between elements. At the boundary between two elements,
|
1024
|
+
any trailing occurrences of separator in the first element, or
|
1025
|
+
leading occurrences of separator in the second element are removed
|
1026
|
+
and exactly one copy of the separator is inserted.
|
1027
|
+
</p>
|
1028
|
+
<p>
|
1029
|
+
Empty elements are ignored.
|
1030
|
+
</p>
|
1031
|
+
<p>
|
1032
|
+
The number of leading copies of the separator on the result is
|
1033
|
+
the same as the number of leading copies of the separator on
|
1034
|
+
the first non-empty element.
|
1035
|
+
</p>
|
1036
|
+
<p>
|
1037
|
+
The number of trailing copies of the separator on the result is
|
1038
|
+
the same as the number of trailing copies of the separator on
|
1039
|
+
the last non-empty element. (Determination of the number of
|
1040
|
+
trailing copies is done without stripping leading copies, so
|
1041
|
+
if the separator is <code class="literal">ABA</code>, <code class="literal">ABABA</code>
|
1042
|
+
has 1 trailing copy.)
|
1043
|
+
</p>
|
1044
|
+
<p>
|
1045
|
+
However, if there is only a single non-empty element, and there
|
1046
|
+
are no characters in that element not part of the leading or
|
1047
|
+
trailing separators, then the result is exactly the original value
|
1048
|
+
of that element.
|
1049
|
+
</p>
|
1050
|
+
<p>
|
1051
|
+
Other than for determination of the number of leading and trailing
|
1052
|
+
copies of the separator, elements consisting only of copies
|
1053
|
+
of the separator are ignored.
|
1054
|
+
</p>
|
1055
|
+
<div class="variablelist"><table border="0">
|
1056
|
+
<col align="left" valign="top">
|
1057
|
+
<tbody>
|
1058
|
+
<tr>
|
1059
|
+
<td><p><span class="term"><em class="parameter"><code>separator</code></em> :</span></p></td>
|
1060
|
+
<td>a string used to separator the elements of the path.
|
1061
|
+
</td>
|
1062
|
+
</tr>
|
1063
|
+
<tr>
|
1064
|
+
<td><p><span class="term"><em class="parameter"><code>first_element</code></em> :</span></p></td>
|
1065
|
+
<td>the first element in the path
|
1066
|
+
</td>
|
1067
|
+
</tr>
|
1068
|
+
<tr>
|
1069
|
+
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
1070
|
+
<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>
|
1071
|
+
</td>
|
1072
|
+
</tr>
|
1073
|
+
<tr>
|
1074
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1075
|
+
<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>.
|
1076
|
+
</td>
|
1077
|
+
</tr>
|
1078
|
+
</tbody>
|
1079
|
+
</table></div>
|
1080
|
+
</div>
|
1081
|
+
<hr>
|
1082
|
+
<div class="refsect2" title="g_build_pathv ()">
|
1083
|
+
<a name="g-build-pathv"></a><h3>g_build_pathv ()</h3>
|
1084
|
+
<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>,
|
1085
|
+
<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>
|
1086
|
+
<p>
|
1087
|
+
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
|
1088
|
+
as a string array, instead of varargs. This function is mainly
|
1089
|
+
meant for language bindings.
|
1090
|
+
</p>
|
1091
|
+
<div class="variablelist"><table border="0">
|
1092
|
+
<col align="left" valign="top">
|
1093
|
+
<tbody>
|
1094
|
+
<tr>
|
1095
|
+
<td><p><span class="term"><em class="parameter"><code>separator</code></em> :</span></p></td>
|
1096
|
+
<td>a string used to separator the elements of the path.
|
1097
|
+
</td>
|
1098
|
+
</tr>
|
1099
|
+
<tr>
|
1100
|
+
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
|
1101
|
+
<td>
|
1102
|
+
<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.
|
1103
|
+
</td>
|
1104
|
+
</tr>
|
1105
|
+
<tr>
|
1106
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1107
|
+
<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>.
|
1108
|
+
|
1109
|
+
</td>
|
1110
|
+
</tr>
|
1111
|
+
</tbody>
|
1112
|
+
</table></div>
|
1113
|
+
<p class="since">Since 2.8</p>
|
1114
|
+
</div>
|
1115
|
+
<hr>
|
1116
|
+
<div class="refsect2" title="g_format_size_for_display ()">
|
1117
|
+
<a name="g-format-size-for-display"></a><h3>g_format_size_for_display ()</h3>
|
1118
|
+
<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>
|
1119
|
+
<p>
|
1120
|
+
Formats a size (for example the size of a file) into a human readable string.
|
1121
|
+
Sizes are rounded to the nearest size prefix (KB, MB, GB) and are displayed
|
1122
|
+
rounded to the nearest tenth. E.g. the file size 3292528 bytes will be
|
1123
|
+
converted into the string "3.1 MB".
|
1124
|
+
</p>
|
1125
|
+
<p>
|
1126
|
+
The prefix units base is 1024 (i.e. 1 KB is 1024 bytes).
|
1127
|
+
</p>
|
1128
|
+
<p>
|
1129
|
+
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.
|
1130
|
+
</p>
|
1131
|
+
<div class="variablelist"><table border="0">
|
1132
|
+
<col align="left" valign="top">
|
1133
|
+
<tbody>
|
1134
|
+
<tr>
|
1135
|
+
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1136
|
+
<td>a size in bytes.
|
1137
|
+
</td>
|
1138
|
+
</tr>
|
1139
|
+
<tr>
|
1140
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1141
|
+
<td> a newly-allocated formatted string containing a human readable
|
1142
|
+
file size.
|
1143
|
+
|
1144
|
+
</td>
|
1145
|
+
</tr>
|
1146
|
+
</tbody>
|
1147
|
+
</table></div>
|
1148
|
+
<p class="since">Since 2.16</p>
|
1149
|
+
</div>
|
1150
|
+
<hr>
|
1151
|
+
<div class="refsect2" title="g_find_program_in_path ()">
|
1152
|
+
<a name="g-find-program-in-path"></a><h3>g_find_program_in_path ()</h3>
|
1153
|
+
<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>
|
1154
|
+
<p>
|
1155
|
+
Locates the first executable named <em class="parameter"><code>program</code></em> in the user's path, in the
|
1156
|
+
same way that <code class="function">execvp()</code> would locate it. Returns an allocated string
|
1157
|
+
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
|
1158
|
+
the path. If <em class="parameter"><code>program</code></em> is already an absolute path, returns a copy of
|
1159
|
+
<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.
|
1160
|
+
|
1161
|
+
On Windows, if <em class="parameter"><code>program</code></em> does not have a file type suffix, tries
|
1162
|
+
with the suffixes .exe, .cmd, .bat and .com, and the suffixes in
|
1163
|
+
the <code class="envar">PATHEXT</code> environment variable.
|
1164
|
+
</p>
|
1165
|
+
<p>
|
1166
|
+
On Windows, it looks for the file in the same way as <code class="function">CreateProcess()</code>
|
1167
|
+
would. This means first in the directory where the executing
|
1168
|
+
program was loaded from, then in the current directory, then in the
|
1169
|
+
Windows 32-bit system directory, then in the Windows directory, and
|
1170
|
+
finally in the directories in the <code class="envar">PATH</code> environment
|
1171
|
+
variable. If the program is found, the return value contains the
|
1172
|
+
full name including the type suffix.
|
1173
|
+
</p>
|
1174
|
+
<div class="variablelist"><table border="0">
|
1175
|
+
<col align="left" valign="top">
|
1176
|
+
<tbody>
|
1177
|
+
<tr>
|
1178
|
+
<td><p><span class="term"><em class="parameter"><code>program</code></em> :</span></p></td>
|
1179
|
+
<td>a program name in the GLib file name encoding
|
1180
|
+
</td>
|
1181
|
+
</tr>
|
1182
|
+
<tr>
|
1183
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1184
|
+
<td> absolute path, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1185
|
+
</td>
|
1186
|
+
</tr>
|
1187
|
+
</tbody>
|
1188
|
+
</table></div>
|
1189
|
+
</div>
|
1190
|
+
<hr>
|
1191
|
+
<div class="refsect2" title="g_bit_nth_lsf ()">
|
1192
|
+
<a name="g-bit-nth-lsf"></a><h3>g_bit_nth_lsf ()</h3>
|
1193
|
+
<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>,
|
1194
|
+
<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>
|
1195
|
+
<p>
|
1196
|
+
Find the position of the first bit set in <em class="parameter"><code>mask</code></em>, searching from (but not
|
1197
|
+
including) <em class="parameter"><code>nth_bit</code></em> upwards. Bits are numbered from 0 (least significant)
|
1198
|
+
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
|
1199
|
+
0th bit, set <em class="parameter"><code>nth_bit</code></em> to -1.
|
1200
|
+
</p>
|
1201
|
+
<div class="variablelist"><table border="0">
|
1202
|
+
<col align="left" valign="top">
|
1203
|
+
<tbody>
|
1204
|
+
<tr>
|
1205
|
+
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
|
1206
|
+
<td>a <a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> containing flags.
|
1207
|
+
</td>
|
1208
|
+
</tr>
|
1209
|
+
<tr>
|
1210
|
+
<td><p><span class="term"><em class="parameter"><code>nth_bit</code></em> :</span></p></td>
|
1211
|
+
<td>the index of the bit to start the search from.
|
1212
|
+
</td>
|
1213
|
+
</tr>
|
1214
|
+
<tr>
|
1215
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1216
|
+
<td>the index of the first bit set which is higher than <em class="parameter"><code>nth_bit</code></em>.
|
1217
|
+
</td>
|
1218
|
+
</tr>
|
1219
|
+
</tbody>
|
1220
|
+
</table></div>
|
1221
|
+
</div>
|
1222
|
+
<hr>
|
1223
|
+
<div class="refsect2" title="g_bit_nth_msf ()">
|
1224
|
+
<a name="g-bit-nth-msf"></a><h3>g_bit_nth_msf ()</h3>
|
1225
|
+
<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>,
|
1226
|
+
<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>
|
1227
|
+
<p>
|
1228
|
+
Find the position of the first bit set in <em class="parameter"><code>mask</code></em>, searching from (but not
|
1229
|
+
including) <em class="parameter"><code>nth_bit</code></em> downwards. Bits are numbered from 0 (least significant)
|
1230
|
+
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
|
1231
|
+
last bit, set <em class="parameter"><code>nth_bit</code></em> to -1 or GLIB_SIZEOF_LONG * 8.
|
1232
|
+
</p>
|
1233
|
+
<div class="variablelist"><table border="0">
|
1234
|
+
<col align="left" valign="top">
|
1235
|
+
<tbody>
|
1236
|
+
<tr>
|
1237
|
+
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
|
1238
|
+
<td>a <a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a> containing flags.
|
1239
|
+
</td>
|
1240
|
+
</tr>
|
1241
|
+
<tr>
|
1242
|
+
<td><p><span class="term"><em class="parameter"><code>nth_bit</code></em> :</span></p></td>
|
1243
|
+
<td>the index of the bit to start the search from.
|
1244
|
+
</td>
|
1245
|
+
</tr>
|
1246
|
+
<tr>
|
1247
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1248
|
+
<td>the index of the first bit set which is lower than <em class="parameter"><code>nth_bit</code></em>.
|
1249
|
+
</td>
|
1250
|
+
</tr>
|
1251
|
+
</tbody>
|
1252
|
+
</table></div>
|
1253
|
+
</div>
|
1254
|
+
<hr>
|
1255
|
+
<div class="refsect2" title="g_bit_storage ()">
|
1256
|
+
<a name="g-bit-storage"></a><h3>g_bit_storage ()</h3>
|
1257
|
+
<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>
|
1258
|
+
<p>
|
1259
|
+
Gets the number of bits used to hold <em class="parameter"><code>number</code></em>,
|
1260
|
+
e.g. if <em class="parameter"><code>number</code></em> is 4, 3 bits are needed.
|
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>number</code></em> :</span></p></td>
|
1267
|
+
<td>a guint.
|
1268
|
+
</td>
|
1269
|
+
</tr>
|
1270
|
+
<tr>
|
1271
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1272
|
+
<td>the number of bits used to hold <em class="parameter"><code>number</code></em>.
|
1273
|
+
</td>
|
1274
|
+
</tr>
|
1275
|
+
</tbody>
|
1276
|
+
</table></div>
|
1277
|
+
</div>
|
1278
|
+
<hr>
|
1279
|
+
<div class="refsect2" title="g_spaced_primes_closest ()">
|
1280
|
+
<a name="g-spaced-primes-closest"></a><h3>g_spaced_primes_closest ()</h3>
|
1281
|
+
<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>
|
1282
|
+
<p>
|
1283
|
+
Gets the smallest prime number from a built-in array of primes which
|
1284
|
+
is larger than <em class="parameter"><code>num</code></em>. This is used within GLib to calculate the optimum
|
1285
|
+
size of a <a class="link" href="glib-Hash-Tables.html#GHashTable" title="GHashTable"><span class="type">GHashTable</span></a>.
|
1286
|
+
</p>
|
1287
|
+
<p>
|
1288
|
+
The built-in array of primes ranges from 11 to 13845163 such that
|
1289
|
+
each prime is approximately 1.5-2 times the previous prime.
|
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>num</code></em> :</span></p></td>
|
1296
|
+
<td>a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a>.
|
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 smallest prime number from a built-in array of primes which is
|
1302
|
+
larger than <em class="parameter"><code>num</code></em>.
|
1303
|
+
</td>
|
1304
|
+
</tr>
|
1305
|
+
</tbody>
|
1306
|
+
</table></div>
|
1307
|
+
</div>
|
1308
|
+
<hr>
|
1309
|
+
<div class="refsect2" title="g_atexit ()">
|
1310
|
+
<a name="g-atexit"></a><h3>g_atexit ()</h3>
|
1311
|
+
<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>
|
1312
|
+
<p>
|
1313
|
+
Specifies a function to be called at normal program termination.
|
1314
|
+
</p>
|
1315
|
+
<p>
|
1316
|
+
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
|
1317
|
+
macro that maps to a call to the <code class="function">atexit()</code> function in the C
|
1318
|
+
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>,
|
1319
|
+
i.e. <code class="function">atexit()</code>, is in a DLL, the function will be called when the
|
1320
|
+
DLL is detached from the program. This typically makes more sense
|
1321
|
+
than that the function is called when the GLib DLL is detached,
|
1322
|
+
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
|
1323
|
+
DLL.
|
1324
|
+
</p>
|
1325
|
+
<p>
|
1326
|
+
The behaviour of <code class="function">atexit()</code> in the context of dynamically loaded
|
1327
|
+
modules is not formally specified and varies wildly.
|
1328
|
+
</p>
|
1329
|
+
<p>
|
1330
|
+
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
|
1331
|
+
loaded module which is unloaded before the program terminates might
|
1332
|
+
well cause a crash at program exit.
|
1333
|
+
</p>
|
1334
|
+
<p>
|
1335
|
+
Some POSIX systems implement <code class="function">atexit()</code> like Windows, and have each
|
1336
|
+
dynamically loaded module maintain an own atexit chain that is
|
1337
|
+
called when the module is unloaded.
|
1338
|
+
</p>
|
1339
|
+
<p>
|
1340
|
+
On other POSIX systems, before a dynamically loaded module is
|
1341
|
+
unloaded, the registered atexit functions (if any) residing in that
|
1342
|
+
module are called, regardless where the code that registered them
|
1343
|
+
resided. This is presumably the most robust approach.
|
1344
|
+
</p>
|
1345
|
+
<p>
|
1346
|
+
As can be seen from the above, for portability it's best to avoid
|
1347
|
+
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
|
1348
|
+
program.
|
1349
|
+
</p>
|
1350
|
+
<div class="variablelist"><table border="0">
|
1351
|
+
<col align="left" valign="top">
|
1352
|
+
<tbody><tr>
|
1353
|
+
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
1354
|
+
<td>the function to call on normal program termination.
|
1355
|
+
</td>
|
1356
|
+
</tr></tbody>
|
1357
|
+
</table></div>
|
1358
|
+
</div>
|
1359
|
+
<hr>
|
1360
|
+
<div class="refsect2" title="g_parse_debug_string ()">
|
1361
|
+
<a name="g-parse-debug-string"></a><h3>g_parse_debug_string ()</h3>
|
1362
|
+
<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>,
|
1363
|
+
<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>,
|
1364
|
+
<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>
|
1365
|
+
<p>
|
1366
|
+
Parses a string containing debugging options
|
1367
|
+
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
|
1368
|
+
within GDK and GTK+ to parse the debug options passed on the
|
1369
|
+
command line or through environment variables.
|
1370
|
+
</p>
|
1371
|
+
<p>
|
1372
|
+
If <em class="parameter"><code>string</code></em> is equal to "all", all flags are set. If <em class="parameter"><code>string</code></em>
|
1373
|
+
is equal to "help", all the available keys in <em class="parameter"><code>keys</code></em> are printed
|
1374
|
+
out to standard error.
|
1375
|
+
</p>
|
1376
|
+
<div class="variablelist"><table border="0">
|
1377
|
+
<col align="left" valign="top">
|
1378
|
+
<tbody>
|
1379
|
+
<tr>
|
1380
|
+
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
|
1381
|
+
<td>a list of debug options separated by colons, spaces, or
|
1382
|
+
commas, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
1383
|
+
</td>
|
1384
|
+
</tr>
|
1385
|
+
<tr>
|
1386
|
+
<td><p><span class="term"><em class="parameter"><code>keys</code></em> :</span></p></td>
|
1387
|
+
<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
|
1388
|
+
strings with bit flags.
|
1389
|
+
</td>
|
1390
|
+
</tr>
|
1391
|
+
<tr>
|
1392
|
+
<td><p><span class="term"><em class="parameter"><code>nkeys</code></em> :</span></p></td>
|
1393
|
+
<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.
|
1394
|
+
</td>
|
1395
|
+
</tr>
|
1396
|
+
<tr>
|
1397
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1398
|
+
<td> the combined set of bit flags.
|
1399
|
+
</td>
|
1400
|
+
</tr>
|
1401
|
+
</tbody>
|
1402
|
+
</table></div>
|
1403
|
+
</div>
|
1404
|
+
<hr>
|
1405
|
+
<div class="refsect2" title="GDebugKey">
|
1406
|
+
<a name="GDebugKey"></a><h3>GDebugKey</h3>
|
1407
|
+
<pre class="programlisting">typedef struct {
|
1408
|
+
const gchar *key;
|
1409
|
+
guint value;
|
1410
|
+
} GDebugKey;
|
1411
|
+
</pre>
|
1412
|
+
<p>
|
1413
|
+
Associates a string with a bit flag.
|
1414
|
+
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>.
|
1415
|
+
</p>
|
1416
|
+
<div class="variablelist"><table border="0">
|
1417
|
+
<col align="left" valign="top">
|
1418
|
+
<tbody>
|
1419
|
+
<tr>
|
1420
|
+
<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>
|
1421
|
+
<td>the string
|
1422
|
+
</td>
|
1423
|
+
</tr>
|
1424
|
+
<tr>
|
1425
|
+
<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>
|
1426
|
+
<td>the flag
|
1427
|
+
</td>
|
1428
|
+
</tr>
|
1429
|
+
</tbody>
|
1430
|
+
</table></div>
|
1431
|
+
</div>
|
1432
|
+
<hr>
|
1433
|
+
<div class="refsect2" title="GVoidFunc ()">
|
1434
|
+
<a name="GVoidFunc"></a><h3>GVoidFunc ()</h3>
|
1435
|
+
<pre class="programlisting"><span class="returnvalue">void</span> (*GVoidFunc) (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1436
|
+
<p>
|
1437
|
+
Declares a type of function which takes no arguments and has no return value.
|
1438
|
+
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>.
|
1439
|
+
</p>
|
1440
|
+
</div>
|
1441
|
+
<hr>
|
1442
|
+
<div class="refsect2" title="GFreeFunc ()">
|
1443
|
+
<a name="GFreeFunc"></a><h3>GFreeFunc ()</h3>
|
1444
|
+
<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>
|
1445
|
+
<p>
|
1446
|
+
Declares a type of function which takes an arbitrary data pointer argument
|
1447
|
+
and has no return value. It is not currently used in GLib or GTK+.
|
1448
|
+
</p>
|
1449
|
+
<div class="variablelist"><table border="0">
|
1450
|
+
<col align="left" valign="top">
|
1451
|
+
<tbody><tr>
|
1452
|
+
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
1453
|
+
<td>a data pointer.
|
1454
|
+
</td>
|
1455
|
+
</tr></tbody>
|
1456
|
+
</table></div>
|
1457
|
+
</div>
|
1458
|
+
<hr>
|
1459
|
+
<div class="refsect2" title="g_qsort_with_data ()">
|
1460
|
+
<a name="g-qsort-with-data"></a><h3>g_qsort_with_data ()</h3>
|
1461
|
+
<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>,
|
1462
|
+
<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>,
|
1463
|
+
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> size</code></em>,
|
1464
|
+
<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>,
|
1465
|
+
<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>
|
1466
|
+
<p>
|
1467
|
+
This is just like the standard C <code class="function">qsort()</code> function, but
|
1468
|
+
the comparison routine accepts a user data argument.
|
1469
|
+
</p>
|
1470
|
+
<div class="variablelist"><table border="0">
|
1471
|
+
<col align="left" valign="top">
|
1472
|
+
<tbody>
|
1473
|
+
<tr>
|
1474
|
+
<td><p><span class="term"><em class="parameter"><code>pbase</code></em> :</span></p></td>
|
1475
|
+
<td>start of array to sort
|
1476
|
+
</td>
|
1477
|
+
</tr>
|
1478
|
+
<tr>
|
1479
|
+
<td><p><span class="term"><em class="parameter"><code>total_elems</code></em> :</span></p></td>
|
1480
|
+
<td>elements in the array
|
1481
|
+
</td>
|
1482
|
+
</tr>
|
1483
|
+
<tr>
|
1484
|
+
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
1485
|
+
<td>size of each element
|
1486
|
+
</td>
|
1487
|
+
</tr>
|
1488
|
+
<tr>
|
1489
|
+
<td><p><span class="term"><em class="parameter"><code>compare_func</code></em> :</span></p></td>
|
1490
|
+
<td>function to compare elements
|
1491
|
+
</td>
|
1492
|
+
</tr>
|
1493
|
+
<tr>
|
1494
|
+
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
1495
|
+
<td>data to pass to <em class="parameter"><code>compare_func</code></em>
|
1496
|
+
</td>
|
1497
|
+
</tr>
|
1498
|
+
</tbody>
|
1499
|
+
</table></div>
|
1500
|
+
</div>
|
1501
|
+
<hr>
|
1502
|
+
<div class="refsect2" title="g_nullify_pointer ()">
|
1503
|
+
<a name="g-nullify-pointer"></a><h3>g_nullify_pointer ()</h3>
|
1504
|
+
<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>
|
1505
|
+
<p>
|
1506
|
+
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>.
|
1507
|
+
</p>
|
1508
|
+
<div class="variablelist"><table border="0">
|
1509
|
+
<col align="left" valign="top">
|
1510
|
+
<tbody><tr>
|
1511
|
+
<td><p><span class="term"><em class="parameter"><code>nullify_location</code></em> :</span></p></td>
|
1512
|
+
<td>the memory address of the pointer.
|
1513
|
+
</td>
|
1514
|
+
</tr></tbody>
|
1515
|
+
</table></div>
|
1516
|
+
</div>
|
1517
|
+
</div>
|
1518
|
+
</div>
|
1519
|
+
<div class="footer">
|
1520
|
+
<hr>
|
1521
|
+
Generated by GTK-Doc V1.14</div>
|
1522
|
+
</body>
|
1523
|
+
</html>
|