glib2 0.90.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- 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,883 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/************************************************
|
3
|
+
|
4
|
+
rbglib_iochannel.c -
|
5
|
+
|
6
|
+
$Author: ggc $
|
7
|
+
$Date: 2007/07/13 16:07:28 $
|
8
|
+
|
9
|
+
Copyright (C) 2005 Masao Mutoh
|
10
|
+
************************************************/
|
11
|
+
|
12
|
+
#include "rbgprivate.h"
|
13
|
+
|
14
|
+
static ID id_call;
|
15
|
+
|
16
|
+
#define _SELF(s) ((GIOChannel*)RVAL2BOXED(s, G_TYPE_IO_CHANNEL))
|
17
|
+
|
18
|
+
static void
|
19
|
+
ioc_error(status, err)
|
20
|
+
GIOStatus status;
|
21
|
+
GError* err;
|
22
|
+
{
|
23
|
+
if (err != NULL) RAISE_GERROR(err);
|
24
|
+
|
25
|
+
if (status == G_IO_STATUS_EOF){
|
26
|
+
rb_raise(rb_eEOFError, "End of file reached");
|
27
|
+
} else if (status == G_IO_STATUS_AGAIN){
|
28
|
+
rb_raise(rb_eRuntimeError, "G_IO_STATUS_AGAIN");
|
29
|
+
} else if (status == G_IO_STATUS_NORMAL){
|
30
|
+
/* Do nothing */
|
31
|
+
} else {
|
32
|
+
rb_raise(rb_eRuntimeError, "An error occured. status = %d\n", status);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
static VALUE
|
37
|
+
ioc_initialize(argc, argv, self)
|
38
|
+
gint argc;
|
39
|
+
VALUE* argv;
|
40
|
+
VALUE self;
|
41
|
+
{
|
42
|
+
VALUE arg1, arg2;
|
43
|
+
|
44
|
+
GIOChannel* io = NULL;
|
45
|
+
rb_secure(4);
|
46
|
+
rb_scan_args(argc, argv, "11", &arg1, &arg2);
|
47
|
+
|
48
|
+
if (TYPE(arg1) != T_STRING){
|
49
|
+
#ifdef G_OS_UNIX
|
50
|
+
if (TYPE(arg1) == T_FIXNUM){
|
51
|
+
io = g_io_channel_unix_new(NUM2INT(arg1));
|
52
|
+
} else {
|
53
|
+
io = g_io_channel_unix_new(NUM2INT(rb_funcall(arg1, rb_intern("to_i"), 0)));
|
54
|
+
}
|
55
|
+
#else
|
56
|
+
rb_raise(rb_eRuntimeError, "GLib::IOChannel.new(fd) is supported on UNIX environment only");
|
57
|
+
#endif
|
58
|
+
} else {
|
59
|
+
GError* err = NULL;
|
60
|
+
io = g_io_channel_new_file(RVAL2CSTR(arg1),
|
61
|
+
NIL_P(arg2) ? "r" : RVAL2CSTR(arg2), &err);
|
62
|
+
|
63
|
+
if (err != NULL) RAISE_GERROR(err);
|
64
|
+
}
|
65
|
+
|
66
|
+
G_INITIALIZE(self, io);
|
67
|
+
|
68
|
+
return Qnil;
|
69
|
+
}
|
70
|
+
|
71
|
+
static VALUE
|
72
|
+
ioc_close(self)
|
73
|
+
VALUE self;
|
74
|
+
{
|
75
|
+
GError* err = NULL;
|
76
|
+
GIOStatus status = g_io_channel_shutdown(_SELF(self), TRUE, &err);
|
77
|
+
|
78
|
+
ioc_error(status, err);
|
79
|
+
return self;
|
80
|
+
}
|
81
|
+
|
82
|
+
static VALUE
|
83
|
+
ioc_s_open(argc, argv, self)
|
84
|
+
gint argc;
|
85
|
+
VALUE* argv;
|
86
|
+
VALUE self;
|
87
|
+
{
|
88
|
+
VALUE arg1, arg2;
|
89
|
+
VALUE rio;
|
90
|
+
GIOChannel* io = NULL;
|
91
|
+
|
92
|
+
rb_scan_args(argc, argv, "11", &arg1, &arg2);
|
93
|
+
|
94
|
+
if (TYPE(arg1) == T_FIXNUM){
|
95
|
+
#ifdef G_OS_UNIX
|
96
|
+
io = g_io_channel_unix_new(NUM2INT(arg1));
|
97
|
+
#else
|
98
|
+
rb_raise(rb_eRuntimeError, "GLib::IOChannel.new(fd) is supported on UNIX environment only");
|
99
|
+
#endif
|
100
|
+
} else {
|
101
|
+
GError* err = NULL;
|
102
|
+
io = g_io_channel_new_file(RVAL2CSTR(arg1),
|
103
|
+
NIL_P(arg2) ? "r" : RVAL2CSTR(arg2), &err);
|
104
|
+
|
105
|
+
if (err != NULL) RAISE_GERROR(err);
|
106
|
+
}
|
107
|
+
|
108
|
+
rio = BOXED2RVAL(io, G_TYPE_IO_CHANNEL);
|
109
|
+
|
110
|
+
if (rb_block_given_p()) {
|
111
|
+
return rb_ensure(rb_yield, rio, ioc_close, rio);
|
112
|
+
}
|
113
|
+
return rio;
|
114
|
+
}
|
115
|
+
|
116
|
+
static VALUE
|
117
|
+
ioc_get_fd(self)
|
118
|
+
VALUE self;
|
119
|
+
{
|
120
|
+
#ifdef G_OS_UNIX
|
121
|
+
return INT2NUM(g_io_channel_unix_get_fd(_SELF(self)));
|
122
|
+
#else
|
123
|
+
rb_warn("GLib::IOChannel#fd is supported on UNIX environment only.");
|
124
|
+
return Qnil;
|
125
|
+
#endif
|
126
|
+
}
|
127
|
+
|
128
|
+
/* Don't need this
|
129
|
+
void g_io_channel_init (GIOChannel *channel);
|
130
|
+
*/
|
131
|
+
|
132
|
+
|
133
|
+
static VALUE
|
134
|
+
ioc_read_chars(argc, argv, self)
|
135
|
+
gint argc;
|
136
|
+
VALUE* argv;
|
137
|
+
VALUE self;
|
138
|
+
{
|
139
|
+
VALUE count, ret;
|
140
|
+
gchar* buf;
|
141
|
+
gsize bytes_read;
|
142
|
+
GError* err = NULL;
|
143
|
+
GIOStatus status;
|
144
|
+
|
145
|
+
rb_scan_args(argc, argv, "01", &count);
|
146
|
+
|
147
|
+
if (NIL_P(count)){
|
148
|
+
gsize length;
|
149
|
+
status = g_io_channel_read_to_end(_SELF(self), &buf,
|
150
|
+
&length, &err);
|
151
|
+
|
152
|
+
if (status == G_IO_STATUS_EOF){
|
153
|
+
ret = CSTR2RVAL("");
|
154
|
+
} else {
|
155
|
+
ioc_error(status, err);
|
156
|
+
}
|
157
|
+
ret = buf ? rb_str_new(buf, length) : CSTR2RVAL("");
|
158
|
+
g_free(buf);
|
159
|
+
} else {
|
160
|
+
buf = ALLOCA_N(gchar, count);
|
161
|
+
memset(buf, '\0', count);
|
162
|
+
|
163
|
+
status = g_io_channel_read_chars(_SELF(self), buf, NUM2UINT(count),
|
164
|
+
&bytes_read, &err);
|
165
|
+
if (status == G_IO_STATUS_EOF){
|
166
|
+
ret = CSTR2RVAL("");
|
167
|
+
} else {
|
168
|
+
ioc_error(status, err);
|
169
|
+
}
|
170
|
+
ret = buf ? CSTR2RVAL(buf) : CSTR2RVAL("");
|
171
|
+
}
|
172
|
+
return ret;
|
173
|
+
}
|
174
|
+
|
175
|
+
static VALUE
|
176
|
+
ioc_read_unichar(self)
|
177
|
+
VALUE self;
|
178
|
+
{
|
179
|
+
gunichar thechar;
|
180
|
+
GError* err = NULL;
|
181
|
+
GIOStatus status = g_io_channel_read_unichar(_SELF(self), &thechar, &err);
|
182
|
+
|
183
|
+
ioc_error(status, err);
|
184
|
+
|
185
|
+
return UINT2NUM(thechar);
|
186
|
+
}
|
187
|
+
|
188
|
+
static VALUE
|
189
|
+
ioc_getuc(self)
|
190
|
+
VALUE self;
|
191
|
+
{
|
192
|
+
gunichar thechar;
|
193
|
+
GError* err = NULL;
|
194
|
+
VALUE ret;
|
195
|
+
GIOStatus status = g_io_channel_read_unichar(_SELF(self), &thechar, &err);
|
196
|
+
|
197
|
+
if (status == G_IO_STATUS_EOF){
|
198
|
+
ret = Qnil;
|
199
|
+
} else {
|
200
|
+
ioc_error(status, err);
|
201
|
+
ret = UINT2NUM(thechar);
|
202
|
+
}
|
203
|
+
|
204
|
+
return ret;
|
205
|
+
}
|
206
|
+
|
207
|
+
static VALUE
|
208
|
+
ioc_each_char(self)
|
209
|
+
VALUE self;
|
210
|
+
{
|
211
|
+
if (!rb_block_given_p()) {
|
212
|
+
rb_raise(rb_eArgError, "called without a block");
|
213
|
+
}
|
214
|
+
|
215
|
+
while (TRUE){
|
216
|
+
gunichar thechar;
|
217
|
+
GError* err = NULL;
|
218
|
+
GIOStatus status = g_io_channel_read_unichar(_SELF(self), &thechar, &err);
|
219
|
+
if (status == G_IO_STATUS_EOF){
|
220
|
+
break;
|
221
|
+
} else {
|
222
|
+
ioc_error(status, err);
|
223
|
+
rb_yield(UINT2NUM(thechar));
|
224
|
+
}
|
225
|
+
}
|
226
|
+
return self;
|
227
|
+
}
|
228
|
+
|
229
|
+
static VALUE
|
230
|
+
ioc_read_line(argc, argv, self)
|
231
|
+
gint argc;
|
232
|
+
VALUE* argv;
|
233
|
+
VALUE self;
|
234
|
+
{
|
235
|
+
gchar* str;
|
236
|
+
VALUE line_term, ret;
|
237
|
+
GIOStatus status;
|
238
|
+
GError* err = NULL;
|
239
|
+
|
240
|
+
const gchar* old_line_term = NULL;
|
241
|
+
gint old_line_term_len;
|
242
|
+
|
243
|
+
rb_scan_args(argc, argv, "01", &line_term);
|
244
|
+
|
245
|
+
if (! NIL_P(line_term)){
|
246
|
+
StringValue(line_term);
|
247
|
+
old_line_term = g_io_channel_get_line_term(_SELF(self), &old_line_term_len);
|
248
|
+
|
249
|
+
g_io_channel_set_line_term(_SELF(self), RVAL2CSTR(line_term),
|
250
|
+
RSTRING_LEN(line_term));
|
251
|
+
}
|
252
|
+
|
253
|
+
status = g_io_channel_read_line(_SELF(self), &str, NULL, NULL, &err);
|
254
|
+
|
255
|
+
if (! NIL_P(line_term)){
|
256
|
+
g_io_channel_set_line_term(_SELF(self), old_line_term, old_line_term_len);
|
257
|
+
}
|
258
|
+
|
259
|
+
ioc_error(status, err);
|
260
|
+
|
261
|
+
ret = str ? CSTR2RVAL(str) : CSTR2RVAL("");
|
262
|
+
g_free(str);
|
263
|
+
|
264
|
+
return ret;
|
265
|
+
}
|
266
|
+
|
267
|
+
static VALUE
|
268
|
+
ioc_gets(argc, argv, self)
|
269
|
+
gint argc;
|
270
|
+
VALUE* argv;
|
271
|
+
VALUE self;
|
272
|
+
{
|
273
|
+
gchar* str;
|
274
|
+
VALUE line_term, ret;
|
275
|
+
GIOStatus status;
|
276
|
+
GError* err = NULL;
|
277
|
+
|
278
|
+
const gchar* old_line_term = NULL;
|
279
|
+
gint old_line_term_len;
|
280
|
+
|
281
|
+
rb_scan_args(argc, argv, "01", &line_term);
|
282
|
+
|
283
|
+
if (! NIL_P(line_term)){
|
284
|
+
StringValue(line_term);
|
285
|
+
|
286
|
+
old_line_term = g_io_channel_get_line_term(_SELF(self), &old_line_term_len);
|
287
|
+
g_io_channel_set_line_term(_SELF(self), RVAL2CSTR(line_term),
|
288
|
+
RSTRING_LEN(line_term));
|
289
|
+
}
|
290
|
+
|
291
|
+
status = g_io_channel_read_line(_SELF(self), &str, NULL, NULL, &err);
|
292
|
+
|
293
|
+
if (! NIL_P(line_term)){
|
294
|
+
g_io_channel_set_line_term(_SELF(self), old_line_term, old_line_term_len);
|
295
|
+
}
|
296
|
+
|
297
|
+
if (status == G_IO_STATUS_EOF){
|
298
|
+
ret = Qnil;
|
299
|
+
} else {
|
300
|
+
ioc_error(status, err);
|
301
|
+
ret = str ? CSTR2RVAL(str) : CSTR2RVAL("");
|
302
|
+
}
|
303
|
+
g_free(str);
|
304
|
+
|
305
|
+
return ret;
|
306
|
+
}
|
307
|
+
|
308
|
+
/* Internal use only */
|
309
|
+
static VALUE
|
310
|
+
ioc_set_line_term(args)
|
311
|
+
VALUE args;
|
312
|
+
{
|
313
|
+
VALUE self = RARRAY_PTR(args)[0];
|
314
|
+
VALUE doit = RARRAY_PTR(args)[1];
|
315
|
+
VALUE line_term = RARRAY_PTR(args)[2];
|
316
|
+
|
317
|
+
if (doit == Qtrue){
|
318
|
+
StringValue(line_term);
|
319
|
+
g_io_channel_set_line_term(_SELF(self), RVAL2CSTR(line_term),
|
320
|
+
RSTRING_LEN(line_term));
|
321
|
+
}
|
322
|
+
return self;
|
323
|
+
}
|
324
|
+
|
325
|
+
static VALUE
|
326
|
+
ioc_each_line(argc, argv, self)
|
327
|
+
gint argc;
|
328
|
+
VALUE* argv;
|
329
|
+
VALUE self;
|
330
|
+
{
|
331
|
+
gchar* str;
|
332
|
+
VALUE line_term;
|
333
|
+
GIOStatus status;
|
334
|
+
GError* err = NULL;
|
335
|
+
|
336
|
+
const gchar* old_line_term = NULL;
|
337
|
+
gint old_line_term_len;
|
338
|
+
|
339
|
+
if (!rb_block_given_p()) {
|
340
|
+
rb_raise(rb_eArgError, "called without a block");
|
341
|
+
}
|
342
|
+
|
343
|
+
rb_scan_args(argc, argv, "01", &line_term);
|
344
|
+
|
345
|
+
if (! NIL_P(line_term)){
|
346
|
+
StringValue(line_term);
|
347
|
+
|
348
|
+
old_line_term = g_io_channel_get_line_term(_SELF(self), &old_line_term_len);
|
349
|
+
g_io_channel_set_line_term(_SELF(self), RVAL2CSTR(line_term),
|
350
|
+
RSTRING_LEN(line_term));
|
351
|
+
}
|
352
|
+
|
353
|
+
while (TRUE){
|
354
|
+
status = g_io_channel_read_line(_SELF(self), &str, NULL, NULL, &err);
|
355
|
+
if (status == G_IO_STATUS_EOF){
|
356
|
+
break;
|
357
|
+
} else {
|
358
|
+
VALUE rstr;
|
359
|
+
ioc_error(status, err);
|
360
|
+
rstr = str ? CSTR2RVAL(str) : CSTR2RVAL("");
|
361
|
+
g_free(str);
|
362
|
+
rb_ensure(rb_yield, rstr, ioc_set_line_term,
|
363
|
+
rb_ary_new3(3, self,
|
364
|
+
NIL_P(line_term) ? Qfalse : Qtrue,
|
365
|
+
old_line_term ? rb_str_new(old_line_term, old_line_term_len) : Qnil));
|
366
|
+
}
|
367
|
+
}
|
368
|
+
return self;
|
369
|
+
}
|
370
|
+
|
371
|
+
|
372
|
+
/* Don't need this.
|
373
|
+
GIOStatus g_io_channel_read_line_string (GIOChannel *channel,
|
374
|
+
GString *buffer,
|
375
|
+
gsize *terminator_pos,
|
376
|
+
GError **error);
|
377
|
+
*/
|
378
|
+
|
379
|
+
/* Use GLib::IOChannel#read instead.
|
380
|
+
static VALUE
|
381
|
+
ioc_read_to_end(self)
|
382
|
+
VALUE self;
|
383
|
+
{
|
384
|
+
gchar* str;
|
385
|
+
gsize length;
|
386
|
+
VALUE ret;
|
387
|
+
GError* err = NULL;
|
388
|
+
|
389
|
+
GIOStatus status = g_io_channel_read_to_end(_SELF(self), &str,
|
390
|
+
&length, &err);
|
391
|
+
|
392
|
+
ioc_error(status, err);
|
393
|
+
|
394
|
+
ret = str ? rb_str_new(str, length) : CSTR2RVAL("");
|
395
|
+
g_free(str);
|
396
|
+
|
397
|
+
return ret;
|
398
|
+
}
|
399
|
+
*/
|
400
|
+
|
401
|
+
static VALUE
|
402
|
+
ioc_write_chars(self, buf)
|
403
|
+
VALUE self, buf;
|
404
|
+
{
|
405
|
+
gssize count;
|
406
|
+
gsize bytes_written;
|
407
|
+
GIOStatus status;
|
408
|
+
GError* err = NULL;
|
409
|
+
|
410
|
+
rb_secure(4);
|
411
|
+
buf = rb_obj_as_string(buf);
|
412
|
+
|
413
|
+
StringValue(buf);
|
414
|
+
|
415
|
+
count = RSTRING_LEN(buf);
|
416
|
+
|
417
|
+
status = g_io_channel_write_chars(_SELF(self), RVAL2CSTR(buf), count, &bytes_written, &err);
|
418
|
+
|
419
|
+
ioc_error(status, err);
|
420
|
+
return self;
|
421
|
+
}
|
422
|
+
|
423
|
+
static ID id_unpack;
|
424
|
+
|
425
|
+
static VALUE
|
426
|
+
ioc_write_unichar(self, thechar)
|
427
|
+
VALUE self, thechar;
|
428
|
+
{
|
429
|
+
GError* err = NULL;
|
430
|
+
GIOStatus status;
|
431
|
+
gunichar unichar;
|
432
|
+
|
433
|
+
rb_secure(4);
|
434
|
+
if (TYPE(thechar) == T_FIXNUM) {
|
435
|
+
unichar = NUM2UINT(thechar);
|
436
|
+
} else {
|
437
|
+
VALUE ary = rb_funcall(thechar, id_unpack, 1, CSTR2RVAL("U"));
|
438
|
+
unichar = NUM2UINT(RARRAY_PTR(ary)[0]);
|
439
|
+
}
|
440
|
+
|
441
|
+
status = g_io_channel_write_unichar(_SELF(self), unichar, &err);
|
442
|
+
|
443
|
+
ioc_error(status, err);
|
444
|
+
|
445
|
+
return self;
|
446
|
+
}
|
447
|
+
|
448
|
+
static VALUE
|
449
|
+
ioc_flush(self)
|
450
|
+
VALUE self;
|
451
|
+
{
|
452
|
+
GError* err = NULL;
|
453
|
+
GIOStatus status = g_io_channel_flush(_SELF(self), &err);
|
454
|
+
ioc_error(status, err);
|
455
|
+
return self;
|
456
|
+
}
|
457
|
+
|
458
|
+
static VALUE
|
459
|
+
ioc_seek(argc, argv, self)
|
460
|
+
gint argc;
|
461
|
+
VALUE* argv;
|
462
|
+
VALUE self;
|
463
|
+
{
|
464
|
+
VALUE ofs, type;
|
465
|
+
GIOStatus status;
|
466
|
+
GError* err = NULL;
|
467
|
+
GSeekType gtype = G_SEEK_SET;
|
468
|
+
|
469
|
+
rb_scan_args(argc, argv, "11", &ofs, &type);
|
470
|
+
|
471
|
+
if (!NIL_P(type))
|
472
|
+
gtype = NUM2INT(type);
|
473
|
+
|
474
|
+
status = g_io_channel_seek_position(_SELF(self), NUM2INT(ofs),
|
475
|
+
gtype, &err);
|
476
|
+
ioc_error(status, err);
|
477
|
+
return self;
|
478
|
+
}
|
479
|
+
|
480
|
+
static VALUE
|
481
|
+
ioc_seek_pos(self, pos)
|
482
|
+
VALUE self, pos;
|
483
|
+
{
|
484
|
+
GError* err = NULL;
|
485
|
+
GIOStatus status = g_io_channel_seek_position(_SELF(self), NUM2INT(pos),
|
486
|
+
G_SEEK_SET, &err);
|
487
|
+
ioc_error(status, err);
|
488
|
+
return self;
|
489
|
+
}
|
490
|
+
|
491
|
+
static VALUE
|
492
|
+
ioc_shutdown(argc, argv, self)
|
493
|
+
gint argc;
|
494
|
+
VALUE* argv;
|
495
|
+
VALUE self;
|
496
|
+
{
|
497
|
+
VALUE flush;
|
498
|
+
GError* err = NULL;
|
499
|
+
gboolean gflush = TRUE;
|
500
|
+
GIOStatus status;
|
501
|
+
|
502
|
+
rb_scan_args(argc, argv, "01", &flush);
|
503
|
+
|
504
|
+
if (!NIL_P(flush)){
|
505
|
+
gflush = RVAL2CBOOL(flush);
|
506
|
+
}
|
507
|
+
|
508
|
+
status = g_io_channel_shutdown(_SELF(self), gflush, &err);
|
509
|
+
ioc_error(status, err);
|
510
|
+
|
511
|
+
return self;
|
512
|
+
}
|
513
|
+
|
514
|
+
static VALUE
|
515
|
+
ioc_create_watch(self, condition)
|
516
|
+
VALUE self, condition;
|
517
|
+
{
|
518
|
+
return BOXED2RVAL(g_io_create_watch(_SELF(self), NUM2INT(condition)),
|
519
|
+
G_TYPE_SOURCE);
|
520
|
+
}
|
521
|
+
|
522
|
+
static gboolean
|
523
|
+
io_func(source, condition, func)
|
524
|
+
GIOChannel* source;
|
525
|
+
GIOCondition condition;
|
526
|
+
gpointer func;
|
527
|
+
{
|
528
|
+
return RVAL2CBOOL(rb_funcall((VALUE)func, id_call, 2,
|
529
|
+
BOXED2RVAL(source, G_TYPE_IO_CHANNEL),
|
530
|
+
INT2NUM(condition)));
|
531
|
+
}
|
532
|
+
|
533
|
+
static VALUE
|
534
|
+
ioc_add_watch(self, condition)
|
535
|
+
VALUE self, condition;
|
536
|
+
{
|
537
|
+
VALUE func = rb_block_proc();
|
538
|
+
G_RELATIVE(self, func);
|
539
|
+
return UINT2NUM(g_io_add_watch(_SELF(self), NUM2INT(condition),
|
540
|
+
(GIOFunc)io_func, (gpointer)func));
|
541
|
+
}
|
542
|
+
|
543
|
+
/* Don't need this
|
544
|
+
guint g_io_add_watch_full (GIOChannel *channel,
|
545
|
+
gint priority,
|
546
|
+
GIOCondition condition,
|
547
|
+
GIOFunc func,
|
548
|
+
gpointer user_data,
|
549
|
+
GDestroyNotify notify);
|
550
|
+
*/
|
551
|
+
|
552
|
+
static VALUE
|
553
|
+
ioc_get_buffer_size(self)
|
554
|
+
VALUE self;
|
555
|
+
{
|
556
|
+
return UINT2NUM(g_io_channel_get_buffer_size(_SELF(self)));
|
557
|
+
}
|
558
|
+
|
559
|
+
static VALUE
|
560
|
+
ioc_set_buffer_size(self, buffer_size)
|
561
|
+
VALUE self, buffer_size;
|
562
|
+
{
|
563
|
+
g_io_channel_set_buffer_size(_SELF(self), NUM2UINT(buffer_size));
|
564
|
+
return self;
|
565
|
+
}
|
566
|
+
|
567
|
+
static VALUE
|
568
|
+
ioc_get_buffer_condition(self)
|
569
|
+
VALUE self;
|
570
|
+
{
|
571
|
+
return INT2NUM(g_io_channel_get_buffer_condition(_SELF(self)));
|
572
|
+
}
|
573
|
+
|
574
|
+
static VALUE
|
575
|
+
ioc_get_flags(self)
|
576
|
+
VALUE self;
|
577
|
+
{
|
578
|
+
return INT2NUM(g_io_channel_get_flags(_SELF(self)));
|
579
|
+
}
|
580
|
+
|
581
|
+
static VALUE
|
582
|
+
ioc_set_flags(self, flags)
|
583
|
+
VALUE self, flags;
|
584
|
+
{
|
585
|
+
GError* err = NULL;
|
586
|
+
GIOStatus status = g_io_channel_set_flags(_SELF(self),
|
587
|
+
NUM2INT(flags), &err);
|
588
|
+
ioc_error(status, err);
|
589
|
+
return self;
|
590
|
+
}
|
591
|
+
|
592
|
+
/* Use them with GLib::IOChannel#gets, #readline, #readlines
|
593
|
+
static VALUE
|
594
|
+
ioc_get_line_term(self)
|
595
|
+
VALUE self;
|
596
|
+
{
|
597
|
+
gint length;
|
598
|
+
const gchar* ret = g_io_channel_get_line_term(_SELF(self), &length);
|
599
|
+
if (ret) {
|
600
|
+
if (length < 0) {
|
601
|
+
return CSTR2RVAL(ret);
|
602
|
+
} else {
|
603
|
+
return rb_str_new(ret, length);
|
604
|
+
}
|
605
|
+
}
|
606
|
+
return Qnil;
|
607
|
+
}
|
608
|
+
|
609
|
+
static VALUE
|
610
|
+
ioc_set_line_term(self, line_term)
|
611
|
+
VALUE self, line_term;
|
612
|
+
{
|
613
|
+
StringValue(line_term);
|
614
|
+
g_io_channel_set_line_term(_SELF(self), RVAL2CSTR(line_term),
|
615
|
+
RSTRING_LEN(line_term));
|
616
|
+
return self;
|
617
|
+
}
|
618
|
+
*/
|
619
|
+
|
620
|
+
static VALUE
|
621
|
+
ioc_get_buffered(self)
|
622
|
+
VALUE self;
|
623
|
+
{
|
624
|
+
return CBOOL2RVAL(g_io_channel_get_buffered(_SELF(self)));
|
625
|
+
}
|
626
|
+
|
627
|
+
static VALUE
|
628
|
+
ioc_set_buffered(self, buffered)
|
629
|
+
VALUE self, buffered;
|
630
|
+
{
|
631
|
+
g_io_channel_set_buffered(_SELF(self), RVAL2CBOOL(buffered));
|
632
|
+
return self;
|
633
|
+
}
|
634
|
+
|
635
|
+
static VALUE
|
636
|
+
ioc_get_encoding(self)
|
637
|
+
VALUE self;
|
638
|
+
{
|
639
|
+
return CSTR2RVAL(g_io_channel_get_encoding(_SELF(self)));
|
640
|
+
}
|
641
|
+
|
642
|
+
static VALUE
|
643
|
+
ioc_set_encoding(self, encoding)
|
644
|
+
VALUE self, encoding;
|
645
|
+
{
|
646
|
+
GError* err = NULL;
|
647
|
+
GIOStatus status = g_io_channel_set_encoding(_SELF(self),
|
648
|
+
encoding ? RVAL2CSTR(encoding) : NULL, &err);
|
649
|
+
ioc_error(status, err);
|
650
|
+
return self;
|
651
|
+
}
|
652
|
+
|
653
|
+
/* Don't we need them ?
|
654
|
+
gboolean g_io_channel_get_close_on_unref (GIOChannel *channel);
|
655
|
+
void g_io_channel_set_close_on_unref (GIOChannel *channel,
|
656
|
+
gboolean do_close);
|
657
|
+
*/
|
658
|
+
|
659
|
+
/* Deprecated
|
660
|
+
GIOError g_io_channel_read (GIOChannel *channel,
|
661
|
+
gchar *buf,
|
662
|
+
gsize count,
|
663
|
+
gsize *bytes_read);
|
664
|
+
enum GIOError;
|
665
|
+
GIOError g_io_channel_write (GIOChannel *channel,
|
666
|
+
const gchar *buf,
|
667
|
+
gsize count,
|
668
|
+
gsize *bytes_written);
|
669
|
+
GIOError g_io_channel_seek (GIOChannel *channel,
|
670
|
+
gint64 offset,
|
671
|
+
GSeekType type);
|
672
|
+
void g_io_channel_close (GIOChannel *channel);
|
673
|
+
*/
|
674
|
+
|
675
|
+
static VALUE
|
676
|
+
ioc_error_s_from_errno(self, errno_)
|
677
|
+
VALUE self, errno_;
|
678
|
+
{
|
679
|
+
return INT2NUM(g_io_channel_error_from_errno(NUM2INT(errno_)));
|
680
|
+
}
|
681
|
+
|
682
|
+
/*
|
683
|
+
* Stolen some convenient methods from io.c
|
684
|
+
*/
|
685
|
+
static VALUE
|
686
|
+
ioc_printf(argc, argv, self)
|
687
|
+
int argc;
|
688
|
+
VALUE* argv;
|
689
|
+
VALUE self;
|
690
|
+
{
|
691
|
+
ioc_write_chars(self, rb_f_sprintf(argc, argv));
|
692
|
+
return Qnil;
|
693
|
+
}
|
694
|
+
|
695
|
+
static VALUE ioc_puts(int argc, VALUE* argv, VALUE self);
|
696
|
+
|
697
|
+
static VALUE
|
698
|
+
ioc_puts_ary(ary, out, recur)
|
699
|
+
VALUE ary, out;
|
700
|
+
{
|
701
|
+
VALUE tmp;
|
702
|
+
long i;
|
703
|
+
|
704
|
+
for (i=0; i<RARRAY_LEN(ary); i++) {
|
705
|
+
tmp = RARRAY_PTR(ary)[i];
|
706
|
+
if (recur) {
|
707
|
+
tmp = rb_str_new2("[...]");
|
708
|
+
}
|
709
|
+
rb_io_puts(1, &tmp, out);
|
710
|
+
}
|
711
|
+
return Qnil;
|
712
|
+
}
|
713
|
+
|
714
|
+
static VALUE
|
715
|
+
ioc_puts(argc, argv, self)
|
716
|
+
int argc;
|
717
|
+
VALUE *argv;
|
718
|
+
VALUE self;
|
719
|
+
{
|
720
|
+
int i;
|
721
|
+
VALUE line;
|
722
|
+
|
723
|
+
/* if no argument given, print newline. */
|
724
|
+
if (argc == 0) {
|
725
|
+
ioc_write_chars(self, rb_default_rs);
|
726
|
+
return Qnil;
|
727
|
+
}
|
728
|
+
for (i=0; i<argc; i++) {
|
729
|
+
if (NIL_P(argv[i])) {
|
730
|
+
line = rb_str_new2("nil");
|
731
|
+
}
|
732
|
+
else {
|
733
|
+
#if HAVE_RB_CHECK_ARRAY_TYPE
|
734
|
+
line = rb_check_array_type(argv[i]);
|
735
|
+
#else
|
736
|
+
line = rb_check_convert_type(argv[i], T_ARRAY, "Array", "to_ary");
|
737
|
+
#endif
|
738
|
+
if (!NIL_P(line)) {
|
739
|
+
#if HAVE_RB_EXEC_RECURSIVE
|
740
|
+
rb_exec_recursive(ioc_puts_ary, line, self);
|
741
|
+
#else
|
742
|
+
rb_protect_inspect(ioc_puts_ary, line, self);
|
743
|
+
#endif
|
744
|
+
continue;
|
745
|
+
}
|
746
|
+
line = rb_obj_as_string(argv[i]);
|
747
|
+
}
|
748
|
+
ioc_write_chars(self, line);
|
749
|
+
if (RSTRING_LEN(line) == 0 ||
|
750
|
+
RSTRING_PTR(line)[RSTRING_LEN(line)-1] != '\n') {
|
751
|
+
ioc_write_chars(self, rb_default_rs);
|
752
|
+
}
|
753
|
+
}
|
754
|
+
|
755
|
+
return Qnil;
|
756
|
+
}
|
757
|
+
|
758
|
+
static VALUE
|
759
|
+
ioc_print(argc, argv, out)
|
760
|
+
int argc;
|
761
|
+
VALUE *argv;
|
762
|
+
VALUE out;
|
763
|
+
{
|
764
|
+
int i;
|
765
|
+
VALUE line;
|
766
|
+
|
767
|
+
/* if no argument given, print `$_' */
|
768
|
+
if (argc == 0) {
|
769
|
+
argc = 1;
|
770
|
+
line = rb_lastline_get();
|
771
|
+
argv = &line;
|
772
|
+
}
|
773
|
+
for (i=0; i<argc; i++) {
|
774
|
+
if (!NIL_P(rb_output_fs) && i>0) {
|
775
|
+
ioc_write_chars(out, rb_output_fs);
|
776
|
+
}
|
777
|
+
switch (TYPE(argv[i])) {
|
778
|
+
case T_NIL:
|
779
|
+
ioc_write_chars(out, rb_str_new2("nil"));
|
780
|
+
break;
|
781
|
+
default:
|
782
|
+
ioc_write_chars(out, argv[i]);
|
783
|
+
break;
|
784
|
+
}
|
785
|
+
}
|
786
|
+
if (!NIL_P(rb_output_rs)) {
|
787
|
+
ioc_write_chars(out, rb_output_rs);
|
788
|
+
}
|
789
|
+
|
790
|
+
return Qnil;
|
791
|
+
}
|
792
|
+
|
793
|
+
|
794
|
+
void
|
795
|
+
Init_glib_io_channel()
|
796
|
+
{
|
797
|
+
VALUE io = G_DEF_CLASS(G_TYPE_IO_CHANNEL, "IOChannel", mGLib);
|
798
|
+
VALUE ioc_error = G_DEF_ERROR2(G_IO_CHANNEL_ERROR, "IOChannelError", mGLib, rb_eIOError);
|
799
|
+
|
800
|
+
rb_include_module(io, rb_mEnumerable);
|
801
|
+
|
802
|
+
id_call = rb_intern("call");
|
803
|
+
id_unpack = rb_intern("unpack");
|
804
|
+
|
805
|
+
|
806
|
+
rb_define_method(io, "initialize", ioc_initialize, -1);
|
807
|
+
rb_define_singleton_method(io, "open", ioc_s_open, -1);
|
808
|
+
rb_define_method(io, "fileno", ioc_get_fd, 0); /* ref: IO#fileno */
|
809
|
+
rb_define_alias(io, "to_i", "fileno"); /* ref: IO#to_i */
|
810
|
+
rb_define_method(io, "read", ioc_read_chars, -1); /* ref: IO#read(count = nil) */
|
811
|
+
rb_define_method(io, "readchar", ioc_read_unichar, 0); /* ref: IO#readchar but this return an UTF-8 char */
|
812
|
+
rb_define_method(io, "getc", ioc_getuc, 0); /* ref: IO#getc but this return an UTF-8 char */
|
813
|
+
rb_define_method(io, "readline", ioc_read_line, -1); /* ref: IO#readline(rs = nil) */
|
814
|
+
rb_define_method(io, "gets", ioc_gets, -1); /* ref: IO#gets(rs = nil) */
|
815
|
+
rb_define_method(io, "each", ioc_each_line, -1); /* ref: IO#each(rs = nil){|line|...} */
|
816
|
+
rb_define_alias(io, "each_line", "each"); /* ref: IO#each_line(rs = nil){|line|...} */
|
817
|
+
rb_define_method(io, "each_char", ioc_each_char, 0); /* ref: IO#each_byte{|line|...} */
|
818
|
+
rb_define_method(io, "write", ioc_write_chars, 1); /* ref: IO#write(str) */
|
819
|
+
rb_define_method(io, "printf", ioc_printf, -1); /* ref: IO#printf(...) */
|
820
|
+
rb_define_method(io, "print", ioc_print, -1); /* ref: IO#print(...) */
|
821
|
+
rb_define_method(io, "puts", ioc_puts, -1); /* ref: IO#puts(...) */
|
822
|
+
rb_define_method(io, "putc", ioc_write_unichar, 1); /* ref: IO#putc(ch) but this accept an UTF-8 code */
|
823
|
+
rb_define_method(io, "flush", ioc_flush, 0); /* ref: IO#flush */
|
824
|
+
rb_define_method(io, "seek", ioc_seek, -1); /* ref: IO#seek */
|
825
|
+
rb_define_method(io, "set_pos", ioc_seek_pos, 1); /* ref: IO#pos= */
|
826
|
+
rb_define_method(io, "close", ioc_shutdown, -1); /* ref: IO#close */
|
827
|
+
rb_define_method(io, "create_watch", ioc_create_watch, 1);
|
828
|
+
rb_define_method(io, "add_watch", ioc_add_watch, 1);
|
829
|
+
rb_define_method(io, "buffer_size", ioc_get_buffer_size, 0);
|
830
|
+
rb_define_method(io, "set_buffer_size", ioc_set_buffer_size, 1);
|
831
|
+
rb_define_method(io, "buffer_condition", ioc_get_buffer_condition, 0);
|
832
|
+
rb_define_method(io, "flags", ioc_get_flags, 0);
|
833
|
+
rb_define_method(io, "set_flags", ioc_set_flags, 1);
|
834
|
+
rb_define_method(io, "buffered", ioc_get_buffered, 0);
|
835
|
+
rb_define_method(io, "set_buffered", ioc_set_buffered, 1);
|
836
|
+
rb_define_method(io, "encoding", ioc_get_encoding, 0);
|
837
|
+
rb_define_method(io, "set_encoding", ioc_set_encoding, 1);
|
838
|
+
|
839
|
+
G_DEF_SETTERS(io);
|
840
|
+
|
841
|
+
/* GSeekType */
|
842
|
+
rb_define_const(io, "SEEK_CUR", INT2NUM(G_SEEK_CUR));
|
843
|
+
rb_define_const(io, "SEEK_SET", INT2NUM(G_SEEK_SET));
|
844
|
+
rb_define_const(io, "SEEK_END", INT2NUM(G_SEEK_END));
|
845
|
+
|
846
|
+
/* GIOStatus */
|
847
|
+
rb_define_const(io, "STATUS_ERROR", INT2NUM(G_IO_STATUS_ERROR));
|
848
|
+
rb_define_const(io, "STATUS_NORMAL", INT2NUM(G_IO_STATUS_NORMAL));
|
849
|
+
rb_define_const(io, "STATUS_EOF", INT2NUM(G_IO_STATUS_EOF));
|
850
|
+
rb_define_const(io, "STATUS_AGAIN", INT2NUM(G_IO_STATUS_AGAIN));
|
851
|
+
|
852
|
+
/* GIOCondition */
|
853
|
+
rb_define_const(io, "IN", INT2NUM(G_IO_IN));
|
854
|
+
rb_define_const(io, "OUT", INT2NUM(G_IO_OUT));
|
855
|
+
rb_define_const(io, "PRI", INT2NUM(G_IO_PRI));
|
856
|
+
rb_define_const(io, "ERR", INT2NUM(G_IO_ERR));
|
857
|
+
rb_define_const(io, "HUP", INT2NUM(G_IO_HUP));
|
858
|
+
rb_define_const(io, "NVAL", INT2NUM(G_IO_NVAL));
|
859
|
+
|
860
|
+
/* GIOFlags */
|
861
|
+
rb_define_const(io, "FLAG_APPEND", INT2NUM(G_IO_FLAG_APPEND));
|
862
|
+
rb_define_const(io, "FLAG_NONBLOCK", INT2NUM(G_IO_FLAG_NONBLOCK));
|
863
|
+
rb_define_const(io, "FLAG_READABLE", INT2NUM(G_IO_FLAG_IS_READABLE));
|
864
|
+
rb_define_const(io, "FLAG_WRITEABLE", INT2NUM(G_IO_FLAG_IS_WRITEABLE));
|
865
|
+
rb_define_const(io, "FLAG_IS_SEEKABLE", INT2NUM(G_IO_FLAG_IS_SEEKABLE));
|
866
|
+
rb_define_const(io, "FLAG_MASK", INT2NUM(G_IO_FLAG_MASK));
|
867
|
+
rb_define_const(io, "FLAG_GET_MASK", INT2NUM(G_IO_FLAG_GET_MASK));
|
868
|
+
rb_define_const(io, "FLAG_SET_MASK", INT2NUM(G_IO_FLAG_SET_MASK));
|
869
|
+
|
870
|
+
/* GIOChannelError */
|
871
|
+
rb_define_singleton_method(ioc_error, "from_errno", ioc_error_s_from_errno, 1);
|
872
|
+
|
873
|
+
rb_define_const(ioc_error, "FBIG", INT2NUM(G_IO_CHANNEL_ERROR_FBIG));
|
874
|
+
rb_define_const(ioc_error, "INVAL", INT2NUM(G_IO_CHANNEL_ERROR_INVAL));
|
875
|
+
rb_define_const(ioc_error, "IO", INT2NUM(G_IO_CHANNEL_ERROR_IO));
|
876
|
+
rb_define_const(ioc_error, "ISDIR", INT2NUM(G_IO_CHANNEL_ERROR_ISDIR));
|
877
|
+
rb_define_const(ioc_error, "NOSPC", INT2NUM(G_IO_CHANNEL_ERROR_NOSPC));
|
878
|
+
rb_define_const(ioc_error, "NXIO", INT2NUM(G_IO_CHANNEL_ERROR_NXIO));
|
879
|
+
rb_define_const(ioc_error, "OVERFLOW", INT2NUM(G_IO_CHANNEL_ERROR_OVERFLOW));
|
880
|
+
rb_define_const(ioc_error, "PIPE", INT2NUM(G_IO_CHANNEL_ERROR_PIPE));
|
881
|
+
rb_define_const(ioc_error, "FAILED", INT2NUM(G_IO_CHANNEL_ERROR_FAILED));
|
882
|
+
|
883
|
+
}
|