glib2 0.90.8-x86-mingw32 → 0.90.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +46 -0
- data/Rakefile +1 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_iochannel.c +15 -6
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/ext/glib2/rbgobject.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +3 -2
- data/lib/mkmf-gnome2.rb +47 -23
- data/test/glib-test-init.rb +1 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +3 -2
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/include/glib-2.0/gio/gaction.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
- data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
- data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
- data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
- data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
- data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
- data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
- data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
- data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
- data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
- data/vendor/local/lib/gio-2.0.def +142 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +21 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +3 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
- data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
- data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
- data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
- data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
- data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
- data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
- data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
- data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -2
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
- metadata +78 -146
- data/ext/glib2/Makefile +0 -169
- data/ext/glib2/glib-enum-types.c +0 -1065
- data/ext/glib2/glib-enum-types.h +0 -144
- data/ext/glib2/ruby-glib2.pc +0 -3
- data/test-unit/COPYING +0 -56
- data/test-unit/GPL +0 -340
- data/test-unit/History.txt +0 -279
- data/test-unit/Manifest.txt +0 -110
- data/test-unit/PSFL +0 -271
- data/test-unit/README.txt +0 -75
- data/test-unit/Rakefile +0 -53
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +0 -153
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +0 -469
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +0 -82
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +0 -393
- data/test-unit/html/index.html +0 -285
- data/test-unit/html/index.html.ja +0 -299
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +0 -636
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +0 -483
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +0 -339
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +0 -559
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit.rb +0 -328
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1792
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -415
- data/test-unit/lib/test/unit/collector.rb +0 -38
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -187
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/collector/xml.rb +0 -250
- data/test-unit/lib/test/unit/color-scheme.rb +0 -106
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -740
- data/test-unit/lib/test/unit/error.rb +0 -131
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/runner/xml.rb +0 -15
- data/test-unit/lib/test/unit/testcase.rb +0 -515
- data/test-unit/lib/test/unit/testresult.rb +0 -125
- data/test-unit/lib/test/unit/testsuite.rb +0 -134
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/output.rb +0 -31
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -22
- data/test-unit/test/test-assertions.rb +0 -1849
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -69
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -324
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -569
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -137
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_tap.rb +0 -33
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test-output.rb +0 -11
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
9
|
<link rel="prev" href="glib-Hostname-Utilities.html" title="Hostname Utilities">
|
10
10
|
<link rel="next" href="glib-Commandline-option-parser.html" title="Commandline option parser">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-Shell-related-Utilities.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-Shell-related-Utilities"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv"
|
38
|
+
<div class="refsynopsisdiv">
|
39
39
|
<a name="glib-Shell-related-Utilities.synopsis"></a><h2>Synopsis</h2>
|
40
40
|
<pre class="synopsis">
|
41
41
|
#include <glib.h>
|
@@ -45,18 +45,18 @@ enum <a class="link" href="glib-Shell-related-Utilities.html#GShe
|
|
45
45
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Shell-related-Utilities.html#g-shell-parse-argv" title="g_shell_parse_argv ()">g_shell_parse_argv</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *command_line</code></em>,
|
46
46
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *argcp</code></em>,
|
47
47
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> ***argvp</code></em>,
|
48
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
49
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
50
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
51
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
48
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
49
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Shell-related-Utilities.html#g-shell-quote" title="g_shell_quote ()">g_shell_quote</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *unquoted_string</code></em>);
|
50
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Shell-related-Utilities.html#g-shell-unquote" title="g_shell_unquote ()">g_shell_unquote</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *quoted_string</code></em>,
|
51
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
52
52
|
</pre>
|
53
53
|
</div>
|
54
|
-
<div class="refsect1"
|
54
|
+
<div class="refsect1">
|
55
55
|
<a name="glib-Shell-related-Utilities.description"></a><h2>Description</h2>
|
56
56
|
</div>
|
57
|
-
<div class="refsect1"
|
57
|
+
<div class="refsect1">
|
58
58
|
<a name="glib-Shell-related-Utilities.details"></a><h2>Details</h2>
|
59
|
-
<div class="refsect2"
|
59
|
+
<div class="refsect2">
|
60
60
|
<a name="GShellError"></a><h3>enum GShellError</h3>
|
61
61
|
<pre class="programlisting">typedef enum
|
62
62
|
{
|
@@ -92,23 +92,23 @@ Error codes returned by shell functions.
|
|
92
92
|
</table></div>
|
93
93
|
</div>
|
94
94
|
<hr>
|
95
|
-
<div class="refsect2"
|
95
|
+
<div class="refsect2">
|
96
96
|
<a name="G-SHELL-ERROR:CAPS"></a><h3>G_SHELL_ERROR</h3>
|
97
97
|
<pre class="programlisting">#define G_SHELL_ERROR g_shell_error_quark ()
|
98
98
|
</pre>
|
99
99
|
<p>
|
100
100
|
Error domain for shell functions. Errors in this domain will be from
|
101
|
-
the <a class="link" href="glib-Shell-related-Utilities.html#GShellError" title="enum GShellError"><span class="type">GShellError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> for information on error
|
101
|
+
the <a class="link" href="glib-Shell-related-Utilities.html#GShellError" title="enum GShellError"><span class="type">GShellError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> for information on error
|
102
102
|
domains.
|
103
103
|
</p>
|
104
104
|
</div>
|
105
105
|
<hr>
|
106
|
-
<div class="refsect2"
|
106
|
+
<div class="refsect2">
|
107
107
|
<a name="g-shell-parse-argv"></a><h3>g_shell_parse_argv ()</h3>
|
108
108
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_shell_parse_argv (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *command_line</code></em>,
|
109
109
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *argcp</code></em>,
|
110
110
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> ***argvp</code></em>,
|
111
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
111
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
112
112
|
<p>
|
113
113
|
Parses a command line into an argument vector, in much the same way
|
114
114
|
the shell would, but without many of the expansions the shell would
|
@@ -125,36 +125,32 @@ domain. Free the returned vector with <a class="link" href="glib-String-Utility-
|
|
125
125
|
<tbody>
|
126
126
|
<tr>
|
127
127
|
<td><p><span class="term"><em class="parameter"><code>command_line</code></em> :</span></p></td>
|
128
|
-
<td>command line to parse
|
129
|
-
</td>
|
128
|
+
<td>command line to parse</td>
|
130
129
|
</tr>
|
131
130
|
<tr>
|
132
131
|
<td><p><span class="term"><em class="parameter"><code>argcp</code></em> :</span></p></td>
|
133
|
-
<td>return location for number of args
|
134
|
-
</td>
|
132
|
+
<td>return location for number of args</td>
|
135
133
|
</tr>
|
136
134
|
<tr>
|
137
135
|
<td><p><span class="term"><em class="parameter"><code>argvp</code></em> :</span></p></td>
|
138
|
-
<td>return location for array of args
|
139
|
-
</td>
|
136
|
+
<td>return location for array of args</td>
|
140
137
|
</tr>
|
141
138
|
<tr>
|
142
139
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
143
|
-
<td>return location for error
|
144
|
-
</td>
|
140
|
+
<td>return location for error</td>
|
145
141
|
</tr>
|
146
142
|
<tr>
|
147
143
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
148
|
-
<td>
|
149
|
-
</td>
|
144
|
+
<td>
|
145
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> on success, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if error set</td>
|
150
146
|
</tr>
|
151
147
|
</tbody>
|
152
148
|
</table></div>
|
153
149
|
</div>
|
154
150
|
<hr>
|
155
|
-
<div class="refsect2"
|
151
|
+
<div class="refsect2">
|
156
152
|
<a name="g-shell-quote"></a><h3>g_shell_quote ()</h3>
|
157
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
153
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_shell_quote (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *unquoted_string</code></em>);</pre>
|
158
154
|
<p>
|
159
155
|
Quotes a string so that the shell (/bin/sh) will interpret the
|
160
156
|
quoted string to mean <em class="parameter"><code>unquoted_string</code></em>. If you pass a filename to
|
@@ -168,22 +164,20 @@ used).
|
|
168
164
|
<tbody>
|
169
165
|
<tr>
|
170
166
|
<td><p><span class="term"><em class="parameter"><code>unquoted_string</code></em> :</span></p></td>
|
171
|
-
<td>a literal string
|
172
|
-
</td>
|
167
|
+
<td>a literal string</td>
|
173
168
|
</tr>
|
174
169
|
<tr>
|
175
170
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
176
|
-
<td>
|
177
|
-
</td>
|
171
|
+
<td>quoted string</td>
|
178
172
|
</tr>
|
179
173
|
</tbody>
|
180
174
|
</table></div>
|
181
175
|
</div>
|
182
176
|
<hr>
|
183
|
-
<div class="refsect2"
|
177
|
+
<div class="refsect2">
|
184
178
|
<a name="g-shell-unquote"></a><h3>g_shell_unquote ()</h3>
|
185
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
186
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
179
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_shell_unquote (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *quoted_string</code></em>,
|
180
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
187
181
|
<p>
|
188
182
|
Unquotes a string as the shell (/bin/sh) would. Only handles
|
189
183
|
quotes; if a string contains file globs, arithmetic operators,
|
@@ -213,18 +207,15 @@ literally.
|
|
213
207
|
<tbody>
|
214
208
|
<tr>
|
215
209
|
<td><p><span class="term"><em class="parameter"><code>quoted_string</code></em> :</span></p></td>
|
216
|
-
<td>shell-quoted string
|
217
|
-
</td>
|
210
|
+
<td>shell-quoted string</td>
|
218
211
|
</tr>
|
219
212
|
<tr>
|
220
213
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
221
|
-
<td>error return location or NULL
|
222
|
-
</td>
|
214
|
+
<td>error return location or NULL</td>
|
223
215
|
</tr>
|
224
216
|
<tr>
|
225
217
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
226
|
-
<td>
|
227
|
-
</td>
|
218
|
+
<td>an unquoted string</td>
|
228
219
|
</tr>
|
229
220
|
</tbody>
|
230
221
|
</table></div>
|
@@ -233,6 +224,6 @@ literally.
|
|
233
224
|
</div>
|
234
225
|
<div class="footer">
|
235
226
|
<hr>
|
236
|
-
Generated by GTK-Doc V1.
|
227
|
+
Generated by GTK-Doc V1.16.1</div>
|
237
228
|
</body>
|
238
229
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
9
|
<link rel="prev" href="glib-Perl-compatible-regular-expressions.html" title="Perl-compatible regular expressions">
|
10
10
|
<link rel="next" href="glib-Key-value-file-parser.html" title="Key-value file parser">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-Simple-XML-Subset-Parser.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-Simple-XML-Subset-Parser"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv"
|
38
|
+
<div class="refsynopsisdiv">
|
39
39
|
<a name="glib-Simple-XML-Subset-Parser.synopsis"></a><h2>Synopsis</h2>
|
40
40
|
<pre class="synopsis">
|
41
41
|
#include <glib.h>
|
@@ -44,34 +44,34 @@ enum <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMa
|
|
44
44
|
#define <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR:CAPS" title="G_MARKUP_ERROR">G_MARKUP_ERROR</a>
|
45
45
|
enum <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseFlags" title="enum GMarkupParseFlags">GMarkupParseFlags</a>;
|
46
46
|
<a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext">GMarkupParseContext</a>;
|
47
|
-
|
48
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
47
|
+
struct <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser">GMarkupParser</a>;
|
48
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-escape-text" title="g_markup_escape_text ()">g_markup_escape_text</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *text</code></em>,
|
49
49
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> length</code></em>);
|
50
50
|
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-printf-escaped" title="g_markup_printf_escaped ()">g_markup_printf_escaped</a> (<em class="parameter"><code>const <span class="type">char</span> *format</code></em>,
|
51
51
|
<em class="parameter"><code>...</code></em>);
|
52
52
|
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-vprintf-escaped" title="g_markup_vprintf_escaped ()">g_markup_vprintf_escaped</a> (<em class="parameter"><code>const <span class="type">char</span> *format</code></em>,
|
53
53
|
<em class="parameter"><code><span class="type">va_list</span> args</code></em>);
|
54
54
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-end-parse" title="g_markup_parse_context_end_parse ()">g_markup_parse_context_end_parse</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
55
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
55
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
56
56
|
<span class="returnvalue">void</span> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free" title="g_markup_parse_context_free ()">g_markup_parse_context_free</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);
|
57
57
|
<span class="returnvalue">void</span> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-get-position" title="g_markup_parse_context_get_position ()">g_markup_parse_context_get_position</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
58
58
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *line_number</code></em>,
|
59
59
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *char_number</code></em>);
|
60
60
|
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-get-element" title="g_markup_parse_context_get_element ()">g_markup_parse_context_get_element</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);
|
61
|
-
const <a class="link" href="glib-Singly-Linked-Lists.html#GSList" title="GSList"><span class="returnvalue">GSList</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-get-element-stack" title="g_markup_parse_context_get_element_stack ()">g_markup_parse_context_get_element_stack</a>
|
61
|
+
const <a class="link" href="glib-Singly-Linked-Lists.html#GSList" title="struct GSList"><span class="returnvalue">GSList</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-get-element-stack" title="g_markup_parse_context_get_element_stack ()">g_markup_parse_context_get_element_stack</a>
|
62
62
|
(<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);
|
63
63
|
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-get-user-data" title="g_markup_parse_context_get_user_data ()">g_markup_parse_context_get_user_data</a>
|
64
64
|
(<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);
|
65
|
-
<a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-new" title="g_markup_parse_context_new ()">g_markup_parse_context_new</a> (<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
65
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> * <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-new" title="g_markup_parse_context_new ()">g_markup_parse_context_new</a> (<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
66
66
|
<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseFlags" title="enum GMarkupParseFlags"><span class="type">GMarkupParseFlags</span></a> flags</code></em>,
|
67
67
|
<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>,
|
68
68
|
<em class="parameter"><code><a class="link" href="glib-Datasets.html#GDestroyNotify" title="GDestroyNotify ()"><span class="type">GDestroyNotify</span></a> user_data_dnotify</code></em>);
|
69
69
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse" title="g_markup_parse_context_parse ()">g_markup_parse_context_parse</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
70
70
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *text</code></em>,
|
71
71
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> text_len</code></em>,
|
72
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
72
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
73
73
|
<span class="returnvalue">void</span> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()">g_markup_parse_context_push</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
74
|
-
<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
74
|
+
<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
75
75
|
<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>);
|
76
76
|
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-pop" title="g_markup_parse_context_pop ()">g_markup_parse_context_pop</a> (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);
|
77
77
|
|
@@ -79,47 +79,40 @@ enum <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMa
|
|
79
79
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-collect-attributes" title="g_markup_collect_attributes ()">g_markup_collect_attributes</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *element_name</code></em>,
|
80
80
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **attribute_names</code></em>,
|
81
81
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **attribute_values</code></em>,
|
82
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>,
|
82
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>,
|
83
83
|
<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a> first_type</code></em>,
|
84
84
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *first_attr</code></em>,
|
85
85
|
<em class="parameter"><code>...</code></em>);
|
86
86
|
</pre>
|
87
87
|
</div>
|
88
|
-
<div class="refsect1"
|
88
|
+
<div class="refsect1">
|
89
89
|
<a name="glib-Simple-XML-Subset-Parser.description"></a><h2>Description</h2>
|
90
90
|
<p>
|
91
91
|
The "GMarkup" parser is intended to parse a simple markup format
|
92
92
|
that's a subset of XML. This is a small, efficient, easy-to-use
|
93
|
-
parser. It should not be used if you expect to interoperate with
|
94
|
-
applications generating full-scale XML. However, it's very
|
95
|
-
application data files, config files, etc. where you
|
96
|
-
application will be the only one writing the file.
|
97
|
-
parsers should be able to parse the subset used by
|
98
|
-
easily migrate to full-scale XML at a later
|
93
|
+
parser. It should not be used if you expect to interoperate with
|
94
|
+
other applications generating full-scale XML. However, it's very
|
95
|
+
useful for application data files, config files, etc. where you
|
96
|
+
know your application will be the only one writing the file.
|
97
|
+
Full-scale XML parsers should be able to parse the subset used by
|
98
|
+
GMarkup, so you can easily migrate to full-scale XML at a later
|
99
|
+
time if the need arises.
|
99
100
|
</p>
|
100
101
|
<p>
|
101
|
-
GMarkup is not guaranteed to signal an error on all invalid XML;
|
102
|
-
parser may accept documents that an XML parser would not.
|
103
|
-
documents which are not well-formed<sup>[<a name="wellformed" href="#ftn.wellformed" class="footnote">5</a>]</sup>
|
104
|
-
documents.
|
102
|
+
GMarkup is not guaranteed to signal an error on all invalid XML;
|
103
|
+
the parser may accept documents that an XML parser would not.
|
104
|
+
However, XML documents which are not well-formed<sup>[<a name="wellformed" href="#ftn.wellformed" class="footnote">5</a>]</sup>
|
105
|
+
are not considered valid GMarkup documents.
|
105
106
|
</p>
|
106
107
|
<p>
|
107
108
|
Simplifications to XML include:
|
108
109
|
</p>
|
109
110
|
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
110
|
-
<li class="listitem"
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
No
|
115
|
-
</p></li>
|
116
|
-
<li class="listitem"><p>
|
117
|
-
Processing instructions, comments and the doctype declaration are "passed
|
118
|
-
through" but are not interpreted in any way.
|
119
|
-
</p></li>
|
120
|
-
<li class="listitem"><p>
|
121
|
-
No DTD or validation.
|
122
|
-
</p></li>
|
111
|
+
<li class="listitem">Only UTF-8 encoding is allowed</li>
|
112
|
+
<li class="listitem">No user-defined entities</li>
|
113
|
+
<li class="listitem">Processing instructions, comments and the doctype declaration
|
114
|
+
are "passed through" but are not interpreted in any way</li>
|
115
|
+
<li class="listitem">No DTD or validation.</li>
|
123
116
|
</ul></div>
|
124
117
|
<p>
|
125
118
|
</p>
|
@@ -127,28 +120,20 @@ No DTD or validation.
|
|
127
120
|
The markup format does support:
|
128
121
|
</p>
|
129
122
|
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
130
|
-
<li class="listitem"
|
131
|
-
|
132
|
-
|
133
|
-
<
|
134
|
-
|
135
|
-
</
|
136
|
-
<li class="listitem"
|
137
|
-
5 standard entities: <code class="literal">&amp; &lt; &gt; &quot; &apos;</code>
|
138
|
-
</p></li>
|
139
|
-
<li class="listitem"><p>
|
140
|
-
Character references
|
141
|
-
</p></li>
|
142
|
-
<li class="listitem"><p>
|
143
|
-
Sections marked as CDATA
|
144
|
-
</p></li>
|
123
|
+
<li class="listitem">Elements</li>
|
124
|
+
<li class="listitem">Attributes</li>
|
125
|
+
<li class="listitem">5 standard entities:
|
126
|
+
<code class="literal">&amp; &lt; &gt; &quot; &apos;</code>
|
127
|
+
</li>
|
128
|
+
<li class="listitem">Character references</li>
|
129
|
+
<li class="listitem">Sections marked as CDATA</li>
|
145
130
|
</ul></div>
|
146
131
|
<p>
|
147
132
|
</p>
|
148
133
|
</div>
|
149
|
-
<div class="refsect1"
|
134
|
+
<div class="refsect1">
|
150
135
|
<a name="glib-Simple-XML-Subset-Parser.details"></a><h2>Details</h2>
|
151
|
-
<div class="refsect2"
|
136
|
+
<div class="refsect2">
|
152
137
|
<a name="GMarkupError"></a><h3>enum GMarkupError</h3>
|
153
138
|
<pre class="programlisting">typedef enum
|
154
139
|
{
|
@@ -187,40 +172,44 @@ Error codes returned by markup parsing.
|
|
187
172
|
</tr>
|
188
173
|
<tr>
|
189
174
|
<td><p><a name="G-MARKUP-ERROR-UNKNOWN-ELEMENT:CAPS"></a><span class="term"><code class="literal">G_MARKUP_ERROR_UNKNOWN_ELEMENT</code></span></p></td>
|
190
|
-
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>
|
175
|
+
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>
|
176
|
+
functions; element wasn't known
|
191
177
|
</td>
|
192
178
|
</tr>
|
193
179
|
<tr>
|
194
180
|
<td><p><a name="G-MARKUP-ERROR-UNKNOWN-ATTRIBUTE:CAPS"></a><span class="term"><code class="literal">G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE</code></span></p></td>
|
195
|
-
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>
|
181
|
+
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>
|
182
|
+
functions; attribute wasn't known
|
196
183
|
</td>
|
197
184
|
</tr>
|
198
185
|
<tr>
|
199
186
|
<td><p><a name="G-MARKUP-ERROR-INVALID-CONTENT:CAPS"></a><span class="term"><code class="literal">G_MARKUP_ERROR_INVALID_CONTENT</code></span></p></td>
|
200
|
-
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>
|
187
|
+
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>
|
188
|
+
functions; content was invalid
|
201
189
|
</td>
|
202
190
|
</tr>
|
203
191
|
<tr>
|
204
192
|
<td><p><a name="G-MARKUP-ERROR-MISSING-ATTRIBUTE:CAPS"></a><span class="term"><code class="literal">G_MARKUP_ERROR_MISSING_ATTRIBUTE</code></span></p></td>
|
205
|
-
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>
|
193
|
+
<td>error should be set by <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>
|
194
|
+
functions; a required attribute was missing
|
206
195
|
</td>
|
207
196
|
</tr>
|
208
197
|
</tbody>
|
209
198
|
</table></div>
|
210
199
|
</div>
|
211
200
|
<hr>
|
212
|
-
<div class="refsect2"
|
201
|
+
<div class="refsect2">
|
213
202
|
<a name="G-MARKUP-ERROR:CAPS"></a><h3>G_MARKUP_ERROR</h3>
|
214
203
|
<pre class="programlisting">#define G_MARKUP_ERROR g_markup_error_quark ()
|
215
204
|
</pre>
|
216
205
|
<p>
|
217
|
-
Error domain for markup parsing.
|
218
|
-
be from the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupError" title="enum GMarkupError"><span class="type">GMarkupError</span></a> enumeration.
|
219
|
-
error domains.
|
206
|
+
Error domain for markup parsing.
|
207
|
+
Errors in this domain will be from the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupError" title="enum GMarkupError"><span class="type">GMarkupError</span></a> enumeration.
|
208
|
+
See <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> for information on error domains.
|
220
209
|
</p>
|
221
210
|
</div>
|
222
211
|
<hr>
|
223
|
-
<div class="refsect2"
|
212
|
+
<div class="refsect2">
|
224
213
|
<a name="GMarkupParseFlags"></a><h3>enum GMarkupParseFlags</h3>
|
225
214
|
<pre class="programlisting">typedef enum
|
226
215
|
{
|
@@ -237,44 +226,47 @@ Flags that affect the behaviour of the parser.
|
|
237
226
|
<tbody>
|
238
227
|
<tr>
|
239
228
|
<td><p><a name="G-MARKUP-DO-NOT-USE-THIS-UNSUPPORTED-FLAG:CAPS"></a><span class="term"><code class="literal">G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG</code></span></p></td>
|
240
|
-
<td>flag you should not use
|
229
|
+
<td>flag you should not use
|
241
230
|
</td>
|
242
231
|
</tr>
|
243
232
|
<tr>
|
244
233
|
<td><p><a name="G-MARKUP-TREAT-CDATA-AS-TEXT:CAPS"></a><span class="term"><code class="literal">G_MARKUP_TREAT_CDATA_AS_TEXT</code></span></p></td>
|
245
234
|
<td>When this flag is set, CDATA marked
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
235
|
+
sections are not passed literally to the <em class="parameter"><code>passthrough</code></em> function of
|
236
|
+
the parser. Instead, the content of the section (without the
|
237
|
+
<code class="literal"><![CDATA[</code> and <code class="literal">]]></code>) is
|
238
|
+
passed to the <em class="parameter"><code>text</code></em> function. This flag was added in GLib 2.12
|
250
239
|
</td>
|
251
240
|
</tr>
|
252
241
|
<tr>
|
253
242
|
<td><p><a name="G-MARKUP-PREFIX-ERROR-POSITION:CAPS"></a><span class="term"><code class="literal">G_MARKUP_PREFIX_ERROR_POSITION</code></span></p></td>
|
254
243
|
<td>Normally errors caught by GMarkup
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
244
|
+
itself have line/column information prefixed to them to let the
|
245
|
+
caller know the location of the error. When this flag is set the
|
246
|
+
location information is also prefixed to errors generated by the
|
247
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> implementation functions
|
259
248
|
</td>
|
260
249
|
</tr>
|
261
250
|
</tbody>
|
262
251
|
</table></div>
|
263
252
|
</div>
|
264
253
|
<hr>
|
265
|
-
<div class="refsect2"
|
254
|
+
<div class="refsect2">
|
266
255
|
<a name="GMarkupParseContext"></a><h3>GMarkupParseContext</h3>
|
267
256
|
<pre class="programlisting">typedef struct _GMarkupParseContext GMarkupParseContext;</pre>
|
268
257
|
<p>
|
269
|
-
A parse context is used to parse a stream of bytes that
|
270
|
-
contain marked-up text.
|
271
|
-
|
258
|
+
A parse context is used to parse a stream of bytes that
|
259
|
+
you expect to contain marked-up text.
|
260
|
+
</p>
|
261
|
+
<p>
|
262
|
+
See <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-new" title="g_markup_parse_context_new ()"><code class="function">g_markup_parse_context_new()</code></a>, <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>, and so
|
263
|
+
on for more details.
|
272
264
|
</p>
|
273
265
|
</div>
|
274
266
|
<hr>
|
275
|
-
<div class="refsect2"
|
276
|
-
<a name="GMarkupParser"></a><h3>GMarkupParser</h3>
|
277
|
-
<pre class="programlisting">
|
267
|
+
<div class="refsect2">
|
268
|
+
<a name="GMarkupParser"></a><h3>struct GMarkupParser</h3>
|
269
|
+
<pre class="programlisting">struct GMarkupParser {
|
278
270
|
/* Called for open tags <foo bar="baz"> */
|
279
271
|
void (*start_element) (GMarkupParseContext *context,
|
280
272
|
const gchar *element_name,
|
@@ -293,7 +285,7 @@ contain marked-up text. See <a class="link" href="glib-Simple-XML-Subset-Parser.
|
|
293
285
|
/* text is not nul-terminated */
|
294
286
|
void (*text) (GMarkupParseContext *context,
|
295
287
|
const gchar *text,
|
296
|
-
gsize text_len,
|
288
|
+
gsize text_len,
|
297
289
|
gpointer user_data,
|
298
290
|
GError **error);
|
299
291
|
|
@@ -304,7 +296,7 @@ contain marked-up text. See <a class="link" href="glib-Simple-XML-Subset-Parser.
|
|
304
296
|
/* text is not nul-terminated. */
|
305
297
|
void (*passthrough) (GMarkupParseContext *context,
|
306
298
|
const gchar *passthrough_text,
|
307
|
-
gsize text_len,
|
299
|
+
gsize text_len,
|
308
300
|
gpointer user_data,
|
309
301
|
GError **error);
|
310
302
|
|
@@ -314,16 +306,16 @@ contain marked-up text. See <a class="link" href="glib-Simple-XML-Subset-Parser.
|
|
314
306
|
void (*error) (GMarkupParseContext *context,
|
315
307
|
GError *error,
|
316
308
|
gpointer user_data);
|
317
|
-
}
|
309
|
+
};
|
318
310
|
</pre>
|
319
311
|
<p>
|
320
|
-
Any of the fields in <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> can be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, in which case they
|
321
|
-
will be ignored. Except for the <em class="parameter"><code>error</code></em> function, any of these
|
322
|
-
|
323
|
-
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-UNKNOWN-
|
324
|
-
|
325
|
-
from
|
326
|
-
|
312
|
+
Any of the fields in <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> can be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, in which case they
|
313
|
+
will be ignored. Except for the <em class="parameter"><code>error</code></em> function, any of these callbacks
|
314
|
+
can set an error; in particular the <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-UNKNOWN-ELEMENT:CAPS"><code class="literal">G_MARKUP_ERROR_UNKNOWN_ELEMENT</code></a>,
|
315
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-UNKNOWN-ATTRIBUTE:CAPS"><code class="literal">G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE</code></a>, and <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-INVALID-CONTENT:CAPS"><code class="literal">G_MARKUP_ERROR_INVALID_CONTENT</code></a>
|
316
|
+
errors are intended to be set from these callbacks. If you set an error
|
317
|
+
from a callback, <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse" title="g_markup_parse_context_parse ()"><code class="function">g_markup_parse_context_parse()</code></a> will report that error
|
318
|
+
back to its caller.
|
327
319
|
</p>
|
328
320
|
<div class="variablelist"><table border="0">
|
329
321
|
<col align="left" valign="top">
|
@@ -331,46 +323,41 @@ from these callbacks. If you set an error from a callback,
|
|
331
323
|
<tr>
|
332
324
|
<td><p><span class="term"><em class="structfield"><code><a name="GMarkupParser.start-element"></a>start_element</code></em> ()</span></p></td>
|
333
325
|
<td>Callback to invoke when the opening tag of an element
|
334
|
-
|
335
|
-
</td>
|
326
|
+
is seen.</td>
|
336
327
|
</tr>
|
337
328
|
<tr>
|
338
329
|
<td><p><span class="term"><em class="structfield"><code><a name="GMarkupParser.end-element"></a>end_element</code></em> ()</span></p></td>
|
339
|
-
<td>Callback to invoke when the closing tag of an element
|
340
|
-
|
341
|
-
|
342
|
-
</td>
|
330
|
+
<td>Callback to invoke when the closing tag of an element
|
331
|
+
is seen. Note that this is also called for empty tags like
|
332
|
+
<code class="literal"><empty/></code>.</td>
|
343
333
|
</tr>
|
344
334
|
<tr>
|
345
335
|
<td><p><span class="term"><em class="structfield"><code><a name="GMarkupParser.text"></a>text</code></em> ()</span></p></td>
|
346
336
|
<td>Callback to invoke when some text is seen (text is always
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
</td>
|
337
|
+
inside an element). Note that the text of an element may be spread
|
338
|
+
over multiple calls of this function. If the
|
339
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-TREAT-CDATA-AS-TEXT:CAPS"><code class="literal">G_MARKUP_TREAT_CDATA_AS_TEXT</code></a> flag is set, this function is also
|
340
|
+
called for the content of CDATA marked sections.</td>
|
352
341
|
</tr>
|
353
342
|
<tr>
|
354
343
|
<td><p><span class="term"><em class="structfield"><code><a name="GMarkupParser.passthrough"></a>passthrough</code></em> ()</span></p></td>
|
355
|
-
<td>Callback to invoke for comments, processing instructions
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
</td>
|
344
|
+
<td>Callback to invoke for comments, processing instructions
|
345
|
+
and doctype declarations; if you're re-writing the parsed document,
|
346
|
+
write the passthrough text back out in the same position. If the
|
347
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-TREAT-CDATA-AS-TEXT:CAPS"><code class="literal">G_MARKUP_TREAT_CDATA_AS_TEXT</code></a> flag is not set, this function is also
|
348
|
+
called for CDATA marked sections.</td>
|
361
349
|
</tr>
|
362
350
|
<tr>
|
363
351
|
<td><p><span class="term"><em class="structfield"><code><a name="GMarkupParser.error"></a>error</code></em> ()</span></p></td>
|
364
|
-
<td>Callback to invoke when an error occurs
|
365
|
-
</td>
|
352
|
+
<td>Callback to invoke when an error occurs.</td>
|
366
353
|
</tr>
|
367
354
|
</tbody>
|
368
355
|
</table></div>
|
369
356
|
</div>
|
370
357
|
<hr>
|
371
|
-
<div class="refsect2"
|
358
|
+
<div class="refsect2">
|
372
359
|
<a name="g-markup-escape-text"></a><h3>g_markup_escape_text ()</h3>
|
373
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
360
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_markup_escape_text (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *text</code></em>,
|
374
361
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> length</code></em>);</pre>
|
375
362
|
<p>
|
376
363
|
Escapes text so that the markup parser will parse it verbatim.
|
@@ -395,24 +382,21 @@ valid XML 1.1 and will be accepted by the GMarkup parser.
|
|
395
382
|
<tbody>
|
396
383
|
<tr>
|
397
384
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
398
|
-
<td>some valid UTF-8 text
|
399
|
-
</td>
|
385
|
+
<td>some valid UTF-8 text</td>
|
400
386
|
</tr>
|
401
387
|
<tr>
|
402
388
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
403
|
-
<td>length of <em class="parameter"><code>text</code></em> in bytes, or -1 if the text is nul-terminated
|
404
|
-
</td>
|
389
|
+
<td>length of <em class="parameter"><code>text</code></em> in bytes, or -1 if the text is nul-terminated</td>
|
405
390
|
</tr>
|
406
391
|
<tr>
|
407
392
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
408
|
-
<td>
|
409
|
-
</td>
|
393
|
+
<td>a newly allocated string with the escaped text</td>
|
410
394
|
</tr>
|
411
395
|
</tbody>
|
412
396
|
</table></div>
|
413
397
|
</div>
|
414
398
|
<hr>
|
415
|
-
<div class="refsect2"
|
399
|
+
<div class="refsect2">
|
416
400
|
<a name="g-markup-printf-escaped"></a><h3>g_markup_printf_escaped ()</h3>
|
417
401
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_markup_printf_escaped (<em class="parameter"><code>const <span class="type">char</span> *format</code></em>,
|
418
402
|
<em class="parameter"><code>...</code></em>);</pre>
|
@@ -460,27 +444,23 @@ might themselves contain markup.
|
|
460
444
|
<tbody>
|
461
445
|
<tr>
|
462
446
|
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
463
|
-
<td>printf() style format string
|
464
|
-
</td>
|
447
|
+
<td>printf() style format string</td>
|
465
448
|
</tr>
|
466
449
|
<tr>
|
467
450
|
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
468
|
-
<td>the arguments to insert in the format string
|
469
|
-
</td>
|
451
|
+
<td>the arguments to insert in the format string</td>
|
470
452
|
</tr>
|
471
453
|
<tr>
|
472
454
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
473
|
-
<td>
|
474
|
-
|
475
|
-
|
476
|
-
</td>
|
455
|
+
<td>newly allocated result from formatting
|
456
|
+
operation. Free with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.</td>
|
477
457
|
</tr>
|
478
458
|
</tbody>
|
479
459
|
</table></div>
|
480
460
|
<p class="since">Since 2.4</p>
|
481
461
|
</div>
|
482
462
|
<hr>
|
483
|
-
<div class="refsect2"
|
463
|
+
<div class="refsect2">
|
484
464
|
<a name="g-markup-vprintf-escaped"></a><h3>g_markup_vprintf_escaped ()</h3>
|
485
465
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_markup_vprintf_escaped (<em class="parameter"><code>const <span class="type">char</span> *format</code></em>,
|
486
466
|
<em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
|
@@ -494,8 +474,7 @@ of <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-escape-text
|
|
494
474
|
<tbody>
|
495
475
|
<tr>
|
496
476
|
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
|
497
|
-
<td>printf() style format string
|
498
|
-
</td>
|
477
|
+
<td>printf() style format string</td>
|
499
478
|
</tr>
|
500
479
|
<tr>
|
501
480
|
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
|
@@ -504,23 +483,23 @@ of <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-escape-text
|
|
504
483
|
</tr>
|
505
484
|
<tr>
|
506
485
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
507
|
-
<td>
|
508
|
-
|
509
|
-
|
510
|
-
</td>
|
486
|
+
<td>newly allocated result from formatting
|
487
|
+
operation. Free with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.</td>
|
511
488
|
</tr>
|
512
489
|
</tbody>
|
513
490
|
</table></div>
|
514
491
|
<p class="since">Since 2.4</p>
|
515
492
|
</div>
|
516
493
|
<hr>
|
517
|
-
<div class="refsect2"
|
494
|
+
<div class="refsect2">
|
518
495
|
<a name="g-markup-parse-context-end-parse"></a><h3>g_markup_parse_context_end_parse ()</h3>
|
519
496
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_markup_parse_context_end_parse (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
520
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
497
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
521
498
|
<p>
|
522
499
|
Signals to the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> that all data has been
|
523
500
|
fed into the parse context with <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse" title="g_markup_parse_context_parse ()"><code class="function">g_markup_parse_context_parse()</code></a>.
|
501
|
+
</p>
|
502
|
+
<p>
|
524
503
|
This function reports an error if the document isn't complete,
|
525
504
|
for example if elements are still open.
|
526
505
|
</p>
|
@@ -534,25 +513,27 @@ for example if elements are still open.
|
|
534
513
|
</tr>
|
535
514
|
<tr>
|
536
515
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
537
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>
|
516
|
+
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>
|
538
517
|
</td>
|
539
518
|
</tr>
|
540
519
|
<tr>
|
541
520
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
542
|
-
<td>
|
543
|
-
</td>
|
521
|
+
<td>
|
522
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> on success, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error was set</td>
|
544
523
|
</tr>
|
545
524
|
</tbody>
|
546
525
|
</table></div>
|
547
526
|
</div>
|
548
527
|
<hr>
|
549
|
-
<div class="refsect2"
|
528
|
+
<div class="refsect2">
|
550
529
|
<a name="g-markup-parse-context-free"></a><h3>g_markup_parse_context_free ()</h3>
|
551
530
|
<pre class="programlisting"><span class="returnvalue">void</span> g_markup_parse_context_free (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);</pre>
|
552
531
|
<p>
|
553
|
-
Frees a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>.
|
554
|
-
|
555
|
-
|
532
|
+
Frees a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>.
|
533
|
+
</p>
|
534
|
+
<p>
|
535
|
+
This function can't be called from inside one of the
|
536
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> functions or while a subparser is pushed.
|
556
537
|
</p>
|
557
538
|
<div class="variablelist"><table border="0">
|
558
539
|
<col align="left" valign="top">
|
@@ -564,7 +545,7 @@ a subparser is pushed.
|
|
564
545
|
</table></div>
|
565
546
|
</div>
|
566
547
|
<hr>
|
567
|
-
<div class="refsect2"
|
548
|
+
<div class="refsect2">
|
568
549
|
<a name="g-markup-parse-context-get-position"></a><h3>g_markup_parse_context_get_position ()</h3>
|
569
550
|
<pre class="programlisting"><span class="returnvalue">void</span> g_markup_parse_context_get_position (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
570
551
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> *line_number</code></em>,
|
@@ -585,19 +566,19 @@ semantics for what constitutes the "current" line number other than
|
|
585
566
|
</tr>
|
586
567
|
<tr>
|
587
568
|
<td><p><span class="term"><em class="parameter"><code>line_number</code></em> :</span></p></td>
|
588
|
-
<td>return location for a line number, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
569
|
+
<td>return location for a line number, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
589
570
|
</td>
|
590
571
|
</tr>
|
591
572
|
<tr>
|
592
573
|
<td><p><span class="term"><em class="parameter"><code>char_number</code></em> :</span></p></td>
|
593
|
-
<td>return location for a char-on-line number, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
574
|
+
<td>return location for a char-on-line number, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
594
575
|
</td>
|
595
576
|
</tr>
|
596
577
|
</tbody>
|
597
578
|
</table></div>
|
598
579
|
</div>
|
599
580
|
<hr>
|
600
|
-
<div class="refsect2"
|
581
|
+
<div class="refsect2">
|
601
582
|
<a name="g-markup-parse-context-get-element"></a><h3>g_markup_parse_context_get_element ()</h3>
|
602
583
|
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_markup_parse_context_get_element (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);</pre>
|
603
584
|
<p>
|
@@ -626,13 +607,15 @@ elements, see <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-
|
|
626
607
|
<p class="since">Since 2.2</p>
|
627
608
|
</div>
|
628
609
|
<hr>
|
629
|
-
<div class="refsect2"
|
610
|
+
<div class="refsect2">
|
630
611
|
<a name="g-markup-parse-context-get-element-stack"></a><h3>g_markup_parse_context_get_element_stack ()</h3>
|
631
|
-
<pre class="programlisting">const <a class="link" href="glib-Singly-Linked-Lists.html#GSList" title="GSList"><span class="returnvalue">GSList</span></a> * g_markup_parse_context_get_element_stack
|
612
|
+
<pre class="programlisting">const <a class="link" href="glib-Singly-Linked-Lists.html#GSList" title="struct GSList"><span class="returnvalue">GSList</span></a> * g_markup_parse_context_get_element_stack
|
632
613
|
(<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);</pre>
|
633
614
|
<p>
|
634
615
|
Retrieves the element stack from the internal state of the parser.
|
635
|
-
|
616
|
+
</p>
|
617
|
+
<p>
|
618
|
+
The returned <a class="link" href="glib-Singly-Linked-Lists.html#GSList" title="struct GSList"><span class="type">GSList</span></a> is a list of strings where the first item is
|
636
619
|
the currently open tag (as would be returned by
|
637
620
|
<a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-get-element" title="g_markup_parse_context_get_element ()"><code class="function">g_markup_parse_context_get_element()</code></a>) and the next item is its
|
638
621
|
immediate parent.
|
@@ -653,23 +636,24 @@ processed.
|
|
653
636
|
</tr>
|
654
637
|
<tr>
|
655
638
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
656
|
-
<td>
|
657
|
-
|
658
|
-
</td>
|
639
|
+
<td>the element stack, which must not be modified</td>
|
659
640
|
</tr>
|
660
641
|
</tbody>
|
661
642
|
</table></div>
|
662
643
|
<p class="since">Since 2.16</p>
|
663
644
|
</div>
|
664
645
|
<hr>
|
665
|
-
<div class="refsect2"
|
646
|
+
<div class="refsect2">
|
666
647
|
<a name="g-markup-parse-context-get-user-data"></a><h3>g_markup_parse_context_get_user_data ()</h3>
|
667
648
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_markup_parse_context_get_user_data
|
668
649
|
(<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);</pre>
|
669
650
|
<p>
|
670
|
-
Returns the user_data associated with <em class="parameter"><code>context</code></em>.
|
671
|
-
|
672
|
-
|
651
|
+
Returns the user_data associated with <em class="parameter"><code>context</code></em>.
|
652
|
+
</p>
|
653
|
+
<p>
|
654
|
+
This will either be the user_data that was provided to
|
655
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-new" title="g_markup_parse_context_new ()"><code class="function">g_markup_parse_context_new()</code></a> or to the most recent call
|
656
|
+
of <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()"><code class="function">g_markup_parse_context_push()</code></a>.
|
673
657
|
</p>
|
674
658
|
<div class="variablelist"><table border="0">
|
675
659
|
<col align="left" valign="top">
|
@@ -681,20 +665,18 @@ or to the most recent call of <a class="link" href="glib-Simple-XML-Subset-Parse
|
|
681
665
|
</tr>
|
682
666
|
<tr>
|
683
667
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
684
|
-
<td>
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
</td>
|
668
|
+
<td>the provided user_data. The returned data belongs to
|
669
|
+
the markup context and will be freed when <code class="function">g_markup_context_free()</code>
|
670
|
+
is called.</td>
|
689
671
|
</tr>
|
690
672
|
</tbody>
|
691
673
|
</table></div>
|
692
674
|
<p class="since">Since 2.18</p>
|
693
675
|
</div>
|
694
676
|
<hr>
|
695
|
-
<div class="refsect2"
|
677
|
+
<div class="refsect2">
|
696
678
|
<a name="g-markup-parse-context-new"></a><h3>g_markup_parse_context_new ()</h3>
|
697
|
-
<pre class="programlisting"><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> * g_markup_parse_context_new (<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
679
|
+
<pre class="programlisting"><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="returnvalue">GMarkupParseContext</span></a> * g_markup_parse_context_new (<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
698
680
|
<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseFlags" title="enum GMarkupParseFlags"><span class="type">GMarkupParseFlags</span></a> flags</code></em>,
|
699
681
|
<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>,
|
700
682
|
<em class="parameter"><code><a class="link" href="glib-Datasets.html#GDestroyNotify" title="GDestroyNotify ()"><span class="type">GDestroyNotify</span></a> user_data_dnotify</code></em>);</pre>
|
@@ -702,15 +684,15 @@ or to the most recent call of <a class="link" href="glib-Simple-XML-Subset-Parse
|
|
702
684
|
Creates a new parse context. A parse context is used to parse
|
703
685
|
marked-up documents. You can feed any number of documents into
|
704
686
|
a context, as long as no errors occur; once an error occurs,
|
705
|
-
the parse context can't continue to parse text (you have to
|
706
|
-
and create a new parse context).
|
687
|
+
the parse context can't continue to parse text (you have to
|
688
|
+
free it and create a new parse context).
|
707
689
|
</p>
|
708
690
|
<div class="variablelist"><table border="0">
|
709
691
|
<col align="left" valign="top">
|
710
692
|
<tbody>
|
711
693
|
<tr>
|
712
694
|
<td><p><span class="term"><em class="parameter"><code>parser</code></em> :</span></p></td>
|
713
|
-
<td>a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>
|
695
|
+
<td>a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>
|
714
696
|
</td>
|
715
697
|
</tr>
|
716
698
|
<tr>
|
@@ -720,38 +702,40 @@ and create a new parse context).
|
|
720
702
|
</tr>
|
721
703
|
<tr>
|
722
704
|
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
723
|
-
<td>user data to pass to <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> functions
|
724
|
-
</td>
|
705
|
+
<td>user data to pass to <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> functions</td>
|
725
706
|
</tr>
|
726
707
|
<tr>
|
727
708
|
<td><p><span class="term"><em class="parameter"><code>user_data_dnotify</code></em> :</span></p></td>
|
728
|
-
<td>user data destroy notifier called when
|
729
|
-
</td>
|
709
|
+
<td>user data destroy notifier called when
|
710
|
+
the parse context is freed</td>
|
730
711
|
</tr>
|
731
712
|
<tr>
|
732
713
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
733
|
-
<td>
|
714
|
+
<td>a new <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>
|
734
715
|
</td>
|
735
716
|
</tr>
|
736
717
|
</tbody>
|
737
718
|
</table></div>
|
738
719
|
</div>
|
739
720
|
<hr>
|
740
|
-
<div class="refsect2"
|
721
|
+
<div class="refsect2">
|
741
722
|
<a name="g-markup-parse-context-parse"></a><h3>g_markup_parse_context_parse ()</h3>
|
742
723
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_markup_parse_context_parse (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
743
724
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *text</code></em>,
|
744
725
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> text_len</code></em>,
|
745
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
726
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
727
|
+
<p>
|
728
|
+
Feed some data to the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>.
|
729
|
+
</p>
|
746
730
|
<p>
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
731
|
+
The data need not be valid UTF-8; an error will be signaled if
|
732
|
+
it's invalid. The data need not be an entire document; you can
|
733
|
+
feed a document into the parser incrementally, via multiple calls
|
734
|
+
to this function. Typically, as you receive data from a network
|
735
|
+
connection or file, you feed each received chunk of data into this
|
736
|
+
function, aborting the process if an error occurs. Once an error
|
737
|
+
is reported, no further data may be fed to the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>;
|
738
|
+
all errors are fatal.
|
755
739
|
</p>
|
756
740
|
<div class="variablelist"><table border="0">
|
757
741
|
<col align="left" valign="top">
|
@@ -763,62 +747,60 @@ data may be fed to the <a class="link" href="glib-Simple-XML-Subset-Parser.html#
|
|
763
747
|
</tr>
|
764
748
|
<tr>
|
765
749
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
766
|
-
<td>chunk of text to parse
|
767
|
-
</td>
|
750
|
+
<td>chunk of text to parse</td>
|
768
751
|
</tr>
|
769
752
|
<tr>
|
770
753
|
<td><p><span class="term"><em class="parameter"><code>text_len</code></em> :</span></p></td>
|
771
|
-
<td>length of <em class="parameter"><code>text</code></em> in bytes
|
772
|
-
</td>
|
754
|
+
<td>length of <em class="parameter"><code>text</code></em> in bytes</td>
|
773
755
|
</tr>
|
774
756
|
<tr>
|
775
757
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
776
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>
|
758
|
+
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>
|
777
759
|
</td>
|
778
760
|
</tr>
|
779
761
|
<tr>
|
780
762
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
781
|
-
<td>
|
782
|
-
</td>
|
763
|
+
<td>
|
764
|
+
<a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error occurred, <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> on success</td>
|
783
765
|
</tr>
|
784
766
|
</tbody>
|
785
767
|
</table></div>
|
786
768
|
</div>
|
787
769
|
<hr>
|
788
|
-
<div class="refsect2"
|
770
|
+
<div class="refsect2">
|
789
771
|
<a name="g-markup-parse-context-push"></a><h3>g_markup_parse_context_push ()</h3>
|
790
772
|
<pre class="programlisting"><span class="returnvalue">void</span> g_markup_parse_context_push (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>,
|
791
|
-
<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
773
|
+
<em class="parameter"><code>const <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> *parser</code></em>,
|
792
774
|
<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>
|
793
775
|
<p>
|
794
776
|
Temporarily redirects markup data to a sub-parser.
|
795
777
|
</p>
|
796
778
|
<p>
|
797
779
|
This function may only be called from the start_element handler of
|
798
|
-
a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>.
|
780
|
+
a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>. It must be matched with a corresponding call to
|
799
781
|
<a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-pop" title="g_markup_parse_context_pop ()"><code class="function">g_markup_parse_context_pop()</code></a> in the matching end_element handler
|
800
782
|
(except in the case that the parser aborts due to an error).
|
801
783
|
</p>
|
802
784
|
<p>
|
803
785
|
All tags, text and other data between the matching tags is
|
804
|
-
redirected to the subparser given by <em class="parameter"><code>parser</code></em>.
|
805
|
-
as the user_data for that parser.
|
806
|
-
error callback in the event that an error occurs.
|
786
|
+
redirected to the subparser given by <em class="parameter"><code>parser</code></em>. <em class="parameter"><code>user_data</code></em> is used
|
787
|
+
as the user_data for that parser. <em class="parameter"><code>user_data</code></em> is also passed to the
|
788
|
+
error callback in the event that an error occurs. This includes
|
807
789
|
errors that occur in subparsers of the subparser.
|
808
790
|
</p>
|
809
791
|
<p>
|
810
792
|
The end tag matching the start tag for which this call was made is
|
811
793
|
handled by the previous parser (which is given its own user_data)
|
812
794
|
which is why <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-pop" title="g_markup_parse_context_pop ()"><code class="function">g_markup_parse_context_pop()</code></a> is provided to allow "one
|
813
|
-
last access" to the <em class="parameter"><code>user_data</code></em> provided to this function.
|
795
|
+
last access" to the <em class="parameter"><code>user_data</code></em> provided to this function. In the
|
814
796
|
case of error, the <em class="parameter"><code>user_data</code></em> provided here is passed directly to
|
815
797
|
the error callback of the subparser and <code class="function">g_markup_parse_context()</code>
|
816
|
-
should not be called.
|
798
|
+
should not be called. In either case, if <em class="parameter"><code>user_data</code></em> was allocated
|
817
799
|
then it ought to be freed from both of these locations.
|
818
800
|
</p>
|
819
801
|
<p>
|
820
802
|
This function is not intended to be directly called by users
|
821
|
-
interested in invoking subparsers.
|
803
|
+
interested in invoking subparsers. Instead, it is intended to be
|
822
804
|
used by the subparsers themselves to implement a higher-level
|
823
805
|
interface.
|
824
806
|
</p>
|
@@ -1024,20 +1006,19 @@ The subparser would then be used as follows:
|
|
1024
1006
|
</tr>
|
1025
1007
|
<tr>
|
1026
1008
|
<td><p><span class="term"><em class="parameter"><code>parser</code></em> :</span></p></td>
|
1027
|
-
<td>a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a>
|
1009
|
+
<td>a <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a>
|
1028
1010
|
</td>
|
1029
1011
|
</tr>
|
1030
1012
|
<tr>
|
1031
1013
|
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
1032
|
-
<td>user data to pass to <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="GMarkupParser"><span class="type">GMarkupParser</span></a> functions
|
1033
|
-
</td>
|
1014
|
+
<td>user data to pass to <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> functions</td>
|
1034
1015
|
</tr>
|
1035
1016
|
</tbody>
|
1036
1017
|
</table></div>
|
1037
1018
|
<p class="since">Since 2.18</p>
|
1038
1019
|
</div>
|
1039
1020
|
<hr>
|
1040
|
-
<div class="refsect2"
|
1021
|
+
<div class="refsect2">
|
1041
1022
|
<a name="g-markup-parse-context-pop"></a><h3>g_markup_parse_context_pop ()</h3>
|
1042
1023
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_markup_parse_context_pop (<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParseContext" title="GMarkupParseContext"><span class="type">GMarkupParseContext</span></a> *context</code></em>);</pre>
|
1043
1024
|
<p>
|
@@ -1045,16 +1026,16 @@ Completes the process of a temporary sub-parser redirection.
|
|
1045
1026
|
</p>
|
1046
1027
|
<p>
|
1047
1028
|
This function exists to collect the user_data allocated by a
|
1048
|
-
matching call to <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()"><code class="function">g_markup_parse_context_push()</code></a>.
|
1029
|
+
matching call to <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()"><code class="function">g_markup_parse_context_push()</code></a>. It must be called
|
1049
1030
|
in the end_element handler corresponding to the start_element
|
1050
|
-
handler during which <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()"><code class="function">g_markup_parse_context_push()</code></a> was called.
|
1051
|
-
must not call this function from the error callback -- the
|
1031
|
+
handler during which <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()"><code class="function">g_markup_parse_context_push()</code></a> was called.
|
1032
|
+
You must not call this function from the error callback -- the
|
1052
1033
|
<em class="parameter"><code>user_data</code></em> is provided directly to the callback in that case.
|
1053
1034
|
</p>
|
1054
1035
|
<p>
|
1055
1036
|
This function is not intended to be directly called by users
|
1056
|
-
interested in invoking subparsers.
|
1057
|
-
used by the subparsers themselves to implement a higher-level
|
1037
|
+
interested in invoking subparsers. Instead, it is intended to
|
1038
|
+
be used by the subparsers themselves to implement a higher-level
|
1058
1039
|
interface.
|
1059
1040
|
</p>
|
1060
1041
|
<div class="variablelist"><table border="0">
|
@@ -1067,8 +1048,7 @@ interface.
|
|
1067
1048
|
</tr>
|
1068
1049
|
<tr>
|
1069
1050
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1070
|
-
<td>
|
1071
|
-
|
1051
|
+
<td>the user data passed to <a class="link" href="glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-push" title="g_markup_parse_context_push ()"><code class="function">g_markup_parse_context_push()</code></a>
|
1072
1052
|
</td>
|
1073
1053
|
</tr>
|
1074
1054
|
</tbody>
|
@@ -1076,7 +1056,7 @@ interface.
|
|
1076
1056
|
<p class="since">Since 2.18</p>
|
1077
1057
|
</div>
|
1078
1058
|
<hr>
|
1079
|
-
<div class="refsect2"
|
1059
|
+
<div class="refsect2">
|
1080
1060
|
<a name="GMarkupCollectType"></a><h3>enum GMarkupCollectType</h3>
|
1081
1061
|
<pre class="programlisting">typedef enum
|
1082
1062
|
{
|
@@ -1090,10 +1070,9 @@ interface.
|
|
1090
1070
|
} GMarkupCollectType;
|
1091
1071
|
</pre>
|
1092
1072
|
<p>
|
1093
|
-
A mixed enumerated type and flags field.
|
1094
|
-
(string, strdup, boolean, tristate). Additionally, you may
|
1095
|
-
|
1096
|
-
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-OPTIONAL:CAPS"><code class="literal">G_MARKUP_COLLECT_OPTIONAL</code></a>.
|
1073
|
+
A mixed enumerated type and flags field. You must specify one type
|
1074
|
+
(string, strdup, boolean, tristate). Additionally, you may optionally
|
1075
|
+
bitwise OR the type with the flag <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-OPTIONAL:CAPS"><code class="literal">G_MARKUP_COLLECT_OPTIONAL</code></a>.
|
1097
1076
|
</p>
|
1098
1077
|
<p>
|
1099
1078
|
It is likely that this enum will be extended in the future to
|
@@ -1105,116 +1084,100 @@ support other types.
|
|
1105
1084
|
<tr>
|
1106
1085
|
<td><p><a name="G-MARKUP-COLLECT-INVALID:CAPS"></a><span class="term"><code class="literal">G_MARKUP_COLLECT_INVALID</code></span></p></td>
|
1107
1086
|
<td>used to terminate the list of attributes
|
1108
|
-
|
1087
|
+
to collect
|
1109
1088
|
</td>
|
1110
1089
|
</tr>
|
1111
1090
|
<tr>
|
1112
1091
|
<td><p><a name="G-MARKUP-COLLECT-STRING:CAPS"></a><span class="term"><code class="literal">G_MARKUP_COLLECT_STRING</code></span></p></td>
|
1113
1092
|
<td>collect the string pointer directly from
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
and the attribute isn't present then the
|
1118
|
-
pointer will be set to <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
1093
|
+
the attribute_values[] array. Expects a parameter of type (const
|
1094
|
+
char **). If <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-OPTIONAL:CAPS"><code class="literal">G_MARKUP_COLLECT_OPTIONAL</code></a> is specified and the
|
1095
|
+
attribute isn't present then the pointer will be set to <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1119
1096
|
</td>
|
1120
1097
|
</tr>
|
1121
1098
|
<tr>
|
1122
1099
|
<td><p><a name="G-MARKUP-COLLECT-STRDUP:CAPS"></a><span class="term"><code class="literal">G_MARKUP_COLLECT_STRDUP</code></span></p></td>
|
1123
1100
|
<td>as with <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-STRING:CAPS"><code class="literal">G_MARKUP_COLLECT_STRING</code></a>, but
|
1124
|
-
|
1125
|
-
|
1126
|
-
pointer must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
|
1101
|
+
expects a parameter of type (char **) and <a class="link" href="glib-String-Utility-Functions.html#g-strdup" title="g_strdup ()"><code class="function">g_strdup()</code></a>s the
|
1102
|
+
returned pointer. The pointer must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>
|
1127
1103
|
</td>
|
1128
1104
|
</tr>
|
1129
1105
|
<tr>
|
1130
1106
|
<td><p><a name="G-MARKUP-COLLECT-BOOLEAN:CAPS"></a><span class="term"><code class="literal">G_MARKUP_COLLECT_BOOLEAN</code></span></p></td>
|
1131
1107
|
<td>expects a parameter of type (gboolean *)
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
"f", "no", "n", "0" and "true", "t",
|
1137
|
-
"yes", "y", "1".
|
1108
|
+
and parses the attribute value as a boolean. Sets <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if the
|
1109
|
+
attribute isn't present. Valid boolean values consist of
|
1110
|
+
(case-insensitive) "false", "f", "no", "n", "0" and "true", "t",
|
1111
|
+
"yes", "y", "1"
|
1138
1112
|
</td>
|
1139
1113
|
</tr>
|
1140
1114
|
<tr>
|
1141
1115
|
<td><p><a name="G-MARKUP-COLLECT-TRISTATE:CAPS"></a><span class="term"><code class="literal">G_MARKUP_COLLECT_TRISTATE</code></span></p></td>
|
1142
1116
|
<td>as with <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-BOOLEAN:CAPS"><code class="literal">G_MARKUP_COLLECT_BOOLEAN</code></a>, but
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
G_MARKUP_COLLECT_OPTIONAL is implied.
|
1117
|
+
in the case of a missing attribute a value is set that compares
|
1118
|
+
equal to neither <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> nor <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> G_MARKUP_COLLECT_OPTIONAL is
|
1119
|
+
implied
|
1147
1120
|
</td>
|
1148
1121
|
</tr>
|
1149
1122
|
<tr>
|
1150
1123
|
<td><p><a name="G-MARKUP-COLLECT-OPTIONAL:CAPS"></a><span class="term"><code class="literal">G_MARKUP_COLLECT_OPTIONAL</code></span></p></td>
|
1151
|
-
<td>can be bitwise ORed with the other
|
1152
|
-
|
1153
|
-
|
1154
|
-
value is set depending on what value
|
1155
|
-
type is used.
|
1124
|
+
<td>can be bitwise ORed with the other fields.
|
1125
|
+
If present, allows the attribute not to appear. A default value
|
1126
|
+
is set depending on what value type is used
|
1156
1127
|
</td>
|
1157
1128
|
</tr>
|
1158
1129
|
</tbody>
|
1159
1130
|
</table></div>
|
1160
1131
|
</div>
|
1161
1132
|
<hr>
|
1162
|
-
<div class="refsect2"
|
1133
|
+
<div class="refsect2">
|
1163
1134
|
<a name="g-markup-collect-attributes"></a><h3>g_markup_collect_attributes ()</h3>
|
1164
1135
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_markup_collect_attributes (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *element_name</code></em>,
|
1165
1136
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **attribute_names</code></em>,
|
1166
1137
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **attribute_values</code></em>,
|
1167
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>,
|
1138
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>,
|
1168
1139
|
<em class="parameter"><code><a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a> first_type</code></em>,
|
1169
1140
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *first_attr</code></em>,
|
1170
1141
|
<em class="parameter"><code>...</code></em>);</pre>
|
1171
1142
|
<p>
|
1172
|
-
Collects the attributes of the element from the
|
1173
|
-
|
1174
|
-
|
1175
|
-
and supporting boolean values.
|
1143
|
+
Collects the attributes of the element from the data passed to the
|
1144
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupParser" title="struct GMarkupParser"><span class="type">GMarkupParser</span></a> start_element function, dealing with common error
|
1145
|
+
conditions and supporting boolean values.
|
1176
1146
|
</p>
|
1177
1147
|
<p>
|
1178
|
-
This utility function is not required to write
|
1179
|
-
a
|
1148
|
+
This utility function is not required to write a parser but can save
|
1149
|
+
a lot of typing.
|
1180
1150
|
</p>
|
1181
1151
|
<p>
|
1182
|
-
The <em class="parameter"><code>element_name</code></em>, <em class="parameter"><code>attribute_names</code></em>,
|
1183
|
-
|
1184
|
-
to the start_element callback should be passed
|
1152
|
+
The <em class="parameter"><code>element_name</code></em>, <em class="parameter"><code>attribute_names</code></em>, <em class="parameter"><code>attribute_values</code></em> and <em class="parameter"><code>error</code></em>
|
1153
|
+
parameters passed to the start_element callback should be passed
|
1185
1154
|
unmodified to this function.
|
1186
1155
|
</p>
|
1187
1156
|
<p>
|
1188
|
-
Following these arguments is a list of
|
1189
|
-
|
1190
|
-
|
1191
|
-
same name. If any attribute not in the list
|
1192
|
-
appears in the <em class="parameter"><code>attribute_names</code></em> array then an
|
1157
|
+
Following these arguments is a list of "supported" attributes to collect.
|
1158
|
+
It is an error to specify multiple attributes with the same name. If any
|
1159
|
+
attribute not in the list appears in the <em class="parameter"><code>attribute_names</code></em> array then an
|
1193
1160
|
unknown attribute error will result.
|
1194
1161
|
</p>
|
1195
1162
|
<p>
|
1196
|
-
The <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a> field allows specifying
|
1197
|
-
|
1198
|
-
given attribute must appear or is optional.
|
1163
|
+
The <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a> field allows specifying the type of collection
|
1164
|
+
to perform and if a given attribute must appear or is optional.
|
1199
1165
|
</p>
|
1200
1166
|
<p>
|
1201
|
-
The attribute name is simply the name of the
|
1202
|
-
attribute to collect.
|
1167
|
+
The attribute name is simply the name of the attribute to collect.
|
1203
1168
|
</p>
|
1204
1169
|
<p>
|
1205
|
-
The pointer should be of the appropriate type
|
1206
|
-
|
1207
|
-
|
1208
|
-
particular attribute is to be allowed but
|
1209
|
-
ignored.
|
1170
|
+
The pointer should be of the appropriate type (see the descriptions
|
1171
|
+
under <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a>) and may be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> in case a particular
|
1172
|
+
attribute is to be allowed but ignored.
|
1210
1173
|
</p>
|
1211
1174
|
<p>
|
1212
|
-
This function deals with issuing errors for missing attributes
|
1213
|
-
(of type <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-MISSING-ATTRIBUTE:CAPS"><code class="literal">G_MARKUP_ERROR_MISSING_ATTRIBUTE</code></a>), unknown attributes
|
1214
|
-
(of type <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-UNKNOWN-ATTRIBUTE:CAPS"><code class="literal">G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE</code></a>) and duplicate
|
1215
|
-
attributes (of type <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-INVALID-CONTENT:CAPS"><code class="literal">G_MARKUP_ERROR_INVALID_CONTENT</code></a>) as well
|
1175
|
+
This function deals with issuing errors for missing attributes
|
1176
|
+
(of type <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-MISSING-ATTRIBUTE:CAPS"><code class="literal">G_MARKUP_ERROR_MISSING_ATTRIBUTE</code></a>), unknown attributes
|
1177
|
+
(of type <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-UNKNOWN-ATTRIBUTE:CAPS"><code class="literal">G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE</code></a>) and duplicate
|
1178
|
+
attributes (of type <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-INVALID-CONTENT:CAPS"><code class="literal">G_MARKUP_ERROR_INVALID_CONTENT</code></a>) as well
|
1216
1179
|
as parse errors for boolean-valued attributes (again of type
|
1217
|
-
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-INVALID-CONTENT:CAPS"><code class="literal">G_MARKUP_ERROR_INVALID_CONTENT</code></a>). In all of these cases <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a>
|
1180
|
+
<a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-ERROR-INVALID-CONTENT:CAPS"><code class="literal">G_MARKUP_ERROR_INVALID_CONTENT</code></a>). In all of these cases <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a>
|
1218
1181
|
will be returned and <em class="parameter"><code>error</code></em> will be set as appropriate.
|
1219
1182
|
</p>
|
1220
1183
|
<div class="variablelist"><table border="0">
|
@@ -1222,61 +1185,59 @@ will be returned and <em class="parameter"><code>error</code></em> will be set a
|
|
1222
1185
|
<tbody>
|
1223
1186
|
<tr>
|
1224
1187
|
<td><p><span class="term"><em class="parameter"><code>element_name</code></em> :</span></p></td>
|
1225
|
-
<td>the current tag name
|
1226
|
-
</td>
|
1188
|
+
<td>the current tag name</td>
|
1227
1189
|
</tr>
|
1228
1190
|
<tr>
|
1229
1191
|
<td><p><span class="term"><em class="parameter"><code>attribute_names</code></em> :</span></p></td>
|
1230
|
-
<td>the attribute names
|
1231
|
-
</td>
|
1192
|
+
<td>the attribute names</td>
|
1232
1193
|
</tr>
|
1233
1194
|
<tr>
|
1234
1195
|
<td><p><span class="term"><em class="parameter"><code>attribute_values</code></em> :</span></p></td>
|
1235
|
-
<td>the attribute values
|
1236
|
-
</td>
|
1196
|
+
<td>the attribute values</td>
|
1237
1197
|
</tr>
|
1238
1198
|
<tr>
|
1239
1199
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1240
|
-
<td>a pointer to a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1200
|
+
<td>a pointer to a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1241
1201
|
</td>
|
1242
1202
|
</tr>
|
1243
1203
|
<tr>
|
1244
1204
|
<td><p><span class="term"><em class="parameter"><code>first_type</code></em> :</span></p></td>
|
1245
|
-
<td>the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a> of the
|
1246
|
-
first attribute
|
1247
|
-
</td>
|
1205
|
+
<td>the <a class="link" href="glib-Simple-XML-Subset-Parser.html#GMarkupCollectType" title="enum GMarkupCollectType"><span class="type">GMarkupCollectType</span></a> of the first attribute</td>
|
1248
1206
|
</tr>
|
1249
1207
|
<tr>
|
1250
1208
|
<td><p><span class="term"><em class="parameter"><code>first_attr</code></em> :</span></p></td>
|
1251
|
-
<td>the name of the first attribute
|
1252
|
-
</td>
|
1209
|
+
<td>the name of the first attribute</td>
|
1253
1210
|
</tr>
|
1254
1211
|
<tr>
|
1255
1212
|
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
1256
|
-
<td>a pointer to the storage location of the
|
1257
|
-
|
1258
|
-
|
1259
|
-
with <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-INVALID:CAPS"><code class="literal">G_MARKUP_COLLECT_INVALID</code></a>.
|
1213
|
+
<td>a pointer to the storage location of the first attribute
|
1214
|
+
(or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>), followed by more types names and pointers, ending
|
1215
|
+
with <a class="link" href="glib-Simple-XML-Subset-Parser.html#G-MARKUP-COLLECT-INVALID:CAPS"><code class="literal">G_MARKUP_COLLECT_INVALID</code></a>
|
1260
1216
|
</td>
|
1261
1217
|
</tr>
|
1262
1218
|
<tr>
|
1263
1219
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1264
|
-
<td>
|
1265
|
-
|
1266
|
-
</td>
|
1220
|
+
<td>
|
1221
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if successful</td>
|
1267
1222
|
</tr>
|
1268
1223
|
</tbody>
|
1269
1224
|
</table></div>
|
1270
1225
|
<p class="since">Since 2.16</p>
|
1271
1226
|
</div>
|
1272
1227
|
</div>
|
1228
|
+
<div class="refsect1">
|
1229
|
+
<a name="glib-Simple-XML-Subset-Parser.see-also"></a><h2>See Also</h2>
|
1230
|
+
<a class="ulink" href="http://www.w3.org/TR/REC-xml/" target="_top">XML
|
1231
|
+
Specification</a>
|
1232
|
+
</div>
|
1273
1233
|
<div class="footnotes">
|
1274
1234
|
<br><hr width="100" align="left">
|
1275
|
-
<div class="footnote"><a class="ulink" href="http://www.w3.org/TR/REC-xml/" target="_top"><sup>[<a name="ftn.wellformed" href="#wellformed" class="ulink">5</a>] </sup>XML
|
1235
|
+
<div class="footnote"><a class="ulink" href="http://www.w3.org/TR/REC-xml/" target="_top"><sup>[<a name="ftn.wellformed" href="#wellformed" class="ulink">5</a>] </sup>XML
|
1236
|
+
specification</a></div>
|
1276
1237
|
</div>
|
1277
1238
|
</div>
|
1278
1239
|
<div class="footer">
|
1279
1240
|
<hr>
|
1280
|
-
Generated by GTK-Doc V1.
|
1241
|
+
Generated by GTK-Doc V1.16.1</div>
|
1281
1242
|
</body>
|
1282
1243
|
</html>
|