glib2 0.90.4-x86-mingw32 → 0.90.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +10 -0
- data/Rakefile +1 -1
- data/ext/glib2/extconf.rb +8 -0
- data/ext/glib2/rbglib.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib-mkenums.rb +3 -2
- data/lib/mkmf-gnome2.rb +14 -10
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +35 -9
- 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/gappinfo.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +18 -18
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +42 -25
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +58 -0
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +46 -0
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +562 -0
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +100 -0
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +286 -0
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +149 -0
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +73 -0
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +112 -0
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +94 -0
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +167 -0
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +54 -0
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +44 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gio.h +30 -9
- data/vendor/local/include/glib-2.0/gio/gioenums.h +526 -8
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +42 -0
- data/vendor/local/include/glib-2.0/gio/gioerror.h +4 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +36 -0
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +4 -0
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gpermission.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gproxy.h +123 -0
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +76 -0
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +75 -0
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +96 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +258 -0
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +138 -0
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +45 -0
- data/vendor/local/include/glib-2.0/gio/gsocket.h +18 -0
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +22 -0
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +7 -1
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -1
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +5 -0
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +3 -0
- data/vendor/local/include/glib-2.0/glib-object.h +1 -0
- data/vendor/local/include/glib-2.0/glib.h +2 -0
- data/vendor/local/include/glib-2.0/glib/galloca.h +47 -0
- data/vendor/local/include/glib-2.0/glib/gatomic.h +25 -5
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +7 -7
- data/vendor/local/include/glib-2.0/glib/gbase64.h +22 -22
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +27 -3
- data/vendor/local/include/glib-2.0/glib/gcache.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +20 -20
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +4 -0
- data/vendor/local/include/glib-2.0/glib/gconvert.h +26 -2
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +217 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +16 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +7 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +305 -78
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gmem.h +107 -1
- data/vendor/local/include/glib-2.0/glib/gnode.h +4 -2
- data/vendor/local/include/glib-2.0/glib/gpoll.h +27 -3
- data/vendor/local/include/glib-2.0/glib/gregex.h +228 -0
- data/vendor/local/include/glib-2.0/glib/grel.h +4 -0
- data/vendor/local/include/glib-2.0/glib/gstdio.h +27 -39
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +3 -1
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +19 -14
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -1
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +44 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +18 -1
- data/vendor/local/include/glib-2.0/glib/gutils.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gvariant.h +25 -1
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +29 -0
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +136 -0
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +18 -6
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +37 -20
- data/vendor/local/include/glib-2.0/gobject/gobject.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +48 -21
- data/vendor/local/include/glib-2.0/gobject/gparam.h +9 -4
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +54 -0
- data/vendor/local/include/glib-2.0/gobject/gtype.h +129 -1
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +6 -1
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +17 -0
- data/vendor/local/lib/gio-2.0.def +345 -2
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +71 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +2 -2
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +21 -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/intl.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 +3 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +11 -0
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
- data/vendor/local/manifest/{glib-dev_2.24.2-2_win32.mft → glib-dev_2.26.0-2_win32.mft} +87 -8
- data/vendor/local/manifest/{glib_2.24.2-2_win32.mft → glib_2.26.0-2_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-gettext.m4 +2 -2
- data/vendor/local/share/doc/{glib-2.24.2 → glib-2.26.0}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.24.2 → glib-dev-2.26.0}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gdb/glib.py +1 -4
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +3 -1
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +60 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +179 -166
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +276 -74
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +35 -35
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +114 -119
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +43 -47
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +67 -67
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +41 -41
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +70 -35
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +254 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +6211 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +1833 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +618 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +2050 -0
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +1124 -0
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +373 -151
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +103 -107
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +158 -158
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +935 -923
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +18 -13
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +71 -75
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +303 -275
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +32 -32
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +31 -25
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +31 -25
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +58 -58
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +109 -109
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +26 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +72 -72
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +120 -120
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +90 -59
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +155 -155
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +76 -76
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +119 -39
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +100 -37
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +137 -131
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +560 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +312 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +348 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +301 -0
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +116 -116
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +54 -54
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +2424 -0
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +609 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +362 -148
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +107 -0
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +612 -326
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +470 -108
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +131 -46
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +48 -259
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +27 -26
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +123 -119
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +165 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +298 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +222 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +65 -57
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +59 -51
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +39 -39
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +246 -61
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +36 -36
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +113 -113
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +67 -71
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +90 -18
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +56 -14
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +8 -12
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +21 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +1598 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +18 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +2412 -661
- data/vendor/local/share/gtk-doc/html/gio/async.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +50 -14
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +14 -9
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +122 -22
- data/vendor/local/share/gtk-doc/html/gio/{ch19.html → ch24.html} +8 -8
- data/vendor/local/share/gtk-doc/html/gio/{ch20.html → ch25.html} +19 -19
- data/vendor/local/share/gtk-doc/html/gio/{ch20s02.html → ch25s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch20s03.html → ch25s03.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +59 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +159 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +46 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +48 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +277 -0
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +95 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +96 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +823 -0
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +828 -0
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +33 -20
- 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 +41 -0
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +59 -0
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +243 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +316 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +1117 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +216 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +35 -35
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +58 -50
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +98 -88
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +908 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +37 -31
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +97 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +50 -50
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +38 -38
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +736 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +113 -122
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +666 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +26 -10
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +53 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +569 -68
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +692 -70
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +102 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +11 -5
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +137 -20
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +814 -96
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +32 -12
- data/vendor/local/share/gtk-doc/html/gio/networking.html +19 -7
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +39 -0
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +112 -15
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +8 -5
- data/vendor/local/share/gtk-doc/html/gio/settings.html +38 -0
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/types.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/utils.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +77 -0
- 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 -7
- 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 +3 -3
- 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 +5 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +359 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +10 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +82 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +393 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +52 -52
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +51 -51
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +75 -74
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +59 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +87 -85
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +39 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +69 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +130 -223
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +114 -108
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +87 -84
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +61 -61
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +96 -96
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +33 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +98 -56
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +2201 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +239 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +736 -256
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +140 -91
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +59 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +65 -65
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +91 -28
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +257 -73
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +27 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +70 -66
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +44 -44
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +108 -63
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +151 -91
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +132 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +83 -81
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +34 -44
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +442 -345
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +40 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +72 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +46 -46
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +35 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +130 -129
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +30 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +245 -232
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +104 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +171 -85
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +422 -323
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +135 -135
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +18 -18
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +13 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +103 -17
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +189 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +119 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +32 -32
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +53 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -7
- 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 +3 -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 +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +94 -272
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +43 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +10 -4
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +131 -32
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +174 -59
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +190 -73
- data/vendor/local/share/gtk-doc/html/glib/index.html +13 -5
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +133 -4
- data/vendor/local/share/gtk-doc/html/glib/style.css +8 -0
- data/vendor/local/share/gtk-doc/html/glib/tools.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +803 -0
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +21 -21
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +3 -3
- 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 +6 -5
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +201 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +3 -3
- 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 +148 -4
- 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 +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +28 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +29 -17
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +45 -34
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +130 -73
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +43 -43
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +83 -73
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +35 -35
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +558 -245
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +358 -92
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +391 -158
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +47 -44
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +42 -12
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +48 -9
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +53 -9
- 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 +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +3 -3
- 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 +3 -3
- 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 +8 -8
- 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 +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +15 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +53 -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 +7 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/style.css +8 -0
- 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 +3 -3
- 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/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/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/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/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/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/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/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/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/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/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 +9 -4
- data/vendor/local/share/man/man1/glib-mkenums.1 +17 -5
- data/vendor/local/share/man/man1/gobject-query.1 +4 -4
- data/vendor/local/src/tml/packaging/{glib_2.24.2-2_win32.log → glib_2.26.0-2_win32.log} +1102 -837
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +64 -0
- metadata +905 -825
- data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +0 -290
@@ -0,0 +1,202 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Owning bus names</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
+
<link rel="up" href="ch27.html" title="Migrating to GDBus">
|
9
|
+
<link rel="prev" href="ch27s02.html" title="API comparison">
|
10
|
+
<link rel="next" href="ch27s04.html" title="Creating proxies for well-known names">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
16
|
+
<td><a accesskey="p" href="ch27s02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
17
|
+
<td><a accesskey="u" href="ch27.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
18
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
19
|
+
<th width="100%" align="center">GIO Reference Manual</th>
|
20
|
+
<td><a accesskey="n" href="ch27s04.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="section">
|
23
|
+
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
+
<a name="id581231"></a>Owning bus names</h2></div></div></div>
|
25
|
+
<p>
|
26
|
+
Using dbus-glib, you typically call RequestName manually
|
27
|
+
to own a name, like in the following excerpt:
|
28
|
+
</p>
|
29
|
+
<div class="informalexample">
|
30
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
31
|
+
<tbody>
|
32
|
+
<tr>
|
33
|
+
<td class="listing_lines" align="right"><pre>1
|
34
|
+
2
|
35
|
+
3
|
36
|
+
4
|
37
|
+
5
|
38
|
+
6
|
39
|
+
7
|
40
|
+
8
|
41
|
+
9
|
42
|
+
10
|
43
|
+
11
|
44
|
+
12
|
45
|
+
13
|
46
|
+
14
|
47
|
+
15
|
48
|
+
16
|
49
|
+
17
|
50
|
+
18
|
51
|
+
19
|
52
|
+
20
|
53
|
+
21
|
54
|
+
22
|
55
|
+
23
|
56
|
+
24
|
57
|
+
25
|
58
|
+
26
|
59
|
+
27
|
60
|
+
28
|
61
|
+
29
|
62
|
+
30
|
63
|
+
31
|
64
|
+
32
|
65
|
+
33
|
66
|
+
34
|
67
|
+
35
|
68
|
+
36
|
69
|
+
37
|
70
|
+
38
|
71
|
+
39
|
72
|
+
40
|
73
|
+
41
|
74
|
+
42
|
75
|
+
43
|
76
|
+
44
|
77
|
+
45</pre></td>
|
78
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">error </span><span class="symbol">=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
79
|
+
<span class="normal">res </span><span class="symbol">=</span><span class="normal"> </span><span class="function">dbus_g_proxy_call</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_proxy</span><span class="symbol">,</span>
|
80
|
+
<span class="normal"> </span><span class="string">"RequestName"</span><span class="symbol">,</span>
|
81
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span>
|
82
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span>
|
83
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-UINT:CAPS">G_TYPE_UINT</a></span><span class="symbol">,</span><span class="normal"> DBUS_NAME_FLAG_ALLOW_REPLACEMENT</span><span class="symbol">,</span>
|
84
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-INVALID:CAPS">G_TYPE_INVALID</a></span><span class="symbol">,</span>
|
85
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-UINT:CAPS">G_TYPE_UINT</a></span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">result</span><span class="symbol">,</span>
|
86
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-INVALID:CAPS">G_TYPE_INVALID</a></span><span class="symbol">);</span>
|
87
|
+
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">res</span><span class="symbol">)</span>
|
88
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
89
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
90
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
91
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s: %s"</span><span class="symbol">,</span>
|
92
|
+
<span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
93
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
94
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
95
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
96
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
97
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s"</span><span class="symbol">,</span><span class="normal"> NAME_TO_CLAIM</span><span class="symbol">);</span>
|
98
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
99
|
+
<span class="normal"> </span><span class="keyword">goto</span><span class="normal"> out</span><span class="symbol">;</span>
|
100
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
101
|
+
|
102
|
+
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">result </span><span class="symbol">!=</span><span class="normal"> DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER</span><span class="symbol">)</span>
|
103
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
104
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
105
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
106
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s: %s"</span><span class="symbol">,</span>
|
107
|
+
<span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
108
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
109
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
110
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
111
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
112
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to acquire %s"</span><span class="symbol">,</span><span class="normal"> NAME_TO_CLAIM</span><span class="symbol">);</span>
|
113
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
114
|
+
<span class="normal"> </span><span class="function">exit</span><span class="normal"> </span><span class="symbol">(</span><span class="number">1</span><span class="symbol">);</span>
|
115
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
116
|
+
|
117
|
+
<span class="function">dbus_g_proxy_add_signal</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_proxy</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"NameLost"</span><span class="symbol">,</span>
|
118
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-INVALID:CAPS">G_TYPE_INVALID</a></span><span class="symbol">);</span>
|
119
|
+
<span class="function">dbus_g_proxy_connect_signal</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_proxy</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"NameLost"</span><span class="symbol">,</span>
|
120
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_name_lost</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
121
|
+
|
122
|
+
<span class="comment">/* further setup ... */</span></pre></td>
|
123
|
+
</tr>
|
124
|
+
</tbody>
|
125
|
+
</table>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<p>
|
129
|
+
</p>
|
130
|
+
<p>
|
131
|
+
While you can do things this way with GDBus too, using
|
132
|
+
<a class="link" href="GDBusProxy.html#g-dbus-proxy-call-sync" title="g_dbus_proxy_call_sync ()"><code class="function">g_dbus_proxy_call_sync()</code></a>, it is much nicer to use the high-level API
|
133
|
+
for this:
|
134
|
+
</p>
|
135
|
+
<div class="informalexample">
|
136
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
137
|
+
<tbody>
|
138
|
+
<tr>
|
139
|
+
<td class="listing_lines" align="right"><pre>1
|
140
|
+
2
|
141
|
+
3
|
142
|
+
4
|
143
|
+
5
|
144
|
+
6
|
145
|
+
7
|
146
|
+
8
|
147
|
+
9
|
148
|
+
10
|
149
|
+
11
|
150
|
+
12
|
151
|
+
13
|
152
|
+
14
|
153
|
+
15
|
154
|
+
16
|
155
|
+
17
|
156
|
+
18
|
157
|
+
19
|
158
|
+
20
|
159
|
+
21
|
160
|
+
22</pre></td>
|
161
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
162
|
+
<span class="function">on_name_acquired</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GDBusConnection</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">connection</span><span class="symbol">,</span>
|
163
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">name</span><span class="symbol">,</span>
|
164
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
165
|
+
<span class="cbracket">{</span>
|
166
|
+
<span class="normal"> </span><span class="comment">/* further setup ... */</span>
|
167
|
+
<span class="cbracket">}</span>
|
168
|
+
|
169
|
+
<span class="comment">/* ... */</span>
|
170
|
+
|
171
|
+
<span class="normal"> owner_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-Owning-Bus-Names.html#g-bus-own-name">g_bus_own_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html#G-BUS-TYPE-SYSTEM:CAPS">G_BUS_TYPE_SYSTEM</a></span><span class="symbol">,</span>
|
172
|
+
<span class="normal"> NAME_TO_CLAIM</span><span class="symbol">,</span>
|
173
|
+
<span class="normal"> <a href="gio-Owning-Bus-Names.html#G-BUS-NAME-OWNER-FLAGS-ALLOW-REPLACEMENT:CAPS">G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT</a></span><span class="symbol">,</span>
|
174
|
+
<span class="normal"> on_bus_acquired</span><span class="symbol">,</span>
|
175
|
+
<span class="normal"> on_name_acquired</span><span class="symbol">,</span>
|
176
|
+
<span class="normal"> on_name_lost</span><span class="symbol">,</span>
|
177
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
178
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
179
|
+
|
180
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-loop-run">g_main_loop_run</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">loop</span><span class="symbol">);</span>
|
181
|
+
|
182
|
+
<span class="normal"> </span><span class="function"><a href="gio-Owning-Bus-Names.html#g-bus-unown-name">g_bus_unown_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">owner_id</span><span class="symbol">);</span></pre></td>
|
183
|
+
</tr>
|
184
|
+
</tbody>
|
185
|
+
</table>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<p>
|
189
|
+
Note that <a class="link" href="gio-Owning-Bus-Names.html#g-bus-own-name" title="g_bus_own_name ()"><code class="function">g_bus_own_name()</code></a> works asynchronously and requires
|
190
|
+
you to enter your mainloop to await the <code class="function">on_name_aquired()</code>
|
191
|
+
callback. Also note that in order to avoid race conditions (e.g.
|
192
|
+
when your service is activated by a method call), you have to export
|
193
|
+
your manager object <span class="emphasis"><em>before</em></span> acquiring the
|
194
|
+
name. The <code class="function">on_bus_acquired()</code> callback is the right place to do
|
195
|
+
such preparations.
|
196
|
+
</p>
|
197
|
+
</div>
|
198
|
+
<div class="footer">
|
199
|
+
<hr>
|
200
|
+
Generated by GTK-Doc V1.15.1</div>
|
201
|
+
</body>
|
202
|
+
</html>
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Creating proxies for well-known names</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
+
<link rel="up" href="ch27.html" title="Migrating to GDBus">
|
9
|
+
<link rel="prev" href="ch27s03.html" title="Owning bus names">
|
10
|
+
<link rel="next" href="ch27s05.html" title="Client-side GObject bindings">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
16
|
+
<td><a accesskey="p" href="ch27s03.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
17
|
+
<td><a accesskey="u" href="ch27.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
18
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
19
|
+
<th width="100%" align="center">GIO Reference Manual</th>
|
20
|
+
<td><a accesskey="n" href="ch27s05.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="section">
|
23
|
+
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
+
<a name="id380579"></a>Creating proxies for well-known names</h2></div></div></div>
|
25
|
+
<p>
|
26
|
+
dbus-glib lets you create proxy objects for well-known names, like the
|
27
|
+
following example:
|
28
|
+
</p>
|
29
|
+
<div class="informalexample">
|
30
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
31
|
+
<tbody>
|
32
|
+
<tr>
|
33
|
+
<td class="listing_lines" align="right"><pre>1
|
34
|
+
2
|
35
|
+
3
|
36
|
+
4</pre></td>
|
37
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">proxy </span><span class="symbol">=</span><span class="normal"> </span><span class="function">dbus_g_proxy_new_for_name</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">system_bus_connection</span><span class="symbol">,</span>
|
38
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.Accounts"</span><span class="symbol">,</span>
|
39
|
+
<span class="normal"> </span><span class="string">"/org/freedesktop/Accounts"</span><span class="symbol">,</span>
|
40
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.Accounts"</span><span class="symbol">);</span></pre></td>
|
41
|
+
</tr>
|
42
|
+
</tbody>
|
43
|
+
</table>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<p>
|
47
|
+
For a <span class="type">DBusGProxy</span> constructed like this, method calls will be sent to
|
48
|
+
the current owner of the name, and that owner can change over time.
|
49
|
+
</p>
|
50
|
+
<p>
|
51
|
+
The same can be achieved with <a class="link" href="GDBusProxy.html" title="GDBusProxy"><span class="type">GDBusProxy</span></a>:
|
52
|
+
</p>
|
53
|
+
<div class="informalexample">
|
54
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
55
|
+
<tbody>
|
56
|
+
<tr>
|
57
|
+
<td class="listing_lines" align="right"><pre>1
|
58
|
+
2
|
59
|
+
3
|
60
|
+
4
|
61
|
+
5
|
62
|
+
6
|
63
|
+
7
|
64
|
+
8
|
65
|
+
9</pre></td>
|
66
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">error </span><span class="symbol">=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
67
|
+
<span class="normal">proxy </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-new-for-bus-sync">g_dbus_proxy_new_for_bus_sync</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html#G-BUS-TYPE-SYSTEM:CAPS">G_BUS_TYPE_SYSTEM</a></span><span class="symbol">,</span>
|
68
|
+
<span class="normal"> <a href="GDBusProxy.html#G-DBUS-PROXY-FLAGS-NONE:CAPS">G_DBUS_PROXY_FLAGS_NONE</a></span><span class="symbol">,</span>
|
69
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* GDBusInterfaceInfo */</span>
|
70
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.Accounts"</span><span class="symbol">,</span>
|
71
|
+
<span class="normal"> </span><span class="string">"/org/freedesktop/Accounts"</span><span class="symbol">,</span>
|
72
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.Accounts"</span><span class="symbol">,</span>
|
73
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* GCancellable */</span>
|
74
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span></pre></td>
|
75
|
+
</tr>
|
76
|
+
</tbody>
|
77
|
+
</table>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<p>
|
81
|
+
For an added layer of safety, you can specify what D-Bus
|
82
|
+
interface the proxy is expected to conform to by using the
|
83
|
+
<a class="link" href="gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo" title="GDBusInterfaceInfo"><span class="type">GDBusInterfaceInfo</span></a> type.
|
84
|
+
</p>
|
85
|
+
<p>
|
86
|
+
Additionally, <a class="link" href="GDBusProxy.html" title="GDBusProxy"><span class="type">GDBusProxy</span></a> loads, caches and tracks changes to
|
87
|
+
the D-Bus properties on the remote object. It also sets up match
|
88
|
+
rules so D-Bus signals from the remote object are delivered
|
89
|
+
locally.
|
90
|
+
</p>
|
91
|
+
</div>
|
92
|
+
<div class="footer">
|
93
|
+
<hr>
|
94
|
+
Generated by GTK-Doc V1.15.1</div>
|
95
|
+
</body>
|
96
|
+
</html>
|
@@ -0,0 +1,823 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Client-side GObject bindings</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
|
+
<link rel="up" href="ch27.html" title="Migrating to GDBus">
|
9
|
+
<link rel="prev" href="ch27s04.html" title="Creating proxies for well-known names">
|
10
|
+
<link rel="next" href="ch27s06.html" title="Exporting objects">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
16
|
+
<td><a accesskey="p" href="ch27s04.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
17
|
+
<td><a accesskey="u" href="ch27.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
18
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
19
|
+
<th width="100%" align="center">GIO Reference Manual</th>
|
20
|
+
<td><a accesskey="n" href="ch27s06.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="section">
|
23
|
+
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
+
<a name="id357453"></a>Client-side GObject bindings</h2></div></div></div>
|
25
|
+
<p>
|
26
|
+
dbus-glib comes with <span class="command"><strong>dbus-binding-tool</strong></span>, which
|
27
|
+
can produce somewhat nice client-side wrappers for a D-Bus interface.
|
28
|
+
GDBus does not have code-generation at this point, but <a class="link" href="GDBusProxy.html" title="GDBusProxy"><span class="type">GDBusProxy</span></a>
|
29
|
+
is designed to allow the creating of client-side wrappers by
|
30
|
+
subclassing <a class="link" href="GDBusProxy.html" title="GDBusProxy"><span class="type">GDBusProxy</span></a>.
|
31
|
+
</p>
|
32
|
+
<p>
|
33
|
+
For an example of a <span class="type">GDBusProxy-derived</span> class that wraps a D-Bus
|
34
|
+
interface in a type-safe way, see <a class="xref" href="ch27s05.html#gdbus-example-proxy-subclass" title="Example 14. GDBusProxy subclass example">Example 14, “GDBusProxy subclass example”</a>. The comparison is as
|
35
|
+
follows:
|
36
|
+
</p>
|
37
|
+
<div class="table">
|
38
|
+
<a name="gdbus-example-type-safe-proxy"></a><p class="title"><b>Table 8. Wrapping the org.freedesktop.Accounts.User D-Bus interface in the AccountUser GObject type</b></p>
|
39
|
+
<div class="table-contents"><table summary="Wrapping the org.freedesktop.Accounts.User D-Bus interface in the AccountUser GObject type" border="1">
|
40
|
+
<colgroup>
|
41
|
+
<col>
|
42
|
+
<col>
|
43
|
+
</colgroup>
|
44
|
+
<thead><tr>
|
45
|
+
<th>D-Bus concept</th>
|
46
|
+
<th>GObject concept</th>
|
47
|
+
</tr></thead>
|
48
|
+
<tbody>
|
49
|
+
<tr>
|
50
|
+
<td>AutomaticLogin property</td>
|
51
|
+
<td>
|
52
|
+
<p><code class="literal">AccountsUser:automatic-login</code> GObject property</p>
|
53
|
+
<p>C getter: <code class="function">accounts_user_get_automatic_login()</code></p>
|
54
|
+
<p>Watch changes via the <code class="literal">notify::automatic-login</code> signal</p>
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr>
|
58
|
+
<td>RealName property</td>
|
59
|
+
<td>
|
60
|
+
<p><code class="literal">AccountsUser:real-name</code> GObject property</p>
|
61
|
+
<p>C getter: <code class="function">accounts_user_get_real_name()</code></p>
|
62
|
+
<p>Watch changes via the <code class="literal">notify::real-name signal</code></p>
|
63
|
+
</td>
|
64
|
+
</tr>
|
65
|
+
<tr>
|
66
|
+
<td>UserName property</td>
|
67
|
+
<td>
|
68
|
+
<p><code class="literal">AccountsUser:user-name</code> GObject property</p>
|
69
|
+
<p>C getter: <code class="function">accounts_user_get_user_name()</code></p>
|
70
|
+
<p>Watch changes via the <code class="literal">notify::user-name</code> signal</p>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
<tr>
|
74
|
+
<td>Changed signal</td>
|
75
|
+
<td>
|
76
|
+
<p><code class="literal">AccountsUser::changed</code> GObject signal</p>
|
77
|
+
<p>Watch via e.g. <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect"><code class="function">g_signal_connect()</code></a></p>
|
78
|
+
</td>
|
79
|
+
</tr>
|
80
|
+
<tr>
|
81
|
+
<td>Frobnicate method</td>
|
82
|
+
<td>
|
83
|
+
<p>Use <code class="function">accounts_user_frobnicate()</code> + <code class="function">accounts_user_frobnicate_finish()</code> or <code class="function">accounts_user_frobnicate_sync()</code> to invoke</p>
|
84
|
+
</td>
|
85
|
+
</tr>
|
86
|
+
</tbody>
|
87
|
+
</table></div>
|
88
|
+
</div>
|
89
|
+
<p><br class="table-break">
|
90
|
+
</p>
|
91
|
+
<div class="example">
|
92
|
+
<a name="gdbus-example-proxy-subclass"></a><p class="title"><b>Example 14. GDBusProxy subclass example</b></p>
|
93
|
+
<div class="example-contents">
|
94
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
95
|
+
<tbody>
|
96
|
+
<tr>
|
97
|
+
<td class="listing_lines" align="right"><pre>1
|
98
|
+
2
|
99
|
+
3
|
100
|
+
4
|
101
|
+
5
|
102
|
+
6
|
103
|
+
7
|
104
|
+
8
|
105
|
+
9
|
106
|
+
10
|
107
|
+
11
|
108
|
+
12
|
109
|
+
13
|
110
|
+
14
|
111
|
+
15
|
112
|
+
16
|
113
|
+
17
|
114
|
+
18
|
115
|
+
19
|
116
|
+
20
|
117
|
+
21
|
118
|
+
22
|
119
|
+
23
|
120
|
+
24
|
121
|
+
25
|
122
|
+
26
|
123
|
+
27
|
124
|
+
28
|
125
|
+
29
|
126
|
+
30
|
127
|
+
31
|
128
|
+
32
|
129
|
+
33
|
130
|
+
34
|
131
|
+
35
|
132
|
+
36
|
133
|
+
37
|
134
|
+
38
|
135
|
+
39
|
136
|
+
40
|
137
|
+
41
|
138
|
+
42
|
139
|
+
43
|
140
|
+
44
|
141
|
+
45
|
142
|
+
46
|
143
|
+
47
|
144
|
+
48
|
145
|
+
49
|
146
|
+
50
|
147
|
+
51
|
148
|
+
52
|
149
|
+
53
|
150
|
+
54
|
151
|
+
55
|
152
|
+
56
|
153
|
+
57
|
154
|
+
58
|
155
|
+
59
|
156
|
+
60
|
157
|
+
61
|
158
|
+
62
|
159
|
+
63
|
160
|
+
64
|
161
|
+
65
|
162
|
+
66
|
163
|
+
67
|
164
|
+
68
|
165
|
+
69
|
166
|
+
70
|
167
|
+
71
|
168
|
+
72
|
169
|
+
73
|
170
|
+
74
|
171
|
+
75
|
172
|
+
76
|
173
|
+
77
|
174
|
+
78
|
175
|
+
79
|
176
|
+
80
|
177
|
+
81
|
178
|
+
82
|
179
|
+
83
|
180
|
+
84
|
181
|
+
85
|
182
|
+
86
|
183
|
+
87
|
184
|
+
88
|
185
|
+
89
|
186
|
+
90
|
187
|
+
91
|
188
|
+
92
|
189
|
+
93
|
190
|
+
94
|
191
|
+
95
|
192
|
+
96
|
193
|
+
97
|
194
|
+
98
|
195
|
+
99
|
196
|
+
100
|
197
|
+
101
|
198
|
+
102
|
199
|
+
103
|
200
|
+
104
|
201
|
+
105
|
202
|
+
106
|
203
|
+
107
|
204
|
+
108
|
205
|
+
109
|
206
|
+
110
|
207
|
+
111
|
208
|
+
112
|
209
|
+
113
|
210
|
+
114
|
211
|
+
115
|
212
|
+
116
|
213
|
+
117
|
214
|
+
118
|
215
|
+
119
|
216
|
+
120
|
217
|
+
121
|
218
|
+
122
|
219
|
+
123
|
220
|
+
124
|
221
|
+
125
|
222
|
+
126
|
223
|
+
127
|
224
|
+
128
|
225
|
+
129
|
226
|
+
130
|
227
|
+
131
|
228
|
+
132
|
229
|
+
133
|
230
|
+
134
|
231
|
+
135
|
232
|
+
136
|
233
|
+
137
|
234
|
+
138
|
235
|
+
139
|
236
|
+
140
|
237
|
+
141
|
238
|
+
142
|
239
|
+
143
|
240
|
+
144
|
241
|
+
145
|
242
|
+
146
|
243
|
+
147
|
244
|
+
148
|
245
|
+
149
|
246
|
+
150
|
247
|
+
151
|
248
|
+
152
|
249
|
+
153
|
250
|
+
154
|
251
|
+
155
|
252
|
+
156
|
253
|
+
157
|
254
|
+
158
|
255
|
+
159
|
256
|
+
160
|
257
|
+
161
|
258
|
+
162
|
259
|
+
163
|
260
|
+
164
|
261
|
+
165
|
262
|
+
166
|
263
|
+
167
|
264
|
+
168
|
265
|
+
169
|
266
|
+
170
|
267
|
+
171
|
268
|
+
172
|
269
|
+
173
|
270
|
+
174
|
271
|
+
175
|
272
|
+
176
|
273
|
+
177
|
274
|
+
178
|
275
|
+
179
|
276
|
+
180
|
277
|
+
181
|
278
|
+
182
|
279
|
+
183
|
280
|
+
184
|
281
|
+
185
|
282
|
+
186
|
283
|
+
187
|
284
|
+
188
|
285
|
+
189
|
286
|
+
190
|
287
|
+
191
|
288
|
+
192
|
289
|
+
193
|
290
|
+
194
|
291
|
+
195
|
292
|
+
196
|
293
|
+
197
|
294
|
+
198
|
295
|
+
199
|
296
|
+
200
|
297
|
+
201
|
298
|
+
202
|
299
|
+
203
|
300
|
+
204
|
301
|
+
205
|
302
|
+
206
|
303
|
+
207
|
304
|
+
208
|
305
|
+
209
|
306
|
+
210
|
307
|
+
211
|
308
|
+
212
|
309
|
+
213
|
310
|
+
214
|
311
|
+
215
|
312
|
+
216
|
313
|
+
217
|
314
|
+
218
|
315
|
+
219
|
316
|
+
220
|
317
|
+
221
|
318
|
+
222
|
319
|
+
223
|
320
|
+
224
|
321
|
+
225
|
322
|
+
226
|
323
|
+
227
|
324
|
+
228
|
325
|
+
229
|
326
|
+
230
|
327
|
+
231
|
328
|
+
232
|
329
|
+
233
|
330
|
+
234
|
331
|
+
235
|
332
|
+
236
|
333
|
+
237
|
334
|
+
238
|
335
|
+
239
|
336
|
+
240
|
337
|
+
241
|
338
|
+
242
|
339
|
+
243
|
340
|
+
244
|
341
|
+
245
|
342
|
+
246
|
343
|
+
247
|
344
|
+
248
|
345
|
+
249
|
346
|
+
250
|
347
|
+
251
|
348
|
+
252
|
349
|
+
253
|
350
|
+
254
|
351
|
+
255
|
352
|
+
256
|
353
|
+
257
|
354
|
+
258
|
355
|
+
259
|
356
|
+
260
|
357
|
+
261
|
358
|
+
262
|
359
|
+
263
|
360
|
+
264
|
361
|
+
265
|
362
|
+
266
|
363
|
+
267
|
364
|
+
268
|
365
|
+
269
|
366
|
+
270
|
367
|
+
271
|
368
|
+
272
|
369
|
+
273
|
370
|
+
274
|
371
|
+
275
|
372
|
+
276
|
373
|
+
277
|
374
|
+
278
|
375
|
+
279
|
376
|
+
280
|
377
|
+
281
|
378
|
+
282
|
379
|
+
283
|
380
|
+
284
|
381
|
+
285
|
382
|
+
286
|
383
|
+
287
|
384
|
+
288
|
385
|
+
289
|
386
|
+
290
|
387
|
+
291
|
388
|
+
292
|
389
|
+
293
|
390
|
+
294
|
391
|
+
295
|
392
|
+
296
|
393
|
+
297
|
394
|
+
298
|
395
|
+
299
|
396
|
+
300
|
397
|
+
301
|
398
|
+
302
|
399
|
+
303
|
400
|
+
304
|
401
|
+
305
|
402
|
+
306
|
403
|
+
307
|
404
|
+
308
|
405
|
+
309
|
406
|
+
310
|
407
|
+
311
|
408
|
+
312
|
409
|
+
313
|
410
|
+
314
|
411
|
+
315
|
412
|
+
316
|
413
|
+
317
|
414
|
+
318
|
415
|
+
319
|
416
|
+
320
|
417
|
+
321
|
418
|
+
322
|
419
|
+
323
|
420
|
+
324
|
421
|
+
325
|
422
|
+
326
|
423
|
+
327
|
424
|
+
328
|
425
|
+
329
|
426
|
+
330
|
427
|
+
331
|
428
|
+
332
|
429
|
+
333
|
430
|
+
334
|
431
|
+
335
|
432
|
+
336
|
433
|
+
337
|
434
|
+
338
|
435
|
+
339
|
436
|
+
340
|
437
|
+
341
|
438
|
+
342
|
439
|
+
343
|
440
|
+
344
|
441
|
+
345
|
442
|
+
346
|
443
|
+
347
|
444
|
+
348
|
445
|
+
349
|
446
|
+
350
|
447
|
+
351
|
448
|
+
352
|
449
|
+
353
|
450
|
+
354
|
451
|
+
355
|
452
|
+
356
|
453
|
+
357</pre></td>
|
454
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gio.h></span>
|
455
|
+
|
456
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
457
|
+
<span class="comment">/* The D-Bus interface definition we want to create a GDBusProxy-derived type for: */</span>
|
458
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
459
|
+
|
460
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> introspection_xml</span><span class="symbol">[]</span><span class="normal"> </span><span class="symbol">=</span>
|
461
|
+
<span class="normal"> </span><span class="string">"<node>"</span>
|
462
|
+
<span class="normal"> </span><span class="string">" <interface name='org.freedesktop.Accounts.User'>"</span>
|
463
|
+
<span class="normal"> </span><span class="string">" <method name='Frobnicate'>"</span>
|
464
|
+
<span class="normal"> </span><span class="string">" <arg name='flux' type='s' direction='in'/>"</span>
|
465
|
+
<span class="normal"> </span><span class="string">" <arg name='baz' type='s' direction='in'/>"</span>
|
466
|
+
<span class="normal"> </span><span class="string">" <arg name='result' type='s' direction='out'/>"</span>
|
467
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
468
|
+
<span class="normal"> </span><span class="string">" <signal name='Changed'/>"</span>
|
469
|
+
<span class="normal"> </span><span class="string">" <property name='AutomaticLogin' type='b' access='readwrite'/>"</span>
|
470
|
+
<span class="normal"> </span><span class="string">" <property name='RealName' type='s' access='read'/>"</span>
|
471
|
+
<span class="normal"> </span><span class="string">" <property name='UserName' type='s' access='read'/>"</span>
|
472
|
+
<span class="normal"> </span><span class="string">" </interface>"</span>
|
473
|
+
<span class="normal"> </span><span class="string">"</node>"</span><span class="symbol">;</span>
|
474
|
+
|
475
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
476
|
+
<span class="comment">/* Definition of the AccountsUser type */</span>
|
477
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
478
|
+
|
479
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function">ACCOUNTS_TYPE_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="function">accounts_user_get_type</span><span class="normal"> </span><span class="symbol">())</span>
|
480
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function">ACCOUNTS_USER</span><span class="symbol">(</span><span class="normal">o</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-CHECK-INSTANCE-CAST:CAPS">G_TYPE_CHECK_INSTANCE_CAST</a></span><span class="normal"> </span><span class="symbol">((</span><span class="normal">o</span><span class="symbol">),</span><span class="normal"> ACCOUNTS_TYPE_USER</span><span class="symbol">,</span><span class="normal"> AccountsUser</span><span class="symbol">))</span>
|
481
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function">ACCOUNTS_USER_CLASS</span><span class="symbol">(</span><span class="normal">k</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-CHECK-CLASS-CAST:CAPS">G_TYPE_CHECK_CLASS_CAST</a></span><span class="symbol">((</span><span class="normal">k</span><span class="symbol">),</span><span class="normal"> ACCOUNTS_TYPE_USER</span><span class="symbol">,</span><span class="normal"> AccountsUserClass</span><span class="symbol">))</span>
|
482
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function">ACCOUNTS_USER_GET_CLASS</span><span class="symbol">(</span><span class="normal">o</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-INSTANCE-GET-CLASS:CAPS">G_TYPE_INSTANCE_GET_CLASS</a></span><span class="normal"> </span><span class="symbol">((</span><span class="normal">o</span><span class="symbol">),</span><span class="normal"> ACCOUNTS_TYPE_USER</span><span class="symbol">,</span><span class="normal"> AccountsUserClass</span><span class="symbol">))</span>
|
483
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function">ACCOUNTS_IS_USER</span><span class="symbol">(</span><span class="normal">o</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-CHECK-INSTANCE-TYPE:CAPS">G_TYPE_CHECK_INSTANCE_TYPE</a></span><span class="normal"> </span><span class="symbol">((</span><span class="normal">o</span><span class="symbol">),</span><span class="normal"> ACCOUNTS_TYPE_USER</span><span class="symbol">))</span>
|
484
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function">ACCOUNTS_IS_USER_CLASS</span><span class="symbol">(</span><span class="normal">k</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-CHECK-CLASS-TYPE:CAPS">G_TYPE_CHECK_CLASS_TYPE</a></span><span class="normal"> </span><span class="symbol">((</span><span class="normal">k</span><span class="symbol">),</span><span class="normal"> ACCOUNTS_TYPE_USER</span><span class="symbol">))</span>
|
485
|
+
|
486
|
+
<span class="keyword">typedef</span><span class="normal"> </span><span class="keyword">struct</span><span class="normal"> </span><span class="classname">_AccountsUser</span><span class="normal"> AccountsUser</span><span class="symbol">;</span>
|
487
|
+
<span class="keyword">typedef</span><span class="normal"> </span><span class="keyword">struct</span><span class="normal"> </span><span class="classname">_AccountsUserClass</span><span class="normal"> AccountsUserClass</span><span class="symbol">;</span>
|
488
|
+
<span class="keyword">typedef</span><span class="normal"> </span><span class="keyword">struct</span><span class="normal"> </span><span class="classname">_AccountsUserPrivate</span><span class="normal"> AccountsUserPrivate</span><span class="symbol">;</span>
|
489
|
+
|
490
|
+
<span class="keyword">struct</span><span class="normal"> </span><span class="classname">_AccountsUser</span>
|
491
|
+
<span class="cbracket">{</span>
|
492
|
+
<span class="normal"> </span><span class="comment">/*< private >*/</span>
|
493
|
+
<span class="normal"> </span><span class="usertype">GDBusProxy</span><span class="normal"> parent_instance</span><span class="symbol">;</span>
|
494
|
+
<span class="normal"> </span><span class="usertype">AccountsUserPrivate</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">priv</span><span class="symbol">;</span>
|
495
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
496
|
+
|
497
|
+
<span class="keyword">struct</span><span class="normal"> </span><span class="classname">_AccountsUserClass</span>
|
498
|
+
<span class="cbracket">{</span>
|
499
|
+
<span class="normal"> </span><span class="comment">/*< private >*/</span>
|
500
|
+
<span class="normal"> </span><span class="usertype">GDBusProxyClass</span><span class="normal"> parent_class</span><span class="symbol">;</span>
|
501
|
+
<span class="normal"> </span><span class="type">void</span><span class="normal"> </span><span class="symbol">(*</span><span class="normal">changed</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">);</span>
|
502
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
503
|
+
|
504
|
+
<span class="usertype">GType</span><span class="normal"> </span><span class="function">accounts_user_get_type</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Macros.html#G-GNUC-CONST:CAPS">G_GNUC_CONST</a></span><span class="symbol">;</span>
|
505
|
+
|
506
|
+
<span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="function">accounts_user_get_user_name</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">);</span>
|
507
|
+
<span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="function">accounts_user_get_real_name</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">);</span>
|
508
|
+
<span class="usertype">gboolean</span><span class="normal"> </span><span class="function">accounts_user_get_automatic_login</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">);</span>
|
509
|
+
|
510
|
+
<span class="type">void</span><span class="normal"> </span><span class="function">accounts_user_frobnicate</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">,</span>
|
511
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">flux</span><span class="symbol">,</span>
|
512
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> baz</span><span class="symbol">,</span>
|
513
|
+
<span class="normal"> </span><span class="usertype">GCancellable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cancellable</span><span class="symbol">,</span>
|
514
|
+
<span class="normal"> </span><span class="usertype">GAsyncReadyCallback</span><span class="normal"> callback</span><span class="symbol">,</span>
|
515
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">);</span>
|
516
|
+
<span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="function">accounts_user_frobnicate_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">,</span>
|
517
|
+
<span class="normal"> </span><span class="usertype">GAsyncResult</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">res</span><span class="symbol">,</span>
|
518
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">error</span><span class="symbol">);</span>
|
519
|
+
<span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="function">accounts_user_frobnicate_sync</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">,</span>
|
520
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">flux</span><span class="symbol">,</span>
|
521
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> baz</span><span class="symbol">,</span>
|
522
|
+
<span class="normal"> </span><span class="usertype">GCancellable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cancellable</span><span class="symbol">,</span>
|
523
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">error</span><span class="symbol">);</span>
|
524
|
+
|
525
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
526
|
+
<span class="comment">/* Implementation of the AccountsUser type */</span>
|
527
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
528
|
+
|
529
|
+
<span class="comment">/* A more efficient approach than parsing XML is to use const static</span>
|
530
|
+
<span class="comment"> * GDBusInterfaceInfo, GDBusMethodInfo, ... structures</span>
|
531
|
+
<span class="comment"> */</span>
|
532
|
+
<span class="keyword">static</span><span class="normal"> <a href="gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo">GDBusInterfaceInfo</a> </span><span class="symbol">*</span>
|
533
|
+
<span class="function">accounts_user_get_interface_info</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
534
|
+
<span class="cbracket">{</span>
|
535
|
+
<span class="normal"> </span><span class="keyword">static</span><span class="normal"> </span><span class="usertype">gsize</span><span class="normal"> has_info </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
536
|
+
<span class="normal"> </span><span class="keyword">static</span><span class="normal"> </span><span class="usertype">GDBusInterfaceInfo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">info </span><span class="symbol">=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
537
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Threads.html#g-once-init-enter">g_once_init_enter</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">has_info</span><span class="symbol">))</span>
|
538
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
539
|
+
<span class="normal"> </span><span class="usertype">GDBusNodeInfo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">introspection_data</span><span class="symbol">;</span>
|
540
|
+
<span class="normal"> introspection_data </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-new-for-xml">g_dbus_node_info_new_for_xml</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_xml</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
541
|
+
<span class="normal"> info </span><span class="symbol">=</span><span class="normal"> introspection_data</span><span class="symbol">-></span><span class="normal">interfaces</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">];</span>
|
542
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Threads.html#g-once-init-leave">g_once_init_leave</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">has_info</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
543
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
544
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> info</span><span class="symbol">;</span>
|
545
|
+
<span class="cbracket">}</span>
|
546
|
+
|
547
|
+
<span class="keyword">enum</span>
|
548
|
+
<span class="cbracket">{</span>
|
549
|
+
<span class="normal"> PROP_0</span><span class="symbol">,</span>
|
550
|
+
<span class="normal"> PROP_USER_NAME</span><span class="symbol">,</span>
|
551
|
+
<span class="normal"> PROP_REAL_NAME</span><span class="symbol">,</span>
|
552
|
+
<span class="normal"> PROP_AUTOMATIC_LOGIN</span><span class="symbol">,</span>
|
553
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
554
|
+
|
555
|
+
<span class="keyword">enum</span>
|
556
|
+
<span class="cbracket">{</span>
|
557
|
+
<span class="normal"> CHANGED_SIGNAL</span><span class="symbol">,</span>
|
558
|
+
<span class="normal"> LAST_SIGNAL</span>
|
559
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
560
|
+
|
561
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">guint</span><span class="normal"> signals</span><span class="symbol">[</span><span class="normal">LAST_SIGNAL</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> </span><span class="cbracket">{</span><span class="number">0</span><span class="cbracket">}</span><span class="symbol">;</span>
|
562
|
+
|
563
|
+
<span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-DEFINE-TYPE:CAPS">G_DEFINE_TYPE</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">AccountsUser</span><span class="symbol">,</span><span class="normal"> accounts_user</span><span class="symbol">,</span><span class="normal"> G_TYPE_DBUS_PROXY</span><span class="symbol">);</span>
|
564
|
+
|
565
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
566
|
+
<span class="function">accounts_user_finalize</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">object</span><span class="symbol">)</span>
|
567
|
+
<span class="cbracket">{</span>
|
568
|
+
<span class="normal"> </span><span class="usertype">G_GNUC_UNUSED</span><span class="normal"> </span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user </span><span class="symbol">=</span><span class="normal"> </span><span class="function">ACCOUNTS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
569
|
+
|
570
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT-CLASS:CAPS">G_OBJECT_CLASS</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">accounts_user_parent_class</span><span class="symbol">)-></span><span class="normal">finalize </span><span class="symbol">!=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
571
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT-CLASS:CAPS">G_OBJECT_CLASS</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">accounts_user_parent_class</span><span class="symbol">)-></span><span class="function">finalize</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
572
|
+
<span class="cbracket">}</span>
|
573
|
+
|
574
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
575
|
+
<span class="function">accounts_user_init</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">)</span>
|
576
|
+
<span class="cbracket">{</span>
|
577
|
+
<span class="normal"> </span><span class="comment">/* Sets the expected interface */</span>
|
578
|
+
<span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-set-interface-info">g_dbus_proxy_set_interface_info</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="function">accounts_user_get_interface_info</span><span class="normal"> </span><span class="symbol">());</span>
|
579
|
+
<span class="cbracket">}</span>
|
580
|
+
|
581
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
582
|
+
<span class="function">accounts_user_get_property</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">object</span><span class="symbol">,</span>
|
583
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> prop_id</span><span class="symbol">,</span>
|
584
|
+
<span class="normal"> </span><span class="usertype">GValue</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">value</span><span class="symbol">,</span>
|
585
|
+
<span class="normal"> </span><span class="usertype">GParamSpec</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pspec</span><span class="symbol">)</span>
|
586
|
+
<span class="cbracket">{</span>
|
587
|
+
<span class="normal"> </span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user </span><span class="symbol">=</span><span class="normal"> </span><span class="function">ACCOUNTS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
588
|
+
|
589
|
+
<span class="normal"> </span><span class="keyword">switch</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">prop_id</span><span class="symbol">)</span>
|
590
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
591
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_USER_NAME</span><span class="symbol">:</span>
|
592
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#g-value-set-string">g_value_set_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> </span><span class="function">accounts_user_get_user_name</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">));</span>
|
593
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
594
|
+
|
595
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_REAL_NAME</span><span class="symbol">:</span>
|
596
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#g-value-set-string">g_value_set_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> </span><span class="function">accounts_user_get_real_name</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">));</span>
|
597
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
598
|
+
|
599
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_AUTOMATIC_LOGIN</span><span class="symbol">:</span>
|
600
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#g-value-set-boolean">g_value_set_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> </span><span class="function">accounts_user_get_automatic_login</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">));</span>
|
601
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
602
|
+
|
603
|
+
<span class="label"> default:</span>
|
604
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT-WARN-INVALID-PROPERTY-ID:CAPS">G_OBJECT_WARN_INVALID_PROPERTY_ID</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">,</span><span class="normal"> prop_id</span><span class="symbol">,</span><span class="normal"> pspec</span><span class="symbol">);</span>
|
605
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
606
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
607
|
+
<span class="cbracket">}</span>
|
608
|
+
|
609
|
+
<span class="keyword">const</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*</span>
|
610
|
+
<span class="function">accounts_user_get_user_name</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">)</span>
|
611
|
+
<span class="cbracket">{</span>
|
612
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">value</span><span class="symbol">;</span>
|
613
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
614
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">ACCOUNTS_IS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
615
|
+
<span class="normal"> value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-get-cached-property">g_dbus_proxy_get_cached_property</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"UserName"</span><span class="symbol">);</span>
|
616
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get-string">g_variant_get_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
617
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-unref">g_variant_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
618
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
619
|
+
<span class="cbracket">}</span>
|
620
|
+
|
621
|
+
<span class="keyword">const</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*</span>
|
622
|
+
<span class="function">accounts_user_get_real_name</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">)</span>
|
623
|
+
<span class="cbracket">{</span>
|
624
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">value</span><span class="symbol">;</span>
|
625
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
626
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">ACCOUNTS_IS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
627
|
+
<span class="normal"> value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-get-cached-property">g_dbus_proxy_get_cached_property</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"RealName"</span><span class="symbol">);</span>
|
628
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get-string">g_variant_get_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
629
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-unref">g_variant_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
630
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
631
|
+
<span class="cbracket">}</span>
|
632
|
+
|
633
|
+
<span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
634
|
+
<span class="function">accounts_user_get_automatic_login</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">)</span>
|
635
|
+
<span class="cbracket">{</span>
|
636
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">value</span><span class="symbol">;</span>
|
637
|
+
<span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> ret</span><span class="symbol">;</span>
|
638
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">ACCOUNTS_IS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
639
|
+
<span class="normal"> value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-get-cached-property">g_dbus_proxy_get_cached_property</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"AutomaticLogin"</span><span class="symbol">);</span>
|
640
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get-boolean">g_variant_get_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
641
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-unref">g_variant_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
642
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
643
|
+
<span class="cbracket">}</span>
|
644
|
+
|
645
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
646
|
+
<span class="function">accounts_user_g_signal</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GDBusProxy</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">proxy</span><span class="symbol">,</span>
|
647
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">sender_name</span><span class="symbol">,</span>
|
648
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">signal_name</span><span class="symbol">,</span>
|
649
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">parameters</span><span class="symbol">)</span>
|
650
|
+
<span class="cbracket">{</span>
|
651
|
+
<span class="normal"> </span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user </span><span class="symbol">=</span><span class="normal"> </span><span class="function">ACCOUNTS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">proxy</span><span class="symbol">);</span>
|
652
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">signal_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Changed"</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
|
653
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-emit">g_signal_emit</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">,</span><span class="normal"> signals</span><span class="symbol">[</span><span class="normal">CHANGED_SIGNAL</span><span class="symbol">],</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
654
|
+
<span class="cbracket">}</span>
|
655
|
+
|
656
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
657
|
+
<span class="function">accounts_user_g_properties_changed</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GDBusProxy</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">proxy</span><span class="symbol">,</span>
|
658
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">changed_properties</span><span class="symbol">,</span>
|
659
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a></span><span class="symbol">*</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invalidated_properties</span><span class="symbol">)</span>
|
660
|
+
<span class="cbracket">{</span>
|
661
|
+
<span class="normal"> </span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user </span><span class="symbol">=</span><span class="normal"> </span><span class="function">ACCOUNTS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">proxy</span><span class="symbol">);</span>
|
662
|
+
<span class="normal"> </span><span class="usertype">GVariantIter</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">iter</span><span class="symbol">;</span>
|
663
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">key</span><span class="symbol">;</span>
|
664
|
+
|
665
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">changed_properties </span><span class="symbol">!=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
666
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
667
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">changed_properties</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"a{sv}"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">);</span>
|
668
|
+
<span class="normal"> </span><span class="keyword">while</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-iter-next">g_variant_iter_next</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"{&sv}"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">key</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">))</span>
|
669
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
670
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">key</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"AutomaticLogin"</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
|
671
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-notify">g_object_notify</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"automatic-login"</span><span class="symbol">);</span>
|
672
|
+
<span class="normal"> </span><span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">key</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"RealName"</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
|
673
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-notify">g_object_notify</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"real-name"</span><span class="symbol">);</span>
|
674
|
+
<span class="normal"> </span><span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">key</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"UserName"</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
|
675
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-notify">g_object_notify</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"user-name"</span><span class="symbol">);</span>
|
676
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
677
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-iter-free">g_variant_iter_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">iter</span><span class="symbol">);</span>
|
678
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
679
|
+
<span class="cbracket">}</span>
|
680
|
+
|
681
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
682
|
+
<span class="function">accounts_user_class_init</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUserClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">klass</span><span class="symbol">)</span>
|
683
|
+
<span class="cbracket">{</span>
|
684
|
+
<span class="normal"> </span><span class="usertype">GObjectClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">gobject_class</span><span class="symbol">;</span>
|
685
|
+
<span class="normal"> </span><span class="usertype">GDBusProxyClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">proxy_class</span><span class="symbol">;</span>
|
686
|
+
|
687
|
+
<span class="normal"> gobject_class </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT-CLASS:CAPS">G_OBJECT_CLASS</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">klass</span><span class="symbol">);</span>
|
688
|
+
<span class="normal"> gobject_class</span><span class="symbol">-></span><span class="normal">get_property </span><span class="symbol">=</span><span class="normal"> accounts_user_get_property</span><span class="symbol">;</span>
|
689
|
+
<span class="normal"> gobject_class</span><span class="symbol">-></span><span class="normal">finalize </span><span class="symbol">=</span><span class="normal"> accounts_user_finalize</span><span class="symbol">;</span>
|
690
|
+
|
691
|
+
<span class="normal"> proxy_class </span><span class="symbol">=</span><span class="normal"> </span><span class="function">G_DBUS_PROXY_CLASS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">klass</span><span class="symbol">);</span>
|
692
|
+
<span class="normal"> proxy_class</span><span class="symbol">-></span><span class="normal">g_signal </span><span class="symbol">=</span><span class="normal"> accounts_user_g_signal</span><span class="symbol">;</span>
|
693
|
+
<span class="normal"> proxy_class</span><span class="symbol">-></span><span class="normal">g_properties_changed </span><span class="symbol">=</span><span class="normal"> accounts_user_g_properties_changed</span><span class="symbol">;</span>
|
694
|
+
|
695
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-class-install-property">g_object_class_install_property</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gobject_class</span><span class="symbol">,</span>
|
696
|
+
<span class="normal"> PROP_USER_NAME</span><span class="symbol">,</span>
|
697
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-string">g_param_spec_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"user-name"</span><span class="symbol">,</span>
|
698
|
+
<span class="normal"> </span><span class="string">"User Name"</span><span class="symbol">,</span>
|
699
|
+
<span class="normal"> </span><span class="string">"The user name of the user"</span><span class="symbol">,</span>
|
700
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
701
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#G-PARAM-READABLE:CAPS">G_PARAM_READABLE</a> </span><span class="symbol">|</span>
|
702
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#G-PARAM-STATIC-STRINGS:CAPS">G_PARAM_STATIC_STRINGS</a></span><span class="symbol">));</span>
|
703
|
+
|
704
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-class-install-property">g_object_class_install_property</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gobject_class</span><span class="symbol">,</span>
|
705
|
+
<span class="normal"> PROP_REAL_NAME</span><span class="symbol">,</span>
|
706
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-string">g_param_spec_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"real-name"</span><span class="symbol">,</span>
|
707
|
+
<span class="normal"> </span><span class="string">"Real Name"</span><span class="symbol">,</span>
|
708
|
+
<span class="normal"> </span><span class="string">"The real name of the user"</span><span class="symbol">,</span>
|
709
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
710
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#G-PARAM-READABLE:CAPS">G_PARAM_READABLE</a> </span><span class="symbol">|</span>
|
711
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#G-PARAM-STATIC-STRINGS:CAPS">G_PARAM_STATIC_STRINGS</a></span><span class="symbol">));</span>
|
712
|
+
|
713
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-class-install-property">g_object_class_install_property</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gobject_class</span><span class="symbol">,</span>
|
714
|
+
<span class="normal"> PROP_AUTOMATIC_LOGIN</span><span class="symbol">,</span>
|
715
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-boolean">g_param_spec_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"automatic-login"</span><span class="symbol">,</span>
|
716
|
+
<span class="normal"> </span><span class="string">"Automatic Login"</span><span class="symbol">,</span>
|
717
|
+
<span class="normal"> </span><span class="string">"Whether the user is automatically logged in"</span><span class="symbol">,</span>
|
718
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span>
|
719
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#G-PARAM-READABLE:CAPS">G_PARAM_READABLE</a> </span><span class="symbol">|</span>
|
720
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#G-PARAM-STATIC-STRINGS:CAPS">G_PARAM_STATIC_STRINGS</a></span><span class="symbol">));</span>
|
721
|
+
|
722
|
+
<span class="normal"> signals</span><span class="symbol">[</span><span class="normal">CHANGED_SIGNAL</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-new">g_signal_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"changed"</span><span class="symbol">,</span>
|
723
|
+
<span class="normal"> ACCOUNTS_TYPE_USER</span><span class="symbol">,</span>
|
724
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">G_SIGNAL_RUN_LAST</a></span><span class="symbol">,</span>
|
725
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#G-STRUCT-OFFSET:CAPS">G_STRUCT_OFFSET</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">AccountsUserClass</span><span class="symbol">,</span><span class="normal"> changed</span><span class="symbol">),</span>
|
726
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
727
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
728
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#g-cclosure-marshal-VOID--VOID">g_cclosure_marshal_VOID__VOID</a></span><span class="symbol">,</span>
|
729
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-NONE:CAPS">G_TYPE_NONE</a></span><span class="symbol">,</span>
|
730
|
+
<span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
731
|
+
<span class="cbracket">}</span>
|
732
|
+
|
733
|
+
<span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*</span>
|
734
|
+
<span class="function">accounts_user_frobnicate_sync</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">,</span>
|
735
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">flux</span><span class="symbol">,</span>
|
736
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> baz</span><span class="symbol">,</span>
|
737
|
+
<span class="normal"> </span><span class="usertype">GCancellable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cancellable</span><span class="symbol">,</span>
|
738
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">error</span><span class="symbol">)</span>
|
739
|
+
<span class="cbracket">{</span>
|
740
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
741
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">value</span><span class="symbol">;</span>
|
742
|
+
|
743
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-return-val-if-fail">g_return_val_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">ACCOUNTS_IS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
744
|
+
|
745
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
746
|
+
|
747
|
+
<span class="normal"> value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-call-sync">g_dbus_proxy_call_sync</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span>
|
748
|
+
<span class="normal"> </span><span class="string">"Frobnicate"</span><span class="symbol">,</span>
|
749
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(si)"</span><span class="symbol">,</span>
|
750
|
+
<span class="normal"> flux</span><span class="symbol">,</span>
|
751
|
+
<span class="normal"> baz</span><span class="symbol">),</span>
|
752
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-CALL-FLAGS-NONE:CAPS">G_DBUS_CALL_FLAGS_NONE</a></span><span class="symbol">,</span>
|
753
|
+
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span>
|
754
|
+
<span class="normal"> cancellable</span><span class="symbol">,</span>
|
755
|
+
<span class="normal"> error</span><span class="symbol">);</span>
|
756
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value </span><span class="symbol">!=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
757
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
758
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"(s)"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">ret</span><span class="symbol">);</span>
|
759
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-unref">g_variant_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
760
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
761
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
762
|
+
<span class="cbracket">}</span>
|
763
|
+
|
764
|
+
<span class="type">void</span>
|
765
|
+
<span class="function">accounts_user_frobnicate</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">,</span>
|
766
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">flux</span><span class="symbol">,</span>
|
767
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> baz</span><span class="symbol">,</span>
|
768
|
+
<span class="normal"> </span><span class="usertype">GCancellable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cancellable</span><span class="symbol">,</span>
|
769
|
+
<span class="normal"> </span><span class="usertype">GAsyncReadyCallback</span><span class="normal"> callback</span><span class="symbol">,</span>
|
770
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
771
|
+
<span class="cbracket">{</span>
|
772
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Warnings-and-Assertions.html#g-return-if-fail">g_return_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">ACCOUNTS_IS_USER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">));</span>
|
773
|
+
<span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-call">g_dbus_proxy_call</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span>
|
774
|
+
<span class="normal"> </span><span class="string">"Frobnicate"</span><span class="symbol">,</span>
|
775
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(si)"</span><span class="symbol">,</span>
|
776
|
+
<span class="normal"> flux</span><span class="symbol">,</span>
|
777
|
+
<span class="normal"> baz</span><span class="symbol">),</span>
|
778
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-CALL-FLAGS-NONE:CAPS">G_DBUS_CALL_FLAGS_NONE</a></span><span class="symbol">,</span>
|
779
|
+
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span>
|
780
|
+
<span class="normal"> cancellable</span><span class="symbol">,</span>
|
781
|
+
<span class="normal"> callback</span><span class="symbol">,</span>
|
782
|
+
<span class="normal"> user_data</span><span class="symbol">);</span>
|
783
|
+
<span class="cbracket">}</span>
|
784
|
+
|
785
|
+
|
786
|
+
<span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*</span>
|
787
|
+
<span class="function">accounts_user_frobnicate_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">AccountsUser</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">user</span><span class="symbol">,</span>
|
788
|
+
<span class="normal"> </span><span class="usertype">GAsyncResult</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">res</span><span class="symbol">,</span>
|
789
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">error</span><span class="symbol">)</span>
|
790
|
+
<span class="cbracket">{</span>
|
791
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
792
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">value</span><span class="symbol">;</span>
|
793
|
+
|
794
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
795
|
+
<span class="normal"> value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusProxy.html#g-dbus-proxy-call-finish">g_dbus_proxy_call_finish</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_DBUS_PROXY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user</span><span class="symbol">),</span><span class="normal"> res</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">);</span>
|
796
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value </span><span class="symbol">!=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
797
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
798
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"(s)"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">ret</span><span class="symbol">);</span>
|
799
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#g-variant-unref">g_variant_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
800
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
801
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
802
|
+
<span class="cbracket">}</span>
|
803
|
+
|
804
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
805
|
+
|
806
|
+
<span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint">gint</a></span>
|
807
|
+
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">gint</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
808
|
+
<span class="cbracket">{</span>
|
809
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
810
|
+
<span class="cbracket">}</span></pre></td>
|
811
|
+
</tr>
|
812
|
+
</tbody>
|
813
|
+
</table>
|
814
|
+
</div>
|
815
|
+
|
816
|
+
</div>
|
817
|
+
<br class="example-break">
|
818
|
+
</div>
|
819
|
+
<div class="footer">
|
820
|
+
<hr>
|
821
|
+
Generated by GTK-Doc V1.15.1</div>
|
822
|
+
</body>
|
823
|
+
</html>
|