glib2 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -7
- data/ext/glib2/extconf.rb +1 -0
- data/ext/glib2/glib2.def +7 -0
- data/ext/glib2/rbglib.c +32 -1
- data/ext/glib2/rbglib.h +18 -1
- data/ext/glib2/rbglib_iochannel.c +1 -5
- data/ext/glib2/rbglib_utils.c +1 -1
- data/ext/glib2/rbgobj_boxed.c +16 -0
- data/ext/glib2/rbgobj_object.c +2 -2
- data/ext/glib2/rbgobj_type.c +36 -4
- data/ext/glib2/rbgobject.c +4 -4
- data/ext/glib2/rbgobject.h +11 -5
- data/ext/glib2/rbgutil.c +1 -1
- data/lib/1.9/glib2.so +0 -0
- data/lib/2.0/glib2.so +0 -0
- data/lib/gnome2/rake/package-task.rb +1 -1
- data/vendor/local/bin/certtool.exe +0 -0
- data/vendor/local/bin/danetool.exe +0 -0
- data/vendor/local/bin/gdbus.exe +0 -0
- data/vendor/local/bin/gio-querymodules.exe +0 -0
- data/vendor/local/bin/glib-compile-resources.exe +0 -0
- data/vendor/local/bin/glib-compile-schemas.exe +0 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +1 -1
- data/vendor/local/bin/glib-mkenums +1 -1
- data/vendor/local/bin/gnutls-cli-debug.exe +0 -0
- data/vendor/local/bin/gnutls-cli.exe +0 -0
- data/vendor/local/bin/gnutls-serv.exe +0 -0
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gresource.exe +0 -0
- data/vendor/local/bin/gsettings.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/libgmp-10.dll +0 -0
- data/vendor/local/bin/libgnutls-28.def +748 -745
- data/vendor/local/bin/libgnutls-28.dll +0 -0
- data/vendor/local/bin/libgnutls-openssl-27.dll +0 -0
- data/vendor/local/bin/libgnutls-xssl-0.dll +0 -0
- data/vendor/local/bin/libgnutlsxx-28.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/bin/libhogweed-2-2.dll +0 -0
- data/vendor/local/bin/libhogweed-2-4.dll +0 -0
- data/vendor/local/bin/libnettle-4-4.dll +0 -0
- data/vendor/local/bin/libnettle-4-6.dll +0 -0
- data/vendor/local/bin/nettle-hash.exe +0 -0
- data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
- data/vendor/local/bin/ocsptool.exe +0 -0
- data/vendor/local/bin/pkcs1-conv.exe +0 -0
- data/vendor/local/bin/psktool.exe +0 -0
- data/vendor/local/bin/sexp-conv.exe +0 -0
- data/vendor/local/bin/srptool.exe +0 -0
- data/vendor/local/include/gmp.h +1 -1
- data/vendor/local/include/gnutls/abstract.h +34 -11
- data/vendor/local/include/gnutls/gnutls.h +20 -4
- data/vendor/local/include/gnutls/ocsp.h +1 -1
- data/vendor/local/include/gnutls/x509.h +1 -1
- data/vendor/local/include/nettle/aes.h +2 -2
- data/vendor/local/include/nettle/arcfour.h +2 -2
- data/vendor/local/include/nettle/arctwo.h +2 -2
- data/vendor/local/include/nettle/asn1.h +2 -2
- data/vendor/local/include/nettle/base16.h +2 -2
- data/vendor/local/include/nettle/base64.h +2 -2
- data/vendor/local/include/nettle/bignum.h +2 -2
- data/vendor/local/include/nettle/blowfish.h +2 -2
- data/vendor/local/include/nettle/buffer.h +2 -2
- data/vendor/local/include/nettle/cast128.h +2 -2
- data/vendor/local/include/nettle/cbc.h +2 -2
- data/vendor/local/include/nettle/ctr.h +2 -2
- data/vendor/local/include/nettle/des-compat.h +2 -2
- data/vendor/local/include/nettle/des.h +2 -2
- data/vendor/local/include/nettle/dsa.h +4 -3
- data/vendor/local/include/nettle/ecc-curve.h +45 -0
- data/vendor/local/include/nettle/ecc.h +261 -0
- data/vendor/local/include/nettle/ecdsa.h +94 -0
- data/vendor/local/include/nettle/gcm.h +2 -2
- data/vendor/local/include/nettle/gosthash94.h +88 -0
- data/vendor/local/include/nettle/hmac.h +4 -3
- data/vendor/local/include/nettle/knuth-lfib.h +2 -2
- data/vendor/local/include/nettle/macros.h +31 -9
- data/vendor/local/include/nettle/md2.h +2 -2
- data/vendor/local/include/nettle/md4.h +2 -2
- data/vendor/local/include/nettle/md5-compat.h +2 -2
- data/vendor/local/include/nettle/md5.h +2 -2
- data/vendor/local/include/nettle/nettle-meta.h +7 -2
- data/vendor/local/include/nettle/nettle-types.h +2 -2
- data/vendor/local/include/nettle/pbkdf2.h +77 -0
- data/vendor/local/include/nettle/pgp.h +2 -2
- data/vendor/local/include/nettle/pkcs1.h +2 -2
- data/vendor/local/include/nettle/realloc.h +2 -2
- data/vendor/local/include/nettle/ripemd160.h +2 -2
- data/vendor/local/include/nettle/rsa-compat.h +2 -2
- data/vendor/local/include/nettle/rsa.h +4 -3
- data/vendor/local/include/nettle/salsa20.h +17 -6
- data/vendor/local/include/nettle/serpent.h +2 -2
- data/vendor/local/include/nettle/sexp.h +2 -2
- data/vendor/local/include/nettle/sha.h +8 -167
- data/vendor/local/include/nettle/sha1.h +78 -0
- data/vendor/local/include/nettle/sha2.h +156 -0
- data/vendor/local/include/nettle/sha3.h +176 -0
- data/vendor/local/include/nettle/twofish.h +2 -2
- data/vendor/local/include/nettle/umac.h +241 -0
- data/vendor/local/include/nettle/yarrow.h +3 -3
- data/vendor/local/lib/gio/modules/libgiognutls.a +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.la +1 -1
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.la +1 -1
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.la +1 -1
- data/vendor/local/lib/libgmp.dll.a +0 -0
- data/vendor/local/lib/libgmp.la +1 -1
- data/vendor/local/lib/libgnutls-openssl.a +0 -0
- data/vendor/local/lib/libgnutls-openssl.dll.a +0 -0
- data/vendor/local/lib/libgnutls-xssl.a +0 -0
- data/vendor/local/lib/libgnutls-xssl.dll.a +0 -0
- data/vendor/local/lib/libgnutls.a +0 -0
- data/vendor/local/lib/libgnutls.dll.a +0 -0
- data/vendor/local/lib/libgnutls.la +2 -2
- data/vendor/local/lib/libgnutlsxx.a +0 -0
- data/vendor/local/lib/libgnutlsxx.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.la +1 -1
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.la +1 -1
- data/vendor/local/lib/libhogweed.a +0 -0
- data/vendor/local/lib/libhogweed.dll.a +0 -0
- data/vendor/local/lib/libnettle.a +0 -0
- data/vendor/local/lib/libnettle.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gnutls.pc +2 -2
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/hogweed.pc +1 -1
- data/vendor/local/lib/pkgconfig/nettle.pc +1 -1
- data/vendor/local/share/gdb/auto-load/libglib-2.0.so.0.3600.1-gdb.py +10 -0
- data/vendor/local/share/gdb/auto-load/libglib-2.0.so.0.3600.2-gdb.py +10 -0
- data/vendor/local/share/gdb/auto-load/libgobject-2.0.so.0.3600.1-gdb.py +10 -0
- data/vendor/local/share/gdb/auto-load/libgobject-2.0.so.0.3600.2-gdb.py +10 -0
- data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.py +1 -1
- data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/dbustypes.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/dbustypes.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/parser.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/parser.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
- data/vendor/local/share/gtk-doc/html/gio/ExampleAnimal.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ExampleCat.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ExampleObject.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ExampleObjectManagerClient.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GActionMap.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +251 -251
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +70 -70
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusActionGroup.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +1290 -1290
- data/vendor/local/share/gtk-doc/html/gio/GDBusInterface.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusInterfaceSkeleton.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusMenuModel.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObject.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManager.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerClient.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerServer.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectProxy.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectSkeleton.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +228 -228
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +202 -202
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/GMenu.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GMenuModel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GNetworkMonitor.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GRemoteActionGroup.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +114 -114
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +76 -76
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSimpleProxyResolver.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +47 -47
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSrvTarget.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTask.html +324 -324
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTestDBus.html +82 -82
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsDatabase.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsFileDatabase.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsInteraction.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsPassword.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +25 -37
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-30.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-32.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-34.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-36.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/application.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/async.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch30.html +31 -31
- data/vendor/local/share/gtk-doc/html/gio/ch30s02.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch30s03.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch31.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch31s02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch31s03.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/ch31s04.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/ch31s05.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch31s06.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch31s07.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch32.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch32s02.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/ch32s03.html +61 -61
- data/vendor/local/share/gtk-doc/html/gio/ch32s04.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/ch32s05.html +391 -391
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/extending.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus-codegen.html +204 -192
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus-org.gtk.GDBus.Example.ObjectManager.Animal.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gdbus-org.gtk.GDBus.Example.ObjectManager.Cat.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +11 -11
- data/vendor/local/share/gtk-doc/html/gio/gio-GActionGroup-exporter.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GInetAddressMask.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GMenuModel-exporter.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GResource.html +10 -10
- data/vendor/local/share/gtk-doc/html/gio/gio-GSettingsSchema-GSettingsSchemaSource.html +41 -41
- data/vendor/local/share/gtk-doc/html/gio/gio-GWin32InputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GWin32OutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +74 -74
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +74 -74
- data/vendor/local/share/gtk-doc/html/gio/gio-gnetworking.h.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-gpollableutils.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-resources.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gresource-tool.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/icons.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/networking.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/resources.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/running-gio-apps.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/settings.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/testing.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/tls.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/tools.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/types.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/utils.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +29 -43
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-30.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-32.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-34.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-36.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +17 -17
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +24 -24
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-HMACs.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Deprecated-Thread-APIs.html +53 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +103 -103
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +7 -7
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +54 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +29 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +71 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +70 -70
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +100 -100
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +141 -141
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-programming.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +7 -1
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +142 -142
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/tools.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +17 -17
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +49 -49
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +27 -40
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-30.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-32.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-34.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-36.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +8 -1
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +7 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +41 -41
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +43 -43
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +118 -118
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +130 -130
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +8 -6
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +32 -3
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +94 -94
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-override.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-prerequisite.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +1 -1
- data/vendor/local/share/info/gmp.info +151 -151
- data/vendor/local/share/info/gmp.info-1 +19 -37
- data/vendor/local/share/info/gmp.info-2 +29 -5
- data/vendor/local/share/info/gnutls-guile.info +229 -721
- data/vendor/local/share/info/gnutls.info +1279 -1274
- data/vendor/local/share/info/gnutls.info-1 +2448 -2748
- data/vendor/local/share/info/gnutls.info-2 +2743 -2581
- data/vendor/local/share/info/gnutls.info-3 +1152 -4484
- data/vendor/local/share/info/gnutls.info-4 +4933 -1832
- data/vendor/local/share/info/gnutls.info-5 +0 -0
- data/vendor/local/share/info/nettle.info +1037 -315
- data/vendor/local/share/license/gmp/AUTHORS +13 -13
- data/vendor/local/share/locale/cs/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gnutls.mo +0 -0
- data/vendor/local/share/man/man1/certtool.1 +2 -2
- data/vendor/local/share/man/man1/gdbus-codegen.1 +14 -7
- data/vendor/local/share/man/man1/gdbus.1 +2 -5
- data/vendor/local/share/man/man1/gio-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/glib-compile-resources.1 +3 -3
- data/vendor/local/share/man/man1/glib-compile-schemas.1 +2 -2
- data/vendor/local/share/man/man1/glib-genmarshal.1 +9 -3
- data/vendor/local/share/man/man1/glib-gettextize.1 +2 -3
- data/vendor/local/share/man/man1/glib-mkenums.1 +7 -3
- data/vendor/local/share/man/man1/gnutls-cli-debug.1 +2 -2
- data/vendor/local/share/man/man1/gnutls-cli.1 +2 -2
- data/vendor/local/share/man/man1/gnutls-serv.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -4
- data/vendor/local/share/man/man1/gresource.1 +2 -2
- data/vendor/local/share/man/man1/gsettings.1 +2 -2
- data/vendor/local/share/man/man1/gtester-report.1 +7 -3
- data/vendor/local/share/man/man1/gtester.1 +2 -3
- data/vendor/local/share/man/man1/ocsptool.1 +2 -2
- data/vendor/local/share/man/man1/p11tool.1 +2 -2
- data/vendor/local/share/man/man1/psktool.1 +2 -2
- data/vendor/local/share/man/man1/srptool.1 +2 -2
- data/vendor/local/share/man/man1/tpmtool.1 +2 -2
- data/vendor/local/share/man/man3/gnutls_alert_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_alert_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_alert_get_strname.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_alert_send.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_alert_send_appropriate.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_allocate_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_allocate_server_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_free_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_free_server_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_set_params_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_set_server_dh_params.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_anon_set_server_params_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_auth_client_get_type.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_auth_get_type.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_auth_server_get_type.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_bye.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_activation_time_peers.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_allocate_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_client_get_request_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_expiration_time_peers.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_free_ca_names.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_free_cas.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_free_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_free_crls.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_free_keys.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_get_issuer.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_get_ours.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_get_peers.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_get_peers_subkey_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_send_x509_rdn_sequence.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_server_set_request.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_dh_params.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_key.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_ocsp_status_request_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_ocsp_status_request_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_file2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_mem2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_keyring_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_keyring_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_params_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_retrieve_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_retrieve_function2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_rsa_export_params.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_verify_flags.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_verify_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_verify_limits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_file2.3 +64 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_mem2.3 +67 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_simple_pkcs12_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_simple_pkcs12_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_system_trust.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_type_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_type_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_type_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_type_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_type_set_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_verification_status_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_verify_peers2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_certificate_verify_peers3.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_check_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_add_auth.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_decrypt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_decrypt2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_encrypt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_encrypt2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_get_block_size.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_get_key_size.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_set_iv.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_set_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_suite_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_suite_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_cipher_tag.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_compression_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_compression_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_compression_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_compression_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_compression_set_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_credentials_clear.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_credentials_set.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_check_entry.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_check_entry_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_get_ptr.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_remove_session.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_set_cache_expiration.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_set_ptr.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_set_remove_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_set_retrieve_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_db_set_store_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_get_group.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_get_peers_public_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_get_prime_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_get_pubkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_get_secret_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_cpy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_export2_pkcs3.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_export_pkcs3.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_export_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_generate2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_import_pkcs3.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_import_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_params_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dh_set_prime_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_cookie_send.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_cookie_verify.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_get_data_mtu.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_get_mtu.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_get_timeout.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_prestate_set.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_set_data_mtu.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_set_mtu.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_dtls_set_timeouts.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ecc_curve_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ecc_curve_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ecc_curve_get_size.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ecc_curve_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_error_is_fatal.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_error_to_alert.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_fingerprint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_set_audit_log_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_set_log_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_set_log_level.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_set_mem_functions.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_set_mutex.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_global_set_time_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_get_last_in.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_get_last_out.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_set_max_packet_length.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_set_post_client_hello_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_set_private_extensions.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_set_random.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_handshake_set_timeout.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hash.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hash_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hash_fast.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hash_get_len.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hash_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hash_output.3 +3 -2
- data/vendor/local/share/man/man3/gnutls_heartbeat_allowed.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_heartbeat_enable.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_heartbeat_get_timeout.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_heartbeat_ping.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_heartbeat_pong.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_heartbeat_set_timeouts.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hex2bin.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hex_decode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hex_encode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hmac.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hmac_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hmac_fast.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hmac_get_len.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hmac_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_hmac_output.3 +3 -2
- data/vendor/local/share/man/man3/gnutls_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_key_generate.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_kx_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_kx_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_kx_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_kx_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_kx_set_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_load_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_mac_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_mac_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_mac_get_key_size.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_mac_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_mac_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_mac_set_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_add_cert.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_add_cert_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_get_cert_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_get_extension.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_get_nonce.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_randomize_nonce.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_set_extension.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_req_set_nonce.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_check_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_certs.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_extension.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_nonce.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_produced.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_responder.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_response.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_signature.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_signature_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_single.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_verify.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_resp_verify_direct.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_status_request_enable_client.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_status_request_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_ocsp_status_request_is_checked.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_check_hostname.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_auth_subkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_creation_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_expiration_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_fingerprint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_preferred_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_revoked_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_creation_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_expiration_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_fingerprint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_idx.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_revoked_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_set_preferred_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_verify_ring.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_verify_self.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_check_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_get_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_get_crt_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_subkey_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_subkey_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_fingerprint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_preferred_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_revoked_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_creation_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_fingerprint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_idx.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_revoked_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_sec_param.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_set_preferred_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_sign_hash.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_send_cert.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_openpgp_set_recv_key_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pcert_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pcert_import_openpgp.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pcert_import_openpgp_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pcert_import_x509.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pcert_import_x509_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pcert_list_import_x509_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pem_base64_decode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pem_base64_decode_alloc.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pem_base64_encode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pem_base64_encode_alloc.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_perror.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pk_algorithm_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pk_bits_to_sec_param.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pk_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pk_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pk_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pk_to_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_add_provider.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_copy_secret_key.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_copy_x509_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_copy_x509_privkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_delete_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_get_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_export_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_get_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_get_type.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_import_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_list_import_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_list_import_url2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_obj_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_export_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_generate.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_generate2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_get_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_import_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_reinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_set_token_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_flags.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_mechanism.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_token_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_token_set_pin.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs11_type_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_decrypt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_encrypt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_friendly_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_type.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_crl.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_friendly_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_generate_mac.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_get_bag.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_set_bag.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs12_simple_parse.3 +8 -8
- data/vendor/local/share/man/man3/gnutls_pkcs12_verify_mac.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_delete_crl.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_delete_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crl_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crl_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crt_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crt_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crl.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crl_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crt_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_prf.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_prf_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_certificate_type_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_compression_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_ecc_curve_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_get_cipher_suite_index.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_protocol_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_set.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_set_direct.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_priority_sign_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_decrypt_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_get_type.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_ext.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_ext2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_openpgp.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_openpgp_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_pkcs11.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_pkcs11_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_tpm_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_tpm_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_x509.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_import_x509_raw.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_privkey_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_privkey_sign_data.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_privkey_sign_hash.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_privkey_sign_raw_data.3 +4 -1
- data/vendor/local/share/man/man3/gnutls_privkey_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_protocol_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_protocol_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_protocol_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_protocol_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_protocol_set_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_allocate_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_allocate_server_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_client_get_hint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_free_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_free_server_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_server_get_username.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_client_credentials_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_params_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_hint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_server_dh_params.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_psk_set_server_params_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_encrypt_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_openpgp_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_ecc_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_ecc_x962.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_preferred_hash_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_get_verify_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_ecc_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_ecc_x962.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_openpgp.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_openpgp_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_pkcs11.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_pkcs11_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_privkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_tpm_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_tpm_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_x509.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_x509_crq.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_import_x509_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_set_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_pubkey_verify_data.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_pubkey_verify_data2.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_pubkey_verify_hash.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_pubkey_verify_hash2.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_random_art.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_range_split.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_can_use_length_hiding.3 +4 -4
- data/vendor/local/share/man/man3/gnutls_record_check_pending.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_cork.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_disable_padding.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_get_direction.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_get_discarded.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_get_max_size.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_recv.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_recv_seq.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_send.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_send_range.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_set_max_empty_records.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_set_max_size.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_set_timeout.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_record_uncork.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rehandshake.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rnd.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rnd_refresh.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_export_get_modulus_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_export_get_pubkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_cpy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_export_pkcs1.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_export_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_generate2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_import_pkcs1.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_import_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_rsa_params_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_safe_renegotiation_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sec_param_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sec_param_to_pk_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_server_name_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_server_name_set.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_channel_binding.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_enable_compatibility_mode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_force_valid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_data2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_desc.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_id2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_ptr.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_get_random.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_is_resumed.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_resumption_requested.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_set_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_set_premaster.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_set_ptr.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_ticket_enable_client.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_ticket_enable_server.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_session_ticket_key_generate.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_set_default_export_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_set_default_priority.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_algorithm_get.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_sign_algorithm_get_client.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_sign_algorithm_get_requested.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_callback_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_callback_set.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_get_hash_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_get_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_is_secure.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_sign_list.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_allocate_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_allocate_server_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_base64_decode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_base64_decode_alloc.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_base64_encode.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_base64_encode_alloc.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_free_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_free_server_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_server_get_username.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_set_client_credentials.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_set_client_credentials_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_set_prime_bits.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_set_server_credentials_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_set_server_credentials_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srp_verifier.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_get_keys.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_get_mki.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_get_profile_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_get_profile_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_get_selected_profile.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_set_mki.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_set_profile.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_srtp_set_profile_direct.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_store_commitment.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_store_pubkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_strerror.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_strerror_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_supplemental_get_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tdb_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tdb_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tdb_set_store_commitment_func.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tdb_set_store_func.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tdb_set_verify_func.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tpm_get_registered.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tpm_key_list_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tpm_key_list_get_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tpm_privkey_delete.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_tpm_privkey_generate.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_get_int.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_get_int2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_get_ptr.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_get_ptr2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_errno.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_errno_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_int.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_int2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_ptr.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_ptr2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_pull_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_pull_timeout_function.3 +5 -3
- data/vendor/local/share/man/man3/gnutls_transport_set_push_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_transport_set_vec_push_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_url_is_supported.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_verify_stored_pubkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_check_issuer.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_authority_key_gn_serial.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_authority_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_crt_count.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_crt_serial.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_dn_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_extension_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_extension_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_extension_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_next_update.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_number.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_raw_issuer_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_signature.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_signature_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_this_update.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_list_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_list_import2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_privkey_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_authority_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_crt_serial.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_next_update.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_number.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_this_update.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_sign2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crl_verify.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_basic_constraints.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_challenge_password.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_extension_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_extension_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_extension_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_purpose_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_private_key_usage_period.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_subject_alt_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_subject_alt_othername_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_privkey_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_attribute_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_basic_constraints.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_challenge_password.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_key.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_key_purpose_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_key_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_private_key_usage_period.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_pubkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_subject_alt_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_sign2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crq_verify.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_check_hostname.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_check_issuer.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_check_revocation.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_cpy_crl_dist_points.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_activation_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_info_access.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_key_gn_serial.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_basic_constraints.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_ca_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_crl_dist_points.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_expiration_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_info.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_fingerprint.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_alt_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_alt_name2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_alt_othername_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_unique_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_purpose_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_policy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_preferred_hash_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_private_key_usage_period.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_proxy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_raw_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_raw_issuer_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_serial.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_signature.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_signature_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_name2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_othername_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_unique_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_verify_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_import_pkcs11.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_import_pkcs11_url.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_list_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_list_import2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_list_import_pkcs11.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_list_verify.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_print.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_privkey_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_activation_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_authority_info_access.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_authority_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_basic_constraints.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_ca_status.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_crl_dist_points.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_crl_dist_points2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_crq.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_crq_extensions.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_expiration_time.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_extension_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_issuer_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_issuer_dn_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_key.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_key_purpose_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_key_usage.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_pin_function.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_policy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_private_key_usage_period.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_proxy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_proxy_dn.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_pubkey.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_serial.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_alt_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_alternative_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_version.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_sign.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_sign2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_verify.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_verify_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_crt_verify_hash.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_get_rdn_ava.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_oid_known.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_dn_oid_name.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_policy_release.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_cpy.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export2_pkcs8.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_ecc_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_pkcs8.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_rsa_raw2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_fix.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_generate.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_get_key_id.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_get_pk_algorithm.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_get_pk_algorithm2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import2.3 +2 -2
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_dsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_ecc_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_openssl.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_pkcs8.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_rsa_raw.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_rsa_raw2.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_sec_param.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_sign_data.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_sign_hash.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_privkey_verify_params.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_rdn_get.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_rdn_get_by_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_rdn_get_oid.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_cas.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_crls.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_named_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_system_trust.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_trust_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_trust_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_deinit.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_get_issuer.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_init.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_remove_cas.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_remove_trust_file.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_remove_trust_mem.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_verify_crt.3 +1 -1
- data/vendor/local/share/man/man3/gnutls_x509_trust_list_verify_named_crt.3 +1 -1
- metadata +22 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GApplicationCommandLine</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="application.html" title="Application support">
|
9
9
|
<link rel="prev" href="GApplication.html" title="GApplication">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GAsyncInitable</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="failable_initialization.html" title="Failable Initialization">
|
9
9
|
<link rel="prev" href="GInitable.html" title="GInitable">
|
@@ -209,87 +209,87 @@ A typical implementation might look something like this:
|
|
209
209
|
79
|
210
210
|
80
|
211
211
|
81</pre></td>
|
212
|
-
<td class="listing_code"><pre class="programlisting"><span class="
|
213
|
-
NOT_INITIALIZED
|
214
|
-
INITIALIZING
|
215
|
-
INITIALIZED
|
216
|
-
}
|
212
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">enum</span><span class="normal"> </span><span class="cbracket">{</span>
|
213
|
+
<span class="normal"> NOT_INITIALIZED</span><span class="symbol">,</span>
|
214
|
+
<span class="normal"> INITIALIZING</span><span class="symbol">,</span>
|
215
|
+
<span class="normal"> INITIALIZED</span>
|
216
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
217
217
|
|
218
|
-
<span class="
|
219
|
-
_foo_ready_cb (Foo
|
220
|
-
{
|
221
|
-
|
218
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
219
|
+
<span class="function">_foo_ready_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">Foo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">self</span><span class="symbol">)</span>
|
220
|
+
<span class="cbracket">{</span>
|
221
|
+
<span class="normal"> </span><span class="usertype">GList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">l</span><span class="symbol">;</span>
|
222
222
|
|
223
|
-
self
|
223
|
+
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">state </span><span class="symbol">=</span><span class="normal"> INITIALIZED</span><span class="symbol">;</span>
|
224
224
|
|
225
|
-
|
226
|
-
{
|
227
|
-
GTask
|
225
|
+
<span class="normal"> </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">l </span><span class="symbol">=</span><span class="normal"> self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results</span><span class="symbol">;</span><span class="normal"> l </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span><span class="normal"> l </span><span class="symbol">=</span><span class="normal"> l</span><span class="symbol">-></span><span class="normal">next</span><span class="symbol">)</span>
|
226
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
227
|
+
<span class="normal"> </span><span class="usertype">GTask</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">task </span><span class="symbol">=</span><span class="normal"> l</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">;</span>
|
228
228
|
|
229
|
-
|
230
|
-
g_task_return_boolean (task
|
231
|
-
|
232
|
-
g_task_return_new_error (task
|
233
|
-
|
234
|
-
}
|
229
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">success</span><span class="symbol">)</span>
|
230
|
+
<span class="normal"> </span><span class="function"><a href="GTask.html#g-task-return-boolean">g_task_return_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">task</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">);</span>
|
231
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
232
|
+
<span class="normal"> </span><span class="function"><a href="GTask.html#g-task-return-new-error">g_task_return_new_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">task</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">...);</span>
|
233
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">task</span><span class="symbol">);</span>
|
234
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
235
235
|
|
236
|
-
|
237
|
-
self
|
238
|
-
}
|
236
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Doubly-Linked-Lists.html#g-list-free">g_list_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results</span><span class="symbol">);</span>
|
237
|
+
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
238
|
+
<span class="cbracket">}</span>
|
239
239
|
|
240
|
-
<span class="
|
241
|
-
foo_init_async (
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
{
|
247
|
-
Foo
|
248
|
-
GTask
|
240
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
241
|
+
<span class="function">foo_init_async</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GAsyncInitable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">initable</span><span class="symbol">,</span>
|
242
|
+
<span class="normal"> </span><span class="type">int</span><span class="normal"> io_priority</span><span class="symbol">,</span>
|
243
|
+
<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>
|
244
|
+
<span class="normal"> </span><span class="usertype">GAsyncReadyCallback</span><span class="normal"> callback</span><span class="symbol">,</span>
|
245
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
246
|
+
<span class="cbracket">{</span>
|
247
|
+
<span class="normal"> </span><span class="usertype">Foo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">self </span><span class="symbol">=</span><span class="normal"> </span><span class="function">FOO</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">initable</span><span class="symbol">);</span>
|
248
|
+
<span class="normal"> </span><span class="usertype">GTask</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">task</span><span class="symbol">;</span>
|
249
249
|
|
250
|
-
task = g_task_new (initable
|
250
|
+
<span class="normal"> task </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GTask.html#g-task-new">g_task_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">initable</span><span class="symbol">,</span><span class="normal"> cancellable</span><span class="symbol">,</span><span class="normal"> callback</span><span class="symbol">,</span><span class="normal"> user_data</span><span class="symbol">);</span>
|
251
251
|
|
252
|
-
|
253
|
-
{
|
254
|
-
|
255
|
-
_foo_get_ready (self)
|
256
|
-
self
|
257
|
-
task)
|
258
|
-
self
|
259
|
-
|
260
|
-
|
261
|
-
self
|
262
|
-
task)
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
g_task_return_new_error (task
|
267
|
-
|
268
|
-
g_task_return_boolean (task
|
269
|
-
|
270
|
-
|
271
|
-
}
|
272
|
-
}
|
252
|
+
<span class="normal"> </span><span class="keyword">switch</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">state</span><span class="symbol">)</span>
|
253
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
254
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> NOT_INITIALIZED</span><span class="symbol">:</span>
|
255
|
+
<span class="normal"> </span><span class="function">_foo_get_ready</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">);</span>
|
256
|
+
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-Doubly-Linked-Lists.html#g-list-append">g_list_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results</span><span class="symbol">,</span>
|
257
|
+
<span class="normal"> task</span><span class="symbol">);</span>
|
258
|
+
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">state </span><span class="symbol">=</span><span class="normal"> INITIALIZING</span><span class="symbol">;</span>
|
259
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
260
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> INITIALIZING</span><span class="symbol">:</span>
|
261
|
+
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-Doubly-Linked-Lists.html#g-list-append">g_list_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">init_results</span><span class="symbol">,</span>
|
262
|
+
<span class="normal"> task</span><span class="symbol">);</span>
|
263
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
264
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> INITIALIZED</span><span class="symbol">:</span>
|
265
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">priv</span><span class="symbol">-></span><span class="normal">success</span><span class="symbol">)</span>
|
266
|
+
<span class="normal"> </span><span class="function"><a href="GTask.html#g-task-return-new-error">g_task_return_new_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">task</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">...);</span>
|
267
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
268
|
+
<span class="normal"> </span><span class="function"><a href="GTask.html#g-task-return-boolean">g_task_return_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">task</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">);</span>
|
269
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">task</span><span class="symbol">);</span>
|
270
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
271
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
272
|
+
<span class="cbracket">}</span>
|
273
273
|
|
274
|
-
<span class="
|
275
|
-
foo_init_finish (
|
276
|
-
|
277
|
-
|
278
|
-
{
|
279
|
-
|
274
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
275
|
+
<span class="function">foo_init_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GAsyncInitable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">initable</span><span class="symbol">,</span>
|
276
|
+
<span class="normal"> </span><span class="usertype">GAsyncResult</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">result</span><span class="symbol">,</span>
|
277
|
+
<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>
|
278
|
+
<span class="cbracket">{</span>
|
279
|
+
<span class="normal"> </span><span class="function"><a href="../glib/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"><a href="GTask.html#g-task-is-valid">g_task_is_valid</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">result</span><span class="symbol">,</span><span class="normal"> initable</span><span class="symbol">),</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
280
280
|
|
281
|
-
|
282
|
-
}
|
281
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="GTask.html#g-task-propagate-boolean">g_task_propagate_boolean</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">G_TASK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">result</span><span class="symbol">),</span><span class="normal"> error</span><span class="symbol">);</span>
|
282
|
+
<span class="cbracket">}</span>
|
283
283
|
|
284
|
-
<span class="
|
285
|
-
foo_async_initable_iface_init (
|
286
|
-
|
287
|
-
{
|
288
|
-
|
284
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
285
|
+
<span class="function">foo_async_initable_iface_init</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">gpointer</span><span class="normal"> g_iface</span><span class="symbol">,</span>
|
286
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
287
|
+
<span class="cbracket">{</span>
|
288
|
+
<span class="normal"> </span><span class="usertype">GAsyncInitableIface</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">iface </span><span class="symbol">=</span><span class="normal"> g_iface</span><span class="symbol">;</span>
|
289
289
|
|
290
|
-
iface
|
291
|
-
iface
|
292
|
-
}</pre></td>
|
290
|
+
<span class="normal"> iface</span><span class="symbol">-></span><span class="normal">init_async </span><span class="symbol">=</span><span class="normal"> foo_init_async</span><span class="symbol">;</span>
|
291
|
+
<span class="normal"> iface</span><span class="symbol">-></span><span class="normal">init_finish </span><span class="symbol">=</span><span class="normal"> foo_init_finish</span><span class="symbol">;</span>
|
292
|
+
<span class="cbracket">}</span></pre></td>
|
293
293
|
</tr>
|
294
294
|
</tbody>
|
295
295
|
</table>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GAsyncResult</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="async.html" title="Asynchronous I/O">
|
9
9
|
<link rel="prev" href="GCancellable.html" title="GCancellable">
|
@@ -155,44 +155,44 @@ Example of a typical asynchronous operation flow:
|
|
155
155
|
36
|
156
156
|
37
|
157
157
|
38</pre></td>
|
158
|
-
<td class="listing_code"><pre class="programlisting"><span class="type">void</span> _theoretical_frobnitz_async (Theoretical
|
159
|
-
|
160
|
-
|
161
|
-
|
158
|
+
<td class="listing_code"><pre class="programlisting"><span class="type">void</span><span class="normal"> </span><span class="function">_theoretical_frobnitz_async</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">Theoretical</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">t</span><span class="symbol">,</span>
|
159
|
+
<span class="normal"> </span><span class="usertype">GCancellable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">c</span><span class="symbol">,</span>
|
160
|
+
<span class="normal"> </span><span class="usertype">GAsyncReadyCallback</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cb</span><span class="symbol">,</span>
|
161
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> u</span><span class="symbol">);</span>
|
162
162
|
|
163
|
-
<span class="
|
164
|
-
|
165
|
-
|
163
|
+
<span class="usertype">gboolean</span><span class="normal"> </span><span class="function">_theoretical_frobnitz_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">Theoretical</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">t</span><span class="symbol">,</span>
|
164
|
+
<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>
|
165
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">e</span><span class="symbol">);</span>
|
166
166
|
|
167
|
-
<span class="
|
168
|
-
frobnitz_result_func (
|
169
|
-
|
170
|
-
|
171
|
-
{
|
172
|
-
|
167
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
168
|
+
<span class="function">frobnitz_result_func</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">source_object</span><span class="symbol">,</span>
|
169
|
+
<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>
|
170
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
171
|
+
<span class="cbracket">{</span>
|
172
|
+
<span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> success </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
173
173
|
|
174
|
-
success = _theoretical_frobnitz_finish (source_object
|
174
|
+
<span class="normal"> success </span><span class="symbol">=</span><span class="normal"> </span><span class="function">_theoretical_frobnitz_finish</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">source_object</span><span class="symbol">,</span><span class="normal"> res</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
175
175
|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
176
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">success</span><span class="symbol">)</span>
|
177
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-printf">g_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hurray!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
178
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
179
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-printf">g_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Uh oh!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
180
180
|
|
181
|
-
|
181
|
+
<span class="normal"> </span><span class="comment">/* ... */</span>
|
182
182
|
|
183
|
-
}
|
183
|
+
<span class="cbracket">}</span>
|
184
184
|
|
185
|
-
<span class="type">int</span> main (
|
186
|
-
{
|
187
|
-
|
185
|
+
<span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">void</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
186
|
+
<span class="cbracket">{</span>
|
187
|
+
<span class="normal"> </span><span class="comment">/* ... */</span>
|
188
188
|
|
189
|
-
_theoretical_frobnitz_async (theoretical_data
|
190
|
-
|
191
|
-
frobnitz_result_func
|
192
|
-
|
189
|
+
<span class="normal"> </span><span class="function">_theoretical_frobnitz_async</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">theoretical_data</span><span class="symbol">,</span>
|
190
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
191
|
+
<span class="normal"> frobnitz_result_func</span><span class="symbol">,</span>
|
192
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
193
193
|
|
194
|
-
|
195
|
-
}</pre></td>
|
194
|
+
<span class="normal"> </span><span class="comment">/* ... */</span>
|
195
|
+
<span class="cbracket">}</span></pre></td>
|
196
196
|
</tr>
|
197
197
|
</tbody>
|
198
198
|
</table>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GBufferedInputStream</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="streaming.html" title="Streaming I/O">
|
9
9
|
<link rel="prev" href="GMemoryOutputStream.html" title="GMemoryOutputStream">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GBufferedOutputStream</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="streaming.html" title="Streaming I/O">
|
9
9
|
<link rel="prev" href="GBufferedInputStream.html" title="GBufferedInputStream">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GCancellable</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="async.html" title="Asynchronous I/O">
|
9
9
|
<link rel="prev" href="async.html" title="Asynchronous I/O">
|
@@ -662,27 +662,27 @@ An example of how to us this:
|
|
662
662
|
19
|
663
663
|
20
|
664
664
|
21</pre></td>
|
665
|
-
<td class="listing_code"><pre class="programlisting"><span class="comment"
|
666
|
-
|
667
|
-
|
665
|
+
<td class="listing_code"><pre class="programlisting"><span class="comment">/* Make sure we don't do any unnecessary work if already cancelled */</span>
|
666
|
+
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GCancellable.html#g-cancellable-set-error-if-cancelled">g_cancellable_set_error_if_cancelled</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cancellable</span><span class="symbol">))</span>
|
667
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="symbol">;</span>
|
668
668
|
|
669
|
-
|
670
|
-
<span class="comment">
|
671
|
-
|
669
|
+
<span class="comment">/* Set up all the data needed to be able to</span>
|
670
|
+
<span class="comment"> * handle cancellation of the operation */</span>
|
671
|
+
<span class="normal">my_data </span><span class="symbol">=</span><span class="normal"> </span><span class="function">my_data_new</span><span class="normal"> </span><span class="symbol">(...);</span>
|
672
672
|
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
673
|
+
<span class="normal">id </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
674
|
+
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cancellable</span><span class="symbol">)</span>
|
675
|
+
<span class="normal"> id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GCancellable.html#g-cancellable-connect">g_cancellable_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cancellable</span><span class="symbol">,</span>
|
676
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cancelled_handler</span><span class="symbol">)</span>
|
677
|
+
<span class="normal"> data</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
678
678
|
|
679
|
-
|
679
|
+
<span class="comment">/* cancellable operation here... */</span>
|
680
680
|
|
681
|
-
|
681
|
+
<span class="function"><a href="GCancellable.html#g-cancellable-disconnect">g_cancellable_disconnect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cancellable</span><span class="symbol">,</span><span class="normal"> id</span><span class="symbol">);</span>
|
682
682
|
|
683
|
-
|
684
|
-
<span class="comment">
|
685
|
-
|
683
|
+
<span class="comment">/* cancelled_handler is never called after this, it</span>
|
684
|
+
<span class="comment"> * is now safe to free the data */</span>
|
685
|
+
<span class="function">my_data_free</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">my_data</span><span class="symbol">);</span></pre></td>
|
686
686
|
</tr>
|
687
687
|
</tbody>
|
688
688
|
</table>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GCharsetConverter</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="conversion.html" title="Data conversion">
|
9
9
|
<link rel="prev" href="GConverter.html" title="GConverter">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GConverter</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="conversion.html" title="Data conversion">
|
9
9
|
<link rel="prev" href="conversion.html" title="Data conversion">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GCredentials</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="networking.html" title="Low-level network support">
|
9
9
|
<link rel="prev" href="GUnixFDMessage.html" title="GUnixFDMessage">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GDBusActionGroup</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="application.html" title="Application support">
|
9
9
|
<link rel="prev" href="gio-GActionGroup-exporter.html" title="GActionGroup exporter">
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GDBusAuthObserver</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="gdbus-lowlevel.html" title="Lowlevel D-Bus Support">
|
9
9
|
<link rel="prev" href="GDBusServer.html" title="GDBusServer">
|
@@ -109,26 +109,26 @@ signal handler like the following:
|
|
109
109
|
18
|
110
110
|
19
|
111
111
|
20</pre></td>
|
112
|
-
<td class="listing_code"><pre class="programlisting"><span class="
|
113
|
-
on_authorize_authenticated_peer (
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
{
|
118
|
-
|
112
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
113
|
+
<span class="function">on_authorize_authenticated_peer</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GDBusAuthObserver</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">observer</span><span class="symbol">,</span>
|
114
|
+
<span class="normal"> </span><span class="usertype">GIOStream</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">stream</span><span class="symbol">,</span>
|
115
|
+
<span class="normal"> </span><span class="usertype">GCredentials</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">credentials</span><span class="symbol">,</span>
|
116
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
117
|
+
<span class="cbracket">{</span>
|
118
|
+
<span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> authorized</span><span class="symbol">;</span>
|
119
119
|
|
120
|
-
authorized =
|
121
|
-
|
122
|
-
{
|
123
|
-
|
124
|
-
own_credentials =
|
125
|
-
|
126
|
-
authorized =
|
127
|
-
|
128
|
-
}
|
120
|
+
<span class="normal"> authorized </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
121
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">credentials </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
122
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
123
|
+
<span class="normal"> </span><span class="usertype">GCredentials</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">own_credentials</span><span class="symbol">;</span>
|
124
|
+
<span class="normal"> own_credentials </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GCredentials.html#g-credentials-new">g_credentials_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
125
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GCredentials.html#g-credentials-is-same-user">g_credentials_is_same_user</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">credentials</span><span class="symbol">,</span><span class="normal"> own_credentials</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">))</span>
|
126
|
+
<span class="normal"> authorized </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
127
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">own_credentials</span><span class="symbol">);</span>
|
128
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
129
129
|
|
130
|
-
|
131
|
-
}</pre></td>
|
130
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> authorized</span><span class="symbol">;</span>
|
131
|
+
<span class="cbracket">}</span></pre></td>
|
132
132
|
</tr>
|
133
133
|
</tbody>
|
134
134
|
</table>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>GDBusConnection</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="GIO Reference Manual">
|
8
8
|
<link rel="up" href="gdbus-lowlevel.html" title="Lowlevel D-Bus Support">
|
9
9
|
<link rel="prev" href="GDBusMessage.html" title="GDBusMessage">
|
@@ -370,7 +370,7 @@ an D-Bus client, it is often easier to use the <a class="link" href="gio-Owning-
|
|
370
370
|
<p>
|
371
371
|
As an exception to the usual GLib rule that a particular object must not be
|
372
372
|
used by two threads at the same time, <a class="link" href="GDBusConnection.html" title="GDBusConnection"><span class="type">GDBusConnection</span></a>'s methods may be
|
373
|
-
called from any thread<a href="#ftn.id-1.4.16.7.8.4.2" class="footnote"
|
373
|
+
called from any thread<a href="#ftn.id-1.4.16.7.8.4.2" class="footnote" name="id-1.4.16.7.8.4.2"><sup class="footnote">[1]</sup></a>.
|
374
374
|
</p>
|
375
375
|
<p>
|
376
376
|
Most of the ways to obtain a <a class="link" href="GDBusConnection.html" title="GDBusConnection"><span class="type">GDBusConnection</span></a> automatically initialize it
|
@@ -788,396 +788,396 @@ free it with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unre
|
|
788
788
|
388
|
789
789
|
389
|
790
790
|
390</pre></td>
|
791
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include </span><span class="
|
792
|
-
<span class="preproc">#include </span><span class="
|
791
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gio.h></span>
|
792
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><stdlib.h></span>
|
793
793
|
|
794
|
-
<span class="preproc">#ifdef G_OS_UNIX</span>
|
795
|
-
<span class="preproc">#include </span><span class="
|
796
|
-
<span class="comment"
|
797
|
-
<span class="preproc">#include </span><span class="
|
794
|
+
<span class="preproc">#ifdef</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#G-OS-UNIX:CAPS">G_OS_UNIX</a></span>
|
795
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gunixfdlist.h></span>
|
796
|
+
<span class="comment">/* For STDOUT_FILENO */</span>
|
797
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><unistd.h></span>
|
798
798
|
<span class="preproc">#endif</span>
|
799
799
|
|
800
|
-
<span class="comment"
|
801
|
-
|
802
|
-
<span class="
|
803
|
-
|
804
|
-
<span class="comment"
|
805
|
-
<span class="
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
<span class="comment"
|
843
|
-
|
844
|
-
<span class="
|
845
|
-
handle_method_call (
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
{
|
854
|
-
|
855
|
-
{
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
{
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
}
|
867
|
-
|
868
|
-
{
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
}
|
874
|
-
|
875
|
-
{
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
}
|
880
|
-
|
881
|
-
{
|
882
|
-
|
883
|
-
response =
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
}
|
888
|
-
}
|
889
|
-
|
890
|
-
{
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
speed_as_string =
|
897
|
-
|
898
|
-
local_error =
|
899
|
-
|
900
|
-
|
901
|
-
object_path
|
902
|
-
interface_name
|
903
|
-
|
904
|
-
|
905
|
-
speed_in_mph
|
906
|
-
speed_as_string)
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
}
|
913
|
-
|
914
|
-
{
|
915
|
-
<span class="preproc">#ifdef G_OS_UNIX</span>
|
916
|
-
|
917
|
-
{
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
fd_list =
|
923
|
-
error =
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
reply =
|
928
|
-
|
929
|
-
|
930
|
-
error =
|
931
|
-
|
932
|
-
reply
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
}
|
942
|
-
|
943
|
-
{
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
}
|
800
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
801
|
+
|
802
|
+
<span class="keyword">static</span><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><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
803
|
+
|
804
|
+
<span class="comment">/* Introspection data for the service we are exporting */</span>
|
805
|
+
<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>
|
806
|
+
<span class="normal"> </span><span class="string">"<node>"</span>
|
807
|
+
<span class="normal"> </span><span class="string">" <interface name='org.gtk.GDBus.TestInterface'>"</span>
|
808
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='OnInterface'/>"</span>
|
809
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='AlsoOnInterface'/>"</span>
|
810
|
+
<span class="normal"> </span><span class="string">" <method name='HelloWorld'>"</span>
|
811
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='OnMethod'/>"</span>
|
812
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='greeting' direction='in'/>"</span>
|
813
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='response' direction='out'/>"</span>
|
814
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
815
|
+
<span class="normal"> </span><span class="string">" <method name='EmitSignal'>"</span>
|
816
|
+
<span class="normal"> </span><span class="string">" <arg type='d' name='speed_in_mph' direction='in'>"</span>
|
817
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='OnArg'/>"</span>
|
818
|
+
<span class="normal"> </span><span class="string">" </arg>"</span>
|
819
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
820
|
+
<span class="normal"> </span><span class="string">" <method name='GimmeStdout'/>"</span>
|
821
|
+
<span class="normal"> </span><span class="string">" <signal name='VelocityChanged'>"</span>
|
822
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='Onsignal'/>"</span>
|
823
|
+
<span class="normal"> </span><span class="string">" <arg type='d' name='speed_in_mph'/>"</span>
|
824
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='speed_as_string'>"</span>
|
825
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='OnArg_NonFirst'/>"</span>
|
826
|
+
<span class="normal"> </span><span class="string">" </arg>"</span>
|
827
|
+
<span class="normal"> </span><span class="string">" </signal>"</span>
|
828
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='FluxCapicitorName' access='read'>"</span>
|
829
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='OnProperty'>"</span>
|
830
|
+
<span class="normal"> </span><span class="string">" <annotation name='org.gtk.GDBus.Annotation' value='OnAnnotation_YesThisIsCrazy'/>"</span>
|
831
|
+
<span class="normal"> </span><span class="string">" </annotation>"</span>
|
832
|
+
<span class="normal"> </span><span class="string">" </property>"</span>
|
833
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='Title' access='readwrite'/>"</span>
|
834
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='ReadingAlwaysThrowsError' access='read'/>"</span>
|
835
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='WritingAlwaysThrowsError' access='readwrite'/>"</span>
|
836
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='OnlyWritable' access='write'/>"</span>
|
837
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='Foo' access='read'/>"</span>
|
838
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='Bar' access='read'/>"</span>
|
839
|
+
<span class="normal"> </span><span class="string">" </interface>"</span>
|
840
|
+
<span class="normal"> </span><span class="string">"</node>"</span><span class="symbol">;</span>
|
841
|
+
|
842
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
843
|
+
|
844
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
845
|
+
<span class="function">handle_method_call</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>
|
846
|
+
<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</span><span class="symbol">,</span>
|
847
|
+
<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">object_path</span><span class="symbol">,</span>
|
848
|
+
<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">interface_name</span><span class="symbol">,</span>
|
849
|
+
<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">method_name</span><span class="symbol">,</span>
|
850
|
+
<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>
|
851
|
+
<span class="normal"> </span><span class="usertype">GDBusMethodInvocation</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invocation</span><span class="symbol">,</span>
|
852
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
853
|
+
<span class="cbracket">{</span>
|
854
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"HelloWorld"</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>
|
855
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
856
|
+
<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">greeting</span><span class="symbol">;</span>
|
857
|
+
|
858
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parameters</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">greeting</span><span class="symbol">);</span>
|
859
|
+
|
860
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">greeting</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Return Unregistered"</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>
|
861
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
862
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-error">g_dbus_method_invocation_return_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
863
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR:CAPS">G_IO_ERROR</a></span><span class="symbol">,</span>
|
864
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR-FAILED-HANDLED:CAPS">G_IO_ERROR_FAILED_HANDLED</a></span><span class="symbol">,</span>
|
865
|
+
<span class="normal"> </span><span class="string">"As requested, here's a GError not registered (G_IO_ERROR_FAILED_HANDLED)"</span><span class="symbol">);</span>
|
866
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
867
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">greeting</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Return Registered"</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>
|
868
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
869
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-error">g_dbus_method_invocation_return_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
870
|
+
<span class="normal"> <a href="gio-GDBusError.html#G-DBUS-ERROR:CAPS">G_DBUS_ERROR</a></span><span class="symbol">,</span>
|
871
|
+
<span class="normal"> <a href="gio-GDBusError.html#G-DBUS-ERROR-MATCH-RULE-NOT-FOUND:CAPS">G_DBUS_ERROR_MATCH_RULE_NOT_FOUND</a></span><span class="symbol">,</span>
|
872
|
+
<span class="normal"> </span><span class="string">"As requested, here's a GError that is registered (G_DBUS_ERROR_MATCH_RULE_NOT_FOUND)"</span><span class="symbol">);</span>
|
873
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
874
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">greeting</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Return Raw"</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>
|
875
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
876
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-dbus-error">g_dbus_method_invocation_return_dbus_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
877
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.SomeErrorName"</span><span class="symbol">,</span>
|
878
|
+
<span class="normal"> </span><span class="string">"As requested, here's a raw D-Bus error"</span><span class="symbol">);</span>
|
879
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
880
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
881
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
882
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">response</span><span class="symbol">;</span>
|
883
|
+
<span class="normal"> response </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"You greeted me with '%s'. Thanks!"</span><span class="symbol">,</span><span class="normal"> greeting</span><span class="symbol">);</span>
|
884
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value">g_dbus_method_invocation_return_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
885
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(s)"</span><span class="symbol">,</span><span class="normal"> response</span><span class="symbol">));</span>
|
886
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">response</span><span class="symbol">);</span>
|
887
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
888
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
889
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"EmitSignal"</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>
|
890
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
891
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">local_error</span><span class="symbol">;</span>
|
892
|
+
<span class="normal"> </span><span class="usertype">gdouble</span><span class="normal"> speed_in_mph</span><span class="symbol">;</span>
|
893
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">speed_as_string</span><span class="symbol">;</span>
|
894
|
+
|
895
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parameters</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"(d)"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">speed_in_mph</span><span class="symbol">);</span>
|
896
|
+
<span class="normal"> speed_as_string </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"%g mph!"</span><span class="symbol">,</span><span class="normal"> speed_in_mph</span><span class="symbol">);</span>
|
897
|
+
|
898
|
+
<span class="normal"> local_error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
899
|
+
<span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-emit-signal">g_dbus_connection_emit_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
900
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
901
|
+
<span class="normal"> object_path</span><span class="symbol">,</span>
|
902
|
+
<span class="normal"> interface_name</span><span class="symbol">,</span>
|
903
|
+
<span class="normal"> </span><span class="string">"VelocityChanged"</span><span class="symbol">,</span>
|
904
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(ds)"</span><span class="symbol">,</span>
|
905
|
+
<span class="normal"> speed_in_mph</span><span class="symbol">,</span>
|
906
|
+
<span class="normal"> speed_as_string</span><span class="symbol">),</span>
|
907
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">local_error</span><span class="symbol">);</span>
|
908
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-no-error">g_assert_no_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">local_error</span><span class="symbol">);</span>
|
909
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">speed_as_string</span><span class="symbol">);</span>
|
910
|
+
|
911
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value">g_dbus_method_invocation_return_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
912
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
913
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"GimmeStdout"</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>
|
914
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
915
|
+
<span class="preproc">#ifdef</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#G-OS-UNIX:CAPS">G_OS_UNIX</a></span>
|
916
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-get-capabilities">g_dbus_connection_get_capabilities</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">&</span><span class="normal"> <a href="GDBusConnection.html#G-DBUS-CAPABILITY-FLAGS-UNIX-FD-PASSING:CAPS">G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING</a></span><span class="symbol">)</span>
|
917
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
918
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">reply</span><span class="symbol">;</span>
|
919
|
+
<span class="normal"> </span><span class="usertype">GUnixFDList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">fd_list</span><span class="symbol">;</span>
|
920
|
+
<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>
|
921
|
+
|
922
|
+
<span class="normal"> fd_list </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GUnixFDList.html#g-unix-fd-list-new">g_unix_fd_list_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
923
|
+
<span class="normal"> error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
924
|
+
<span class="normal"> </span><span class="function"><a href="GUnixFDList.html#g-unix-fd-list-append">g_unix_fd_list_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fd_list</span><span class="symbol">,</span><span class="normal"> STDOUT_FILENO</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
925
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-no-error">g_assert_no_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
926
|
+
|
927
|
+
<span class="normal"> reply </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusMessage.html#g-dbus-message-new-method-reply">g_dbus_message_new_method_reply</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-get-message">g_dbus_method_invocation_get_message</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">));</span>
|
928
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMessage.html#g-dbus-message-set-unix-fd-list">g_dbus_message_set_unix_fd_list</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reply</span><span class="symbol">,</span><span class="normal"> fd_list</span><span class="symbol">);</span>
|
929
|
+
|
930
|
+
<span class="normal"> error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
931
|
+
<span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-send-message">g_dbus_connection_send_message</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
932
|
+
<span class="normal"> reply</span><span class="symbol">,</span>
|
933
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-SEND-MESSAGE-FLAGS-NONE:CAPS">G_DBUS_SEND_MESSAGE_FLAGS_NONE</a></span><span class="symbol">,</span>
|
934
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* out_serial */</span>
|
935
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
936
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-no-error">g_assert_no_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
937
|
+
|
938
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">);</span>
|
939
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fd_list</span><span class="symbol">);</span>
|
940
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reply</span><span class="symbol">);</span>
|
941
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
942
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
943
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
944
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-dbus-error">g_dbus_method_invocation_return_dbus_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
945
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.Failed"</span><span class="symbol">,</span>
|
946
|
+
<span class="normal"> </span><span class="string">"Your message bus daemon does not support file descriptor passing (need D-Bus >= 1.3.0)"</span><span class="symbol">);</span>
|
947
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
948
948
|
<span class="preproc">#else</span>
|
949
|
-
|
950
|
-
|
951
|
-
|
949
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-dbus-error">g_dbus_method_invocation_return_dbus_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
950
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.NotOnUnix"</span><span class="symbol">,</span>
|
951
|
+
<span class="normal"> </span><span class="string">"Your OS does not support file descriptor passing"</span><span class="symbol">);</span>
|
952
952
|
<span class="preproc">#endif</span>
|
953
|
-
}
|
954
|
-
}
|
955
|
-
|
956
|
-
<span class="
|
957
|
-
|
958
|
-
<span class="
|
959
|
-
|
960
|
-
<span class="
|
961
|
-
handle_get_property (
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
{
|
969
|
-
|
970
|
-
|
971
|
-
ret =
|
972
|
-
|
973
|
-
{
|
974
|
-
ret =
|
975
|
-
}
|
976
|
-
|
977
|
-
{
|
978
|
-
|
979
|
-
_global_title =
|
980
|
-
ret =
|
981
|
-
}
|
982
|
-
|
983
|
-
{
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
sender)
|
990
|
-
}
|
991
|
-
|
992
|
-
{
|
993
|
-
ret =
|
994
|
-
}
|
995
|
-
|
996
|
-
{
|
997
|
-
ret =
|
998
|
-
}
|
999
|
-
|
1000
|
-
{
|
1001
|
-
ret =
|
1002
|
-
}
|
1003
|
-
|
1004
|
-
|
1005
|
-
}
|
1006
|
-
|
1007
|
-
<span class="
|
1008
|
-
handle_set_property (
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
{
|
1017
|
-
|
1018
|
-
{
|
1019
|
-
|
1020
|
-
{
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
_global_title =
|
1026
|
-
|
1027
|
-
local_error =
|
1028
|
-
builder =
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
object_path
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
interface_name
|
1040
|
-
builder
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
}
|
1045
|
-
}
|
1046
|
-
|
1047
|
-
{
|
1048
|
-
|
1049
|
-
}
|
1050
|
-
|
1051
|
-
{
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
sender)
|
1058
|
-
}
|
1059
|
-
|
1060
|
-
|
1061
|
-
}
|
1062
|
-
|
1063
|
-
|
1064
|
-
<span class="comment"
|
1065
|
-
<span class="
|
1066
|
-
{
|
1067
|
-
handle_method_call
|
1068
|
-
handle_get_property
|
1069
|
-
handle_set_property
|
1070
|
-
}
|
1071
|
-
|
1072
|
-
<span class="comment"
|
1073
|
-
|
1074
|
-
<span class="
|
1075
|
-
on_timeout_cb (
|
1076
|
-
{
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
swap_a_and_b =
|
1083
|
-
|
1084
|
-
error =
|
1085
|
-
builder =
|
1086
|
-
invalidated_builder =
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
builder
|
1103
|
-
invalidated_builder)
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
}
|
1110
|
-
|
1111
|
-
<span class="comment"
|
1112
|
-
|
1113
|
-
<span class="
|
1114
|
-
on_bus_acquired (
|
1115
|
-
|
1116
|
-
|
1117
|
-
{
|
1118
|
-
|
1119
|
-
|
1120
|
-
registration_id =
|
1121
|
-
|
1122
|
-
introspection_data
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
on_timeout_cb
|
1132
|
-
connection)
|
1133
|
-
}
|
1134
|
-
|
1135
|
-
<span class="
|
1136
|
-
on_name_acquired (
|
1137
|
-
|
1138
|
-
|
1139
|
-
{
|
1140
|
-
}
|
1141
|
-
|
1142
|
-
<span class="
|
1143
|
-
on_name_lost (
|
1144
|
-
|
1145
|
-
|
1146
|
-
{
|
1147
|
-
exit (
|
1148
|
-
}
|
953
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
954
|
+
<span class="cbracket">}</span>
|
955
|
+
|
956
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">_global_title </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
957
|
+
|
958
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> swap_a_and_b </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
959
|
+
|
960
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-GVariant.html#GVariant">GVariant</a> </span><span class="symbol">*</span>
|
961
|
+
<span class="function">handle_get_property</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>
|
962
|
+
<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</span><span class="symbol">,</span>
|
963
|
+
<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">object_path</span><span class="symbol">,</span>
|
964
|
+
<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">interface_name</span><span class="symbol">,</span>
|
965
|
+
<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">property_name</span><span class="symbol">,</span>
|
966
|
+
<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>
|
967
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
968
|
+
<span class="cbracket">{</span>
|
969
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
970
|
+
|
971
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
972
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"FluxCapicitorName"</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>
|
973
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
974
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"DeLorean"</span><span class="symbol">);</span>
|
975
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
976
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Title"</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>
|
977
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
978
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">_global_title </span><span class="symbol">==</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
979
|
+
<span class="normal"> _global_title </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Back To C!"</span><span class="symbol">);</span>
|
980
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">_global_title</span><span class="symbol">);</span>
|
981
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
982
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"ReadingAlwaysThrowsError"</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>
|
983
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
984
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-set-error">g_set_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">,</span>
|
985
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR:CAPS">G_IO_ERROR</a></span><span class="symbol">,</span>
|
986
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR-FAILED:CAPS">G_IO_ERROR_FAILED</a></span><span class="symbol">,</span>
|
987
|
+
<span class="normal"> </span><span class="string">"Hello %s. I thought I said reading this property "</span>
|
988
|
+
<span class="normal"> </span><span class="string">"always results in an error. kthxbye"</span><span class="symbol">,</span>
|
989
|
+
<span class="normal"> sender</span><span class="symbol">);</span>
|
990
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
991
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"WritingAlwaysThrowsError"</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>
|
992
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
993
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"There's no home like home"</span><span class="symbol">);</span>
|
994
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
995
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Foo"</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>
|
996
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
997
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">swap_a_and_b </span><span class="symbol">?</span><span class="normal"> </span><span class="string">"Tock"</span><span class="normal"> </span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Tick"</span><span class="symbol">);</span>
|
998
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
999
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Bar"</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>
|
1000
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1001
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">swap_a_and_b </span><span class="symbol">?</span><span class="normal"> </span><span class="string">"Tick"</span><span class="normal"> </span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Tock"</span><span class="symbol">);</span>
|
1002
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1003
|
+
|
1004
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
1005
|
+
<span class="cbracket">}</span>
|
1006
|
+
|
1007
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
1008
|
+
<span class="function">handle_set_property</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>
|
1009
|
+
<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</span><span class="symbol">,</span>
|
1010
|
+
<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">object_path</span><span class="symbol">,</span>
|
1011
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1012
|
+
<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">property_name</span><span class="symbol">,</span>
|
1013
|
+
<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>
|
1014
|
+
<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>
|
1015
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1016
|
+
<span class="cbracket">{</span>
|
1017
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Title"</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>
|
1018
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1019
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">_global_title</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/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="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></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>
|
1020
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1021
|
+
<span class="normal"> </span><span class="usertype">GVariantBuilder</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">builder</span><span class="symbol">;</span>
|
1022
|
+
<span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">local_error</span><span class="symbol">;</span>
|
1023
|
+
|
1024
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">_global_title</span><span class="symbol">);</span>
|
1025
|
+
<span class="normal"> _global_title </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-dup-string">g_variant_dup_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="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1026
|
+
|
1027
|
+
<span class="normal"> local_error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1028
|
+
<span class="normal"> builder </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-new">g_variant_builder_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-GVariantType.html#G-VARIANT-TYPE-ARRAY:CAPS">G_VARIANT_TYPE_ARRAY</a></span><span class="symbol">);</span>
|
1029
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-add">g_variant_builder_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">builder</span><span class="symbol">,</span>
|
1030
|
+
<span class="normal"> </span><span class="string">"{sv}"</span><span class="symbol">,</span>
|
1031
|
+
<span class="normal"> </span><span class="string">"Title"</span><span class="symbol">,</span>
|
1032
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">_global_title</span><span class="symbol">));</span>
|
1033
|
+
<span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-emit-signal">g_dbus_connection_emit_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
1034
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
1035
|
+
<span class="normal"> object_path</span><span class="symbol">,</span>
|
1036
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.DBus.Properties"</span><span class="symbol">,</span>
|
1037
|
+
<span class="normal"> </span><span class="string">"PropertiesChanged"</span><span class="symbol">,</span>
|
1038
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(sa{sv}as)"</span><span class="symbol">,</span>
|
1039
|
+
<span class="normal"> interface_name</span><span class="symbol">,</span>
|
1040
|
+
<span class="normal"> builder</span><span class="symbol">,</span>
|
1041
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">),</span>
|
1042
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">local_error</span><span class="symbol">);</span>
|
1043
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-no-error">g_assert_no_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">local_error</span><span class="symbol">);</span>
|
1044
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1045
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1046
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"ReadingAlwaysThrowsError"</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>
|
1047
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1048
|
+
<span class="normal"> </span><span class="comment">/* do nothing - they can't read it after all! */</span>
|
1049
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1050
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"WritingAlwaysThrowsError"</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>
|
1051
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1052
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-set-error">g_set_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">,</span>
|
1053
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR:CAPS">G_IO_ERROR</a></span><span class="symbol">,</span>
|
1054
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR-FAILED:CAPS">G_IO_ERROR_FAILED</a></span><span class="symbol">,</span>
|
1055
|
+
<span class="normal"> </span><span class="string">"Hello AGAIN %s. I thought I said writing this property "</span>
|
1056
|
+
<span class="normal"> </span><span class="string">"always results in an error. kthxbye"</span><span class="symbol">,</span>
|
1057
|
+
<span class="normal"> sender</span><span class="symbol">);</span>
|
1058
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1059
|
+
|
1060
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">==</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1061
|
+
<span class="cbracket">}</span>
|
1062
|
+
|
1063
|
+
|
1064
|
+
<span class="comment">/* for now */</span>
|
1065
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusInterfaceVTable</span><span class="normal"> interface_vtable </span><span class="symbol">=</span>
|
1066
|
+
<span class="cbracket">{</span>
|
1067
|
+
<span class="normal"> handle_method_call</span><span class="symbol">,</span>
|
1068
|
+
<span class="normal"> handle_get_property</span><span class="symbol">,</span>
|
1069
|
+
<span class="normal"> handle_set_property</span>
|
1070
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
1071
|
+
|
1072
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1073
|
+
|
1074
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
1075
|
+
<span class="function">on_timeout_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1076
|
+
<span class="cbracket">{</span>
|
1077
|
+
<span class="normal"> </span><span class="usertype">GDBusConnection</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">connection </span><span class="symbol">=</span><span class="normal"> </span><span class="function">G_DBUS_CONNECTION</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">user_data</span><span class="symbol">);</span>
|
1078
|
+
<span class="normal"> </span><span class="usertype">GVariantBuilder</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">builder</span><span class="symbol">;</span>
|
1079
|
+
<span class="normal"> </span><span class="usertype">GVariantBuilder</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invalidated_builder</span><span class="symbol">;</span>
|
1080
|
+
<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>
|
1081
|
+
|
1082
|
+
<span class="normal"> swap_a_and_b </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">!</span><span class="normal">swap_a_and_b</span><span class="symbol">;</span>
|
1083
|
+
|
1084
|
+
<span class="normal"> error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1085
|
+
<span class="normal"> builder </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-new">g_variant_builder_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-GVariantType.html#G-VARIANT-TYPE-ARRAY:CAPS">G_VARIANT_TYPE_ARRAY</a></span><span class="symbol">);</span>
|
1086
|
+
<span class="normal"> invalidated_builder </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-new">g_variant_builder_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-GVariantType.html#G-VARIANT-TYPE:CAPS">G_VARIANT_TYPE</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"as"</span><span class="symbol">));</span>
|
1087
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-add">g_variant_builder_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">builder</span><span class="symbol">,</span>
|
1088
|
+
<span class="normal"> </span><span class="string">"{sv}"</span><span class="symbol">,</span>
|
1089
|
+
<span class="normal"> </span><span class="string">"Foo"</span><span class="symbol">,</span>
|
1090
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">swap_a_and_b </span><span class="symbol">?</span><span class="normal"> </span><span class="string">"Tock"</span><span class="normal"> </span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Tick"</span><span class="symbol">));</span>
|
1091
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-add">g_variant_builder_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">builder</span><span class="symbol">,</span>
|
1092
|
+
<span class="normal"> </span><span class="string">"{sv}"</span><span class="symbol">,</span>
|
1093
|
+
<span class="normal"> </span><span class="string">"Bar"</span><span class="symbol">,</span>
|
1094
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">swap_a_and_b </span><span class="symbol">?</span><span class="normal"> </span><span class="string">"Tick"</span><span class="normal"> </span><span class="symbol">:</span><span class="normal"> </span><span class="string">"Tock"</span><span class="symbol">));</span>
|
1095
|
+
<span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-emit-signal">g_dbus_connection_emit_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
1096
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
1097
|
+
<span class="normal"> </span><span class="string">"/org/gtk/GDBus/TestObject"</span><span class="symbol">,</span>
|
1098
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.DBus.Properties"</span><span class="symbol">,</span>
|
1099
|
+
<span class="normal"> </span><span class="string">"PropertiesChanged"</span><span class="symbol">,</span>
|
1100
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(sa{sv}as)"</span><span class="symbol">,</span>
|
1101
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.TestInterface"</span><span class="symbol">,</span>
|
1102
|
+
<span class="normal"> builder</span><span class="symbol">,</span>
|
1103
|
+
<span class="normal"> invalidated_builder</span><span class="symbol">),</span>
|
1104
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
1105
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-no-error">g_assert_no_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
1106
|
+
|
1107
|
+
|
1108
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
1109
|
+
<span class="cbracket">}</span>
|
1110
|
+
|
1111
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1112
|
+
|
1113
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1114
|
+
<span class="function">on_bus_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>
|
1115
|
+
<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>
|
1116
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1117
|
+
<span class="cbracket">{</span>
|
1118
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> registration_id</span><span class="symbol">;</span>
|
1119
|
+
|
1120
|
+
<span class="normal"> registration_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-register-object">g_dbus_connection_register_object</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
1121
|
+
<span class="normal"> </span><span class="string">"/org/gtk/GDBus/TestObject"</span><span class="symbol">,</span>
|
1122
|
+
<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>
|
1123
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">interface_vtable</span><span class="symbol">,</span>
|
1124
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* user_data */</span>
|
1125
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* user_data_free_func */</span>
|
1126
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span><span class="normal"> </span><span class="comment">/* GError** */</span>
|
1127
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">registration_id </span><span class="symbol">></span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
1128
|
+
|
1129
|
+
<span class="normal"> </span><span class="comment">/* swap value of properties Foo and Bar every two seconds */</span>
|
1130
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-The-Main-Event-Loop.html#g-timeout-add-seconds">g_timeout_add_seconds</a></span><span class="normal"> </span><span class="symbol">(</span><span class="number">2</span><span class="symbol">,</span>
|
1131
|
+
<span class="normal"> on_timeout_cb</span><span class="symbol">,</span>
|
1132
|
+
<span class="normal"> connection</span><span class="symbol">);</span>
|
1133
|
+
<span class="cbracket">}</span>
|
1134
|
+
|
1135
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1136
|
+
<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>
|
1137
|
+
<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>
|
1138
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1139
|
+
<span class="cbracket">{</span>
|
1140
|
+
<span class="cbracket">}</span>
|
1141
|
+
|
1142
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1143
|
+
<span class="function">on_name_lost</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>
|
1144
|
+
<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>
|
1145
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1146
|
+
<span class="cbracket">{</span>
|
1147
|
+
<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>
|
1148
|
+
<span class="cbracket">}</span>
|
1149
1149
|
|
1150
1150
|
<span class="type">int</span>
|
1151
|
-
main (
|
1152
|
-
{
|
1153
|
-
|
1154
|
-
|
1151
|
+
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
1152
|
+
<span class="cbracket">{</span>
|
1153
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> owner_id</span><span class="symbol">;</span>
|
1154
|
+
<span class="normal"> </span><span class="usertype">GMainLoop</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">loop</span><span class="symbol">;</span>
|
1155
1155
|
|
1156
|
-
|
1156
|
+
<span class="normal"> </span><span class="comment">/* We are lazy here - we don't want to manually provide</span>
|
1157
1157
|
<span class="comment"> * the introspection data structures - so we just build</span>
|
1158
1158
|
<span class="comment"> * them from XML.</span>
|
1159
|
-
<span class="comment">
|
1160
|
-
introspection_data =
|
1161
|
-
|
1159
|
+
<span class="comment"> */</span>
|
1160
|
+
<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="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1161
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1162
1162
|
|
1163
|
-
owner_id =
|
1164
|
-
|
1165
|
-
|
1166
|
-
on_bus_acquired
|
1167
|
-
on_name_acquired
|
1168
|
-
on_name_lost
|
1169
|
-
|
1170
|
-
|
1163
|
+
<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-SESSION:CAPS">G_BUS_TYPE_SESSION</a></span><span class="symbol">,</span>
|
1164
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.TestServer"</span><span class="symbol">,</span>
|
1165
|
+
<span class="normal"> <a href="gio-Owning-Bus-Names.html#G-BUS-NAME-OWNER-FLAGS-NONE:CAPS">G_BUS_NAME_OWNER_FLAGS_NONE</a></span><span class="symbol">,</span>
|
1166
|
+
<span class="normal"> on_bus_acquired</span><span class="symbol">,</span>
|
1167
|
+
<span class="normal"> on_name_acquired</span><span class="symbol">,</span>
|
1168
|
+
<span class="normal"> on_name_lost</span><span class="symbol">,</span>
|
1169
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
1170
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1171
1171
|
|
1172
|
-
loop =
|
1173
|
-
|
1172
|
+
<span class="normal"> loop </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-The-Main-Event-Loop.html#g-main-loop-new">g_main_loop_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
1173
|
+
<span class="normal"> </span><span class="function"><a href="../glib/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>
|
1174
1174
|
|
1175
|
-
|
1175
|
+
<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>
|
1176
1176
|
|
1177
|
-
|
1177
|
+
<span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-unref">g_dbus_node_info_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data</span><span class="symbol">);</span>
|
1178
1178
|
|
1179
|
-
|
1180
|
-
}</pre></td>
|
1179
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
1180
|
+
<span class="cbracket">}</span></pre></td>
|
1181
1181
|
</tr>
|
1182
1182
|
</tbody>
|
1183
1183
|
</table>
|
@@ -1592,404 +1592,404 @@ main (<span class="type">int</span> argc, <span class="type">char</span> *argv[]
|
|
1592
1592
|
396
|
1593
1593
|
397
|
1594
1594
|
398</pre></td>
|
1595
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include </span><span class="
|
1596
|
-
<span class="preproc">#include </span><span class="
|
1597
|
-
<span class="preproc">#include </span><span class="
|
1598
|
-
|
1599
|
-
<span class="comment"
|
1600
|
-
|
1601
|
-
<span class="
|
1602
|
-
<span class="
|
1603
|
-
<span class="
|
1604
|
-
<span class="
|
1605
|
-
|
1606
|
-
<span class="comment"
|
1607
|
-
<span class="
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
<span class="comment"
|
1635
|
-
|
1636
|
-
<span class="
|
1637
|
-
manager_method_call (
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
{
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
response =
|
1655
|
-
interface_name
|
1656
|
-
method_name
|
1657
|
-
(
|
1658
|
-
object_path
|
1659
|
-
greeting)
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
}
|
1664
|
-
|
1665
|
-
<span class="
|
1666
|
-
{
|
1667
|
-
manager_method_call
|
1668
|
-
|
1669
|
-
|
1670
|
-
}
|
1671
|
-
|
1672
|
-
<span class="comment"
|
1673
|
-
|
1674
|
-
<span class="
|
1675
|
-
block_method_call (
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
{
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
{
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
response =
|
1694
|
-
interface_name
|
1695
|
-
method_name
|
1696
|
-
(
|
1697
|
-
object_path
|
1698
|
-
greeting)
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
}
|
1703
|
-
|
1704
|
-
{
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
}
|
1709
|
-
|
1710
|
-
{
|
1711
|
-
|
1712
|
-
}
|
1713
|
-
}
|
1714
|
-
|
1715
|
-
<span class="
|
1716
|
-
block_get_property (
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
{
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
node = strrchr (object_path
|
1730
|
-
|
1731
|
-
major =
|
1732
|
-
|
1733
|
-
major =
|
1734
|
-
|
1735
|
-
minor = node[
|
1736
|
-
|
1737
|
-
minor =
|
1738
|
-
|
1739
|
-
ret =
|
1740
|
-
|
1741
|
-
{
|
1742
|
-
ret =
|
1743
|
-
}
|
1744
|
-
|
1745
|
-
{
|
1746
|
-
ret =
|
1747
|
-
}
|
1748
|
-
|
1749
|
-
{
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
sender)
|
1756
|
-
}
|
1757
|
-
|
1758
|
-
{
|
1759
|
-
|
1760
|
-
}
|
1761
|
-
|
1762
|
-
|
1763
|
-
}
|
1764
|
-
|
1765
|
-
<span class="
|
1766
|
-
block_set_property (
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
{
|
1775
|
-
|
1776
|
-
|
1777
|
-
}
|
1778
|
-
|
1779
|
-
<span class="
|
1780
|
-
{
|
1781
|
-
block_method_call
|
1782
|
-
block_get_property
|
1783
|
-
block_set_property
|
1784
|
-
}
|
1785
|
-
|
1786
|
-
<span class="comment"
|
1787
|
-
|
1788
|
-
<span class="
|
1789
|
-
partition_method_call (
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
{
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
response =
|
1807
|
-
interface_name
|
1808
|
-
method_name
|
1809
|
-
(
|
1810
|
-
object_path
|
1811
|
-
greeting)
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
}
|
1816
|
-
|
1817
|
-
<span class="
|
1818
|
-
{
|
1819
|
-
partition_method_call
|
1820
|
-
|
1821
|
-
|
1822
|
-
}
|
1823
|
-
|
1824
|
-
<span class="comment"
|
1825
|
-
|
1826
|
-
<span class="
|
1827
|
-
subtree_enumerate (
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
{
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
p =
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
nodes = (
|
1846
|
-
|
1847
|
-
|
1848
|
-
}
|
1849
|
-
|
1850
|
-
<span class="
|
1851
|
-
subtree_introspect (
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
{
|
1857
|
-
|
1858
|
-
|
1859
|
-
p =
|
1860
|
-
|
1861
|
-
{
|
1862
|
-
|
1863
|
-
}
|
1864
|
-
|
1865
|
-
{
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
}
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
}
|
1876
|
-
|
1877
|
-
<span class="
|
1878
|
-
subtree_dispatch (
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
{
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
{
|
1891
|
-
user_data_to_return =
|
1892
|
-
vtable_to_return =
|
1893
|
-
}
|
1894
|
-
|
1895
|
-
{
|
1896
|
-
|
1897
|
-
user_data_to_return =
|
1898
|
-
|
1899
|
-
user_data_to_return =
|
1900
|
-
|
1901
|
-
|
1902
|
-
vtable_to_return =
|
1903
|
-
|
1904
|
-
vtable_to_return =
|
1905
|
-
|
1906
|
-
|
1907
|
-
}
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
}
|
1913
|
-
|
1914
|
-
<span class="
|
1915
|
-
{
|
1916
|
-
subtree_enumerate
|
1917
|
-
subtree_introspect
|
1918
|
-
subtree_dispatch
|
1919
|
-
}
|
1920
|
-
|
1921
|
-
<span class="comment"
|
1922
|
-
|
1923
|
-
<span class="
|
1924
|
-
on_bus_acquired (
|
1925
|
-
|
1926
|
-
|
1927
|
-
{
|
1928
|
-
|
1929
|
-
|
1930
|
-
registration_id =
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
}
|
1939
|
-
|
1940
|
-
<span class="
|
1941
|
-
on_name_acquired (
|
1942
|
-
|
1943
|
-
|
1944
|
-
{
|
1945
|
-
}
|
1946
|
-
|
1947
|
-
<span class="
|
1948
|
-
on_name_lost (
|
1949
|
-
|
1950
|
-
|
1951
|
-
{
|
1952
|
-
exit (
|
1953
|
-
}
|
1595
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gio.h></span>
|
1596
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><stdlib.h></span>
|
1597
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><string.h></span>
|
1598
|
+
|
1599
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1600
|
+
|
1601
|
+
<span class="keyword">static</span><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><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1602
|
+
<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">manager_interface_info </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1603
|
+
<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">block_interface_info </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1604
|
+
<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">partition_interface_info </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1605
|
+
|
1606
|
+
<span class="comment">/* Introspection data for the service we are exporting */</span>
|
1607
|
+
<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>
|
1608
|
+
<span class="normal"> </span><span class="string">"<node>"</span>
|
1609
|
+
<span class="normal"> </span><span class="string">" <interface name='org.gtk.GDBus.Example.Manager'>"</span>
|
1610
|
+
<span class="normal"> </span><span class="string">" <method name='Hello'>"</span>
|
1611
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='greeting' direction='in'/>"</span>
|
1612
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='response' direction='out'/>"</span>
|
1613
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
1614
|
+
<span class="normal"> </span><span class="string">" </interface>"</span>
|
1615
|
+
<span class="normal"> </span><span class="string">" <interface name='org.gtk.GDBus.Example.Block'>"</span>
|
1616
|
+
<span class="normal"> </span><span class="string">" <method name='Hello'>"</span>
|
1617
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='greeting' direction='in'/>"</span>
|
1618
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='response' direction='out'/>"</span>
|
1619
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
1620
|
+
<span class="normal"> </span><span class="string">" <property type='i' name='Major' access='read'/>"</span>
|
1621
|
+
<span class="normal"> </span><span class="string">" <property type='i' name='Minor' access='read'/>"</span>
|
1622
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='Notes' access='readwrite'/>"</span>
|
1623
|
+
<span class="normal"> </span><span class="string">" </interface>"</span>
|
1624
|
+
<span class="normal"> </span><span class="string">" <interface name='org.gtk.GDBus.Example.Partition'>"</span>
|
1625
|
+
<span class="normal"> </span><span class="string">" <method name='Hello'>"</span>
|
1626
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='greeting' direction='in'/>"</span>
|
1627
|
+
<span class="normal"> </span><span class="string">" <arg type='s' name='response' direction='out'/>"</span>
|
1628
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
1629
|
+
<span class="normal"> </span><span class="string">" <property type='i' name='PartitionNumber' access='read'/>"</span>
|
1630
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='Notes' access='readwrite'/>"</span>
|
1631
|
+
<span class="normal"> </span><span class="string">" </interface>"</span>
|
1632
|
+
<span class="normal"> </span><span class="string">"</node>"</span><span class="symbol">;</span>
|
1633
|
+
|
1634
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1635
|
+
|
1636
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1637
|
+
<span class="function">manager_method_call</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>
|
1638
|
+
<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</span><span class="symbol">,</span>
|
1639
|
+
<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">object_path</span><span class="symbol">,</span>
|
1640
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1641
|
+
<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">method_name</span><span class="symbol">,</span>
|
1642
|
+
<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>
|
1643
|
+
<span class="normal"> </span><span class="usertype">GDBusMethodInvocation</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1644
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1645
|
+
<span class="cbracket">{</span>
|
1646
|
+
<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">greeting</span><span class="symbol">;</span>
|
1647
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">response</span><span class="symbol">;</span>
|
1648
|
+
|
1649
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-cmpstr">g_assert_cmpstr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">interface_name</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">==,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Manager"</span><span class="symbol">);</span>
|
1650
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-cmpstr">g_assert_cmpstr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">==,</span><span class="normal"> </span><span class="string">"Hello"</span><span class="symbol">);</span>
|
1651
|
+
|
1652
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parameters</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">greeting</span><span class="symbol">);</span>
|
1653
|
+
|
1654
|
+
<span class="normal"> response </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Method %s.%s with user_data `%s' on object path %s called with arg '%s'"</span><span class="symbol">,</span>
|
1655
|
+
<span class="normal"> interface_name</span><span class="symbol">,</span>
|
1656
|
+
<span class="normal"> method_name</span><span class="symbol">,</span>
|
1657
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="keyword">const</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*)</span><span class="normal"> user_data</span><span class="symbol">,</span>
|
1658
|
+
<span class="normal"> object_path</span><span class="symbol">,</span>
|
1659
|
+
<span class="normal"> greeting</span><span class="symbol">);</span>
|
1660
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value">g_dbus_method_invocation_return_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1661
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(s)"</span><span class="symbol">,</span><span class="normal"> response</span><span class="symbol">));</span>
|
1662
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">response</span><span class="symbol">);</span>
|
1663
|
+
<span class="cbracket">}</span>
|
1664
|
+
|
1665
|
+
<span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusInterfaceVTable</span><span class="normal"> manager_vtable </span><span class="symbol">=</span>
|
1666
|
+
<span class="cbracket">{</span>
|
1667
|
+
<span class="normal"> manager_method_call</span><span class="symbol">,</span>
|
1668
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* get_property */</span>
|
1669
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a> </span><span class="comment">/* set_property */</span>
|
1670
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
1671
|
+
|
1672
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1673
|
+
|
1674
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1675
|
+
<span class="function">block_method_call</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>
|
1676
|
+
<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</span><span class="symbol">,</span>
|
1677
|
+
<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">object_path</span><span class="symbol">,</span>
|
1678
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1679
|
+
<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">method_name</span><span class="symbol">,</span>
|
1680
|
+
<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>
|
1681
|
+
<span class="normal"> </span><span class="usertype">GDBusMethodInvocation</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1682
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1683
|
+
<span class="cbracket">{</span>
|
1684
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-cmpstr">g_assert_cmpstr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">interface_name</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">==,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Block"</span><span class="symbol">);</span>
|
1685
|
+
|
1686
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Hello"</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>
|
1687
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1688
|
+
<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">greeting</span><span class="symbol">;</span>
|
1689
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">response</span><span class="symbol">;</span>
|
1690
|
+
|
1691
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parameters</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">greeting</span><span class="symbol">);</span>
|
1692
|
+
|
1693
|
+
<span class="normal"> response </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Method %s.%s with user_data `%s' on object path %s called with arg '%s'"</span><span class="symbol">,</span>
|
1694
|
+
<span class="normal"> interface_name</span><span class="symbol">,</span>
|
1695
|
+
<span class="normal"> method_name</span><span class="symbol">,</span>
|
1696
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="keyword">const</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*)</span><span class="normal"> user_data</span><span class="symbol">,</span>
|
1697
|
+
<span class="normal"> object_path</span><span class="symbol">,</span>
|
1698
|
+
<span class="normal"> greeting</span><span class="symbol">);</span>
|
1699
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value">g_dbus_method_invocation_return_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1700
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(s)"</span><span class="symbol">,</span><span class="normal"> response</span><span class="symbol">));</span>
|
1701
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">response</span><span class="symbol">);</span>
|
1702
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1703
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"DoStuff"</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>
|
1704
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1705
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-dbus-error">g_dbus_method_invocation_return_dbus_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1706
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.TestSubtree.Error.Failed"</span><span class="symbol">,</span>
|
1707
|
+
<span class="normal"> </span><span class="string">"This method intentionally always fails"</span><span class="symbol">);</span>
|
1708
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1709
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1710
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1711
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-not-reached">g_assert_not_reached</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1712
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1713
|
+
<span class="cbracket">}</span>
|
1714
|
+
|
1715
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-GVariant.html#GVariant">GVariant</a> </span><span class="symbol">*</span>
|
1716
|
+
<span class="function">block_get_property</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>
|
1717
|
+
<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</span><span class="symbol">,</span>
|
1718
|
+
<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">object_path</span><span class="symbol">,</span>
|
1719
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1720
|
+
<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">property_name</span><span class="symbol">,</span>
|
1721
|
+
<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>
|
1722
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1723
|
+
<span class="cbracket">{</span>
|
1724
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
1725
|
+
<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">node</span><span class="symbol">;</span>
|
1726
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> major</span><span class="symbol">;</span>
|
1727
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> minor</span><span class="symbol">;</span>
|
1728
|
+
|
1729
|
+
<span class="normal"> node </span><span class="symbol">=</span><span class="normal"> </span><span class="function">strrchr</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object_path</span><span class="symbol">,</span><span class="normal"> </span><span class="string">'/'</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
|
1730
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-str-has-prefix">g_str_has_prefix</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">node</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"sda"</span><span class="symbol">))</span>
|
1731
|
+
<span class="normal"> major </span><span class="symbol">=</span><span class="normal"> </span><span class="number">8</span><span class="symbol">;</span>
|
1732
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1733
|
+
<span class="normal"> major </span><span class="symbol">=</span><span class="normal"> </span><span class="number">9</span><span class="symbol">;</span>
|
1734
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function">strlen</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">node</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">4</span><span class="symbol">)</span>
|
1735
|
+
<span class="normal"> minor </span><span class="symbol">=</span><span class="normal"> node</span><span class="symbol">[</span><span class="number">3</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">-</span><span class="normal"> </span><span class="string">'0'</span><span class="symbol">;</span>
|
1736
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1737
|
+
<span class="normal"> minor </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
1738
|
+
|
1739
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1740
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Major"</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>
|
1741
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1742
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-int32">g_variant_new_int32</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">major</span><span class="symbol">);</span>
|
1743
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1744
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Minor"</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>
|
1745
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1746
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-int32">g_variant_new_int32</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">minor</span><span class="symbol">);</span>
|
1747
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1748
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Notes"</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>
|
1749
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1750
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Error-Reporting.html#g-set-error">g_set_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">,</span>
|
1751
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR:CAPS">G_IO_ERROR</a></span><span class="symbol">,</span>
|
1752
|
+
<span class="normal"> <a href="gio-GIOError.html#G-IO-ERROR-FAILED:CAPS">G_IO_ERROR_FAILED</a></span><span class="symbol">,</span>
|
1753
|
+
<span class="normal"> </span><span class="string">"Hello %s. I thought I said reading this property "</span>
|
1754
|
+
<span class="normal"> </span><span class="string">"always results in an error. kthxbye"</span><span class="symbol">,</span>
|
1755
|
+
<span class="normal"> sender</span><span class="symbol">);</span>
|
1756
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1757
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1758
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1759
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-not-reached">g_assert_not_reached</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1760
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1761
|
+
|
1762
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
1763
|
+
<span class="cbracket">}</span>
|
1764
|
+
|
1765
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
1766
|
+
<span class="function">block_set_property</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>
|
1767
|
+
<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</span><span class="symbol">,</span>
|
1768
|
+
<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">object_path</span><span class="symbol">,</span>
|
1769
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1770
|
+
<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">property_name</span><span class="symbol">,</span>
|
1771
|
+
<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>
|
1772
|
+
<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>
|
1773
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1774
|
+
<span class="cbracket">{</span>
|
1775
|
+
<span class="normal"> </span><span class="comment">/* </span><span class="todo">TODO</span><span class="comment"> */</span>
|
1776
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-not-reached">g_assert_not_reached</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1777
|
+
<span class="cbracket">}</span>
|
1778
|
+
|
1779
|
+
<span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusInterfaceVTable</span><span class="normal"> block_vtable </span><span class="symbol">=</span>
|
1780
|
+
<span class="cbracket">{</span>
|
1781
|
+
<span class="normal"> block_method_call</span><span class="symbol">,</span>
|
1782
|
+
<span class="normal"> block_get_property</span><span class="symbol">,</span>
|
1783
|
+
<span class="normal"> block_set_property</span><span class="symbol">,</span>
|
1784
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
1785
|
+
|
1786
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1787
|
+
|
1788
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1789
|
+
<span class="function">partition_method_call</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>
|
1790
|
+
<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</span><span class="symbol">,</span>
|
1791
|
+
<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">object_path</span><span class="symbol">,</span>
|
1792
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1793
|
+
<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">method_name</span><span class="symbol">,</span>
|
1794
|
+
<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>
|
1795
|
+
<span class="normal"> </span><span class="usertype">GDBusMethodInvocation</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1796
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1797
|
+
<span class="cbracket">{</span>
|
1798
|
+
<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">greeting</span><span class="symbol">;</span>
|
1799
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">response</span><span class="symbol">;</span>
|
1800
|
+
|
1801
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-cmpstr">g_assert_cmpstr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">interface_name</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">==,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Partition"</span><span class="symbol">);</span>
|
1802
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-cmpstr">g_assert_cmpstr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">==,</span><span class="normal"> </span><span class="string">"Hello"</span><span class="symbol">);</span>
|
1803
|
+
|
1804
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parameters</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">greeting</span><span class="symbol">);</span>
|
1805
|
+
|
1806
|
+
<span class="normal"> response </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Method %s.%s with user_data `%s' on object path %s called with arg '%s'"</span><span class="symbol">,</span>
|
1807
|
+
<span class="normal"> interface_name</span><span class="symbol">,</span>
|
1808
|
+
<span class="normal"> method_name</span><span class="symbol">,</span>
|
1809
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="keyword">const</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">*)</span><span class="normal"> user_data</span><span class="symbol">,</span>
|
1810
|
+
<span class="normal"> object_path</span><span class="symbol">,</span>
|
1811
|
+
<span class="normal"> greeting</span><span class="symbol">);</span>
|
1812
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value">g_dbus_method_invocation_return_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span>
|
1813
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(s)"</span><span class="symbol">,</span><span class="normal"> response</span><span class="symbol">));</span>
|
1814
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">response</span><span class="symbol">);</span>
|
1815
|
+
<span class="cbracket">}</span>
|
1816
|
+
|
1817
|
+
<span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusInterfaceVTable</span><span class="normal"> partition_vtable </span><span class="symbol">=</span>
|
1818
|
+
<span class="cbracket">{</span>
|
1819
|
+
<span class="normal"> partition_method_call</span><span class="symbol">,</span>
|
1820
|
+
<span class="normal"> </span><span class="comment">//partition_get_property,</span>
|
1821
|
+
<span class="normal"> </span><span class="comment">//partition_set_property</span>
|
1822
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
1823
|
+
|
1824
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1825
|
+
|
1826
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">**</span>
|
1827
|
+
<span class="function">subtree_enumerate</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>
|
1828
|
+
<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</span><span class="symbol">,</span>
|
1829
|
+
<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">object_path</span><span class="symbol">,</span>
|
1830
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1831
|
+
<span class="cbracket">{</span>
|
1832
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">nodes</span><span class="symbol">;</span>
|
1833
|
+
<span class="normal"> </span><span class="usertype">GPtrArray</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">p</span><span class="symbol">;</span>
|
1834
|
+
|
1835
|
+
<span class="normal"> p </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-new">g_ptr_array_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1836
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sda"</span><span class="symbol">));</span>
|
1837
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sda1"</span><span class="symbol">));</span>
|
1838
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sda2"</span><span class="symbol">));</span>
|
1839
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sda3"</span><span class="symbol">));</span>
|
1840
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sdb"</span><span class="symbol">));</span>
|
1841
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sdb1"</span><span class="symbol">));</span>
|
1842
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sdc"</span><span class="symbol">));</span>
|
1843
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"sdc1"</span><span class="symbol">));</span>
|
1844
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1845
|
+
<span class="normal"> nodes </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Basic-Types.html#gchar">gchar</a> </span><span class="symbol">**)</span><span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-free">g_ptr_array_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
1846
|
+
|
1847
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> nodes</span><span class="symbol">;</span>
|
1848
|
+
<span class="cbracket">}</span>
|
1849
|
+
|
1850
|
+
<span class="keyword">static</span><span class="normal"> <a href="gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo">GDBusInterfaceInfo</a> </span><span class="symbol">**</span>
|
1851
|
+
<span class="function">subtree_introspect</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>
|
1852
|
+
<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</span><span class="symbol">,</span>
|
1853
|
+
<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">object_path</span><span class="symbol">,</span>
|
1854
|
+
<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">node</span><span class="symbol">,</span>
|
1855
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1856
|
+
<span class="cbracket">{</span>
|
1857
|
+
<span class="normal"> </span><span class="usertype">GPtrArray</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">p</span><span class="symbol">;</span>
|
1858
|
+
|
1859
|
+
<span class="normal"> p </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-new">g_ptr_array_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1860
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">node </span><span class="symbol">==</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
1861
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1862
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-interface-info-ref">g_dbus_interface_info_ref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">manager_interface_info</span><span class="symbol">));</span>
|
1863
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1864
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1865
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1866
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-interface-info-ref">g_dbus_interface_info_ref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">block_interface_info</span><span class="symbol">));</span>
|
1867
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function">strlen</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">node</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">4</span><span class="symbol">)</span>
|
1868
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span>
|
1869
|
+
<span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-interface-info-ref">g_dbus_interface_info_ref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">partition_interface_info</span><span class="symbol">));</span>
|
1870
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1871
|
+
|
1872
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-add">g_ptr_array_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1873
|
+
|
1874
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo">GDBusInterfaceInfo</a> </span><span class="symbol">**)</span><span class="normal"> </span><span class="function"><a href="../glib/glib-Pointer-Arrays.html#g-ptr-array-free">g_ptr_array_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">p</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
1875
|
+
<span class="cbracket">}</span>
|
1876
|
+
|
1877
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> <a href="GDBusConnection.html#GDBusInterfaceVTable">GDBusInterfaceVTable</a> </span><span class="symbol">*</span>
|
1878
|
+
<span class="function">subtree_dispatch</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>
|
1879
|
+
<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</span><span class="symbol">,</span>
|
1880
|
+
<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">object_path</span><span class="symbol">,</span>
|
1881
|
+
<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">interface_name</span><span class="symbol">,</span>
|
1882
|
+
<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">node</span><span class="symbol">,</span>
|
1883
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">out_user_data</span><span class="symbol">,</span>
|
1884
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1885
|
+
<span class="cbracket">{</span>
|
1886
|
+
<span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusInterfaceVTable</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">vtable_to_return</span><span class="symbol">;</span>
|
1887
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data_to_return</span><span class="symbol">;</span>
|
1888
|
+
|
1889
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">interface_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Manager"</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>
|
1890
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1891
|
+
<span class="normal"> user_data_to_return </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"The Root"</span><span class="symbol">;</span>
|
1892
|
+
<span class="normal"> vtable_to_return </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">manager_vtable</span><span class="symbol">;</span>
|
1893
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1894
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1895
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
1896
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function">strlen</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">node</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">4</span><span class="symbol">)</span>
|
1897
|
+
<span class="normal"> user_data_to_return </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"A partition"</span><span class="symbol">;</span>
|
1898
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1899
|
+
<span class="normal"> user_data_to_return </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"A block device"</span><span class="symbol">;</span>
|
1900
|
+
|
1901
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">interface_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Block"</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>
|
1902
|
+
<span class="normal"> vtable_to_return </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">block_vtable</span><span class="symbol">;</span>
|
1903
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">interface_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Partition"</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>
|
1904
|
+
<span class="normal"> vtable_to_return </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">partition_vtable</span><span class="symbol">;</span>
|
1905
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
1906
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert-not-reached">g_assert_not_reached</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1907
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
1908
|
+
|
1909
|
+
<span class="normal"> </span><span class="symbol">*</span><span class="normal">out_user_data </span><span class="symbol">=</span><span class="normal"> user_data_to_return</span><span class="symbol">;</span>
|
1910
|
+
|
1911
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> vtable_to_return</span><span class="symbol">;</span>
|
1912
|
+
<span class="cbracket">}</span>
|
1913
|
+
|
1914
|
+
<span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusSubtreeVTable</span><span class="normal"> subtree_vtable </span><span class="symbol">=</span>
|
1915
|
+
<span class="cbracket">{</span>
|
1916
|
+
<span class="normal"> subtree_enumerate</span><span class="symbol">,</span>
|
1917
|
+
<span class="normal"> subtree_introspect</span><span class="symbol">,</span>
|
1918
|
+
<span class="normal"> subtree_dispatch</span>
|
1919
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
1920
|
+
|
1921
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
1922
|
+
|
1923
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1924
|
+
<span class="function">on_bus_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>
|
1925
|
+
<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>
|
1926
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1927
|
+
<span class="cbracket">{</span>
|
1928
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> registration_id</span><span class="symbol">;</span>
|
1929
|
+
|
1930
|
+
<span class="normal"> registration_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-register-subtree">g_dbus_connection_register_subtree</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
1931
|
+
<span class="normal"> </span><span class="string">"/org/gtk/GDBus/TestSubtree/Devices"</span><span class="symbol">,</span>
|
1932
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">subtree_vtable</span><span class="symbol">,</span>
|
1933
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-SUBTREE-FLAGS-NONE:CAPS">G_DBUS_SUBTREE_FLAGS_NONE</a></span><span class="symbol">,</span>
|
1934
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* user_data */</span>
|
1935
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* user_data_free_func */</span>
|
1936
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span><span class="normal"> </span><span class="comment">/* GError** */</span>
|
1937
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">registration_id </span><span class="symbol">></span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
1938
|
+
<span class="cbracket">}</span>
|
1939
|
+
|
1940
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1941
|
+
<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>
|
1942
|
+
<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>
|
1943
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1944
|
+
<span class="cbracket">{</span>
|
1945
|
+
<span class="cbracket">}</span>
|
1946
|
+
|
1947
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
1948
|
+
<span class="function">on_name_lost</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>
|
1949
|
+
<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>
|
1950
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
1951
|
+
<span class="cbracket">{</span>
|
1952
|
+
<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>
|
1953
|
+
<span class="cbracket">}</span>
|
1954
1954
|
|
1955
1955
|
<span class="type">int</span>
|
1956
|
-
main (
|
1957
|
-
{
|
1958
|
-
|
1959
|
-
|
1956
|
+
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
1957
|
+
<span class="cbracket">{</span>
|
1958
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> owner_id</span><span class="symbol">;</span>
|
1959
|
+
<span class="normal"> </span><span class="usertype">GMainLoop</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">loop</span><span class="symbol">;</span>
|
1960
1960
|
|
1961
|
-
|
1961
|
+
<span class="normal"> </span><span class="comment">/* We are lazy here - we don't want to manually provide</span>
|
1962
1962
|
<span class="comment"> * the introspection data structures - so we just build</span>
|
1963
1963
|
<span class="comment"> * them from XML.</span>
|
1964
|
-
<span class="comment">
|
1965
|
-
introspection_data =
|
1966
|
-
|
1967
|
-
|
1968
|
-
manager_interface_info =
|
1969
|
-
block_interface_info =
|
1970
|
-
partition_interface_info =
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
owner_id =
|
1976
|
-
|
1977
|
-
|
1978
|
-
on_bus_acquired
|
1979
|
-
on_name_acquired
|
1980
|
-
on_name_lost
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
loop =
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
}</pre></td>
|
1964
|
+
<span class="comment"> */</span>
|
1965
|
+
<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="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1966
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1967
|
+
|
1968
|
+
<span class="normal"> manager_interface_info </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-lookup-interface">g_dbus_node_info_lookup_interface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Manager"</span><span class="symbol">);</span>
|
1969
|
+
<span class="normal"> block_interface_info </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-lookup-interface">g_dbus_node_info_lookup_interface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Block"</span><span class="symbol">);</span>
|
1970
|
+
<span class="normal"> partition_interface_info </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-lookup-interface">g_dbus_node_info_lookup_interface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"org.gtk.GDBus.Example.Partition"</span><span class="symbol">);</span>
|
1971
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">manager_interface_info </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1972
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">block_interface_info </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1973
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">partition_interface_info </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1974
|
+
|
1975
|
+
<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-SESSION:CAPS">G_BUS_TYPE_SESSION</a></span><span class="symbol">,</span>
|
1976
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.TestSubtree"</span><span class="symbol">,</span>
|
1977
|
+
<span class="normal"> <a href="gio-Owning-Bus-Names.html#G-BUS-NAME-OWNER-FLAGS-NONE:CAPS">G_BUS_NAME_OWNER_FLAGS_NONE</a></span><span class="symbol">,</span>
|
1978
|
+
<span class="normal"> on_bus_acquired</span><span class="symbol">,</span>
|
1979
|
+
<span class="normal"> on_name_acquired</span><span class="symbol">,</span>
|
1980
|
+
<span class="normal"> on_name_lost</span><span class="symbol">,</span>
|
1981
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
1982
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1983
|
+
|
1984
|
+
<span class="normal"> loop </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-The-Main-Event-Loop.html#g-main-loop-new">g_main_loop_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
1985
|
+
<span class="normal"> </span><span class="function"><a href="../glib/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>
|
1986
|
+
|
1987
|
+
<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>
|
1988
|
+
|
1989
|
+
<span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-unref">g_dbus_node_info_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data</span><span class="symbol">);</span>
|
1990
|
+
|
1991
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
1992
|
+
<span class="cbracket">}</span></pre></td>
|
1993
1993
|
</tr>
|
1994
1994
|
</tbody>
|
1995
1995
|
</table>
|
@@ -2138,138 +2138,138 @@ main (<span class="type">int</span> argc, <span class="type">char</span> *argv[]
|
|
2138
2138
|
130
|
2139
2139
|
131
|
2140
2140
|
132</pre></td>
|
2141
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include </span><span class="
|
2142
|
-
<span class="preproc">#include </span><span class="
|
2143
|
-
|
2144
|
-
<span class="preproc">#include </span><span class="
|
2145
|
-
<span class="preproc">#include </span><span class="
|
2146
|
-
|
2147
|
-
<span class="preproc">#include </span><span class="
|
2148
|
-
|
2149
|
-
<span class="preproc">#include </span><span class="
|
2150
|
-
<span class="preproc">#include </span><span class="
|
2151
|
-
|
2152
|
-
<span class="comment"
|
2153
|
-
<span class="
|
2154
|
-
get_server_stdout (
|
2155
|
-
|
2156
|
-
|
2157
|
-
{
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
fd =
|
2164
|
-
method_call_message =
|
2165
|
-
method_reply_message =
|
2166
|
-
|
2167
|
-
method_call_message =
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
method_reply_message =
|
2172
|
-
method_call_message
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
error)
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
{
|
2183
|
-
|
2184
|
-
|
2185
|
-
}
|
2186
|
-
|
2187
|
-
fd_list =
|
2188
|
-
fd =
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
}
|
2196
|
-
|
2197
|
-
<span class="
|
2198
|
-
on_name_appeared (
|
2199
|
-
|
2200
|
-
|
2201
|
-
|
2202
|
-
{
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
error =
|
2207
|
-
fd = get_server_stdout (connection
|
2208
|
-
|
2209
|
-
{
|
2210
|
-
|
2211
|
-
error
|
2212
|
-
|
2213
|
-
exit (
|
2214
|
-
}
|
2215
|
-
|
2216
|
-
{
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
now = time (
|
2223
|
-
strftime (now_buf
|
2224
|
-
|
2225
|
-
|
2226
|
-
localtime (&
|
2227
|
-
|
2228
|
-
str =
|
2229
|
-
now_buf
|
2230
|
-
(
|
2231
|
-
len = strlen (str)
|
2232
|
-
|
2233
|
-
close (fd)
|
2234
|
-
|
2235
|
-
|
2236
|
-
|
2237
|
-
|
2238
|
-
exit (
|
2239
|
-
}
|
2240
|
-
}
|
2241
|
-
|
2242
|
-
<span class="
|
2243
|
-
on_name_vanished (
|
2244
|
-
|
2245
|
-
|
2246
|
-
{
|
2247
|
-
|
2248
|
-
|
2249
|
-
name)
|
2250
|
-
exit (
|
2251
|
-
}
|
2141
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><string.h></span>
|
2142
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><stdlib.h></span>
|
2143
|
+
|
2144
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><sys/types.h></span>
|
2145
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><unistd.h></span>
|
2146
|
+
|
2147
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><time.h></span>
|
2148
|
+
|
2149
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gio.h></span>
|
2150
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gunixfdlist.h></span>
|
2151
|
+
|
2152
|
+
<span class="comment">/* see gdbus-example-server.c for the server implementation */</span>
|
2153
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gint">gint</a></span>
|
2154
|
+
<span class="function">get_server_stdout</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>
|
2155
|
+
<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_owner</span><span class="symbol">,</span>
|
2156
|
+
<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>
|
2157
|
+
<span class="cbracket">{</span>
|
2158
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">method_call_message</span><span class="symbol">;</span>
|
2159
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">method_reply_message</span><span class="symbol">;</span>
|
2160
|
+
<span class="normal"> </span><span class="usertype">GUnixFDList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">fd_list</span><span class="symbol">;</span>
|
2161
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> fd</span><span class="symbol">;</span>
|
2162
|
+
|
2163
|
+
<span class="normal"> fd </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">;</span>
|
2164
|
+
<span class="normal"> method_call_message </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
2165
|
+
<span class="normal"> method_reply_message </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
2166
|
+
|
2167
|
+
<span class="normal"> method_call_message </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusMessage.html#g-dbus-message-new-method-call">g_dbus_message_new_method_call</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">name_owner</span><span class="symbol">,</span>
|
2168
|
+
<span class="normal"> </span><span class="string">"/org/gtk/GDBus/TestObject"</span><span class="symbol">,</span>
|
2169
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.TestInterface"</span><span class="symbol">,</span>
|
2170
|
+
<span class="normal"> </span><span class="string">"GimmeStdout"</span><span class="symbol">);</span>
|
2171
|
+
<span class="normal"> method_reply_message </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-send-message-with-reply-sync">g_dbus_connection_send_message_with_reply_sync</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
2172
|
+
<span class="normal"> method_call_message</span><span class="symbol">,</span>
|
2173
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-SEND-MESSAGE-FLAGS-NONE:CAPS">G_DBUS_SEND_MESSAGE_FLAGS_NONE</a></span><span class="symbol">,</span>
|
2174
|
+
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span>
|
2175
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* out_serial */</span>
|
2176
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* cancellable */</span>
|
2177
|
+
<span class="normal"> error</span><span class="symbol">);</span>
|
2178
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_reply_message </span><span class="symbol">==</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
2179
|
+
<span class="normal"> </span><span class="keyword">goto</span><span class="normal"> out</span><span class="symbol">;</span>
|
2180
|
+
|
2181
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GDBusMessage.html#g-dbus-message-get-message-type">g_dbus_message_get_message_type</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_reply_message</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> <a href="GDBusMessage.html#G-DBUS-MESSAGE-TYPE-ERROR:CAPS">G_DBUS_MESSAGE_TYPE_ERROR</a></span><span class="symbol">)</span>
|
2182
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2183
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMessage.html#g-dbus-message-to-gerror">g_dbus_message_to_gerror</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_reply_message</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">);</span>
|
2184
|
+
<span class="normal"> </span><span class="keyword">goto</span><span class="normal"> out</span><span class="symbol">;</span>
|
2185
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2186
|
+
|
2187
|
+
<span class="normal"> fd_list </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusMessage.html#g-dbus-message-get-unix-fd-list">g_dbus_message_get_unix_fd_list</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_reply_message</span><span class="symbol">);</span>
|
2188
|
+
<span class="normal"> fd </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GUnixFDList.html#g-unix-fd-list-get">g_unix_fd_list_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fd_list</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">);</span>
|
2189
|
+
|
2190
|
+
<span class="label"> out:</span>
|
2191
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_call_message</span><span class="symbol">);</span>
|
2192
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_reply_message</span><span class="symbol">);</span>
|
2193
|
+
|
2194
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> fd</span><span class="symbol">;</span>
|
2195
|
+
<span class="cbracket">}</span>
|
2196
|
+
|
2197
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2198
|
+
<span class="function">on_name_appeared</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>
|
2199
|
+
<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>
|
2200
|
+
<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_owner</span><span class="symbol">,</span>
|
2201
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2202
|
+
<span class="cbracket">{</span>
|
2203
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> fd</span><span class="symbol">;</span>
|
2204
|
+
<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>
|
2205
|
+
|
2206
|
+
<span class="normal"> error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
2207
|
+
<span class="normal"> fd </span><span class="symbol">=</span><span class="normal"> </span><span class="function">get_server_stdout</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span><span class="normal"> name_owner</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
2208
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fd </span><span class="symbol">==</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">)</span>
|
2209
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2210
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Error invoking GimmeStdout(): %s</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span>
|
2211
|
+
<span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
2212
|
+
<span class="normal"> </span><span class="function"><a href="../glib/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>
|
2213
|
+
<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>
|
2214
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2215
|
+
<span class="normal"> </span><span class="keyword">else</span>
|
2216
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2217
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> now_buf</span><span class="symbol">[</span><span class="number">256</span><span class="symbol">];</span>
|
2218
|
+
<span class="normal"> </span><span class="usertype">time_t</span><span class="normal"> now</span><span class="symbol">;</span>
|
2219
|
+
<span class="normal"> </span><span class="usertype">gssize</span><span class="normal"> len</span><span class="symbol">;</span>
|
2220
|
+
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">str</span><span class="symbol">;</span>
|
2221
|
+
|
2222
|
+
<span class="normal"> now </span><span class="symbol">=</span><span class="normal"> </span><span class="function">time</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2223
|
+
<span class="normal"> </span><span class="function">strftime</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">now_buf</span><span class="symbol">,</span>
|
2224
|
+
<span class="normal"> </span><span class="keyword">sizeof</span><span class="normal"> now_buf</span><span class="symbol">,</span>
|
2225
|
+
<span class="normal"> </span><span class="string">"%c"</span><span class="symbol">,</span>
|
2226
|
+
<span class="normal"> </span><span class="function">localtime</span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">now</span><span class="symbol">));</span>
|
2227
|
+
|
2228
|
+
<span class="normal"> str </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"On %s, gdbus-example-unix-fd-client with pid %d was here!</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span>
|
2229
|
+
<span class="normal"> now_buf</span><span class="symbol">,</span>
|
2230
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Basic-Types.html#gint">gint</a></span><span class="symbol">)</span><span class="normal"> </span><span class="function">getpid</span><span class="normal"> </span><span class="symbol">());</span>
|
2231
|
+
<span class="normal"> len </span><span class="symbol">=</span><span class="normal"> </span><span class="function">strlen</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">str</span><span class="symbol">);</span>
|
2232
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-warn-if-fail">g_warn_if_fail</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">write</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fd</span><span class="symbol">,</span><span class="normal"> str</span><span class="symbol">,</span><span class="normal"> len</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> len</span><span class="symbol">);</span>
|
2233
|
+
<span class="normal"> </span><span class="function">close</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fd</span><span class="symbol">);</span>
|
2234
|
+
|
2235
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Wrote the following on server's stdout:</span><span class="specialchar">\n</span><span class="string">%s"</span><span class="symbol">,</span><span class="normal"> str</span><span class="symbol">);</span>
|
2236
|
+
|
2237
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">str</span><span class="symbol">);</span>
|
2238
|
+
<span class="normal"> </span><span class="function">exit</span><span class="normal"> </span><span class="symbol">(</span><span class="number">0</span><span class="symbol">);</span>
|
2239
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2240
|
+
<span class="cbracket">}</span>
|
2241
|
+
|
2242
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2243
|
+
<span class="function">on_name_vanished</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>
|
2244
|
+
<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>
|
2245
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2246
|
+
<span class="cbracket">{</span>
|
2247
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-printerr">g_printerr</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to get name owner for %s</span><span class="specialchar">\n</span><span class="string">"</span>
|
2248
|
+
<span class="normal"> </span><span class="string">"Is ./gdbus-example-server running?</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span>
|
2249
|
+
<span class="normal"> name</span><span class="symbol">);</span>
|
2250
|
+
<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>
|
2251
|
+
<span class="cbracket">}</span>
|
2252
2252
|
|
2253
2253
|
<span class="type">int</span>
|
2254
|
-
main (
|
2255
|
-
{
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
watcher_id =
|
2260
|
-
|
2261
|
-
|
2262
|
-
on_name_appeared
|
2263
|
-
on_name_vanished
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
loop =
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2272
|
-
}</pre></td>
|
2254
|
+
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
2255
|
+
<span class="cbracket">{</span>
|
2256
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> watcher_id</span><span class="symbol">;</span>
|
2257
|
+
<span class="normal"> </span><span class="usertype">GMainLoop</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">loop</span><span class="symbol">;</span>
|
2258
|
+
|
2259
|
+
<span class="normal"> watcher_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gio-Watching-Bus-Names.html#g-bus-watch-name">g_bus_watch_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html#G-BUS-TYPE-SESSION:CAPS">G_BUS_TYPE_SESSION</a></span><span class="symbol">,</span>
|
2260
|
+
<span class="normal"> </span><span class="string">"org.gtk.GDBus.TestServer"</span><span class="symbol">,</span>
|
2261
|
+
<span class="normal"> <a href="gio-Watching-Bus-Names.html#G-BUS-NAME-WATCHER-FLAGS-NONE:CAPS">G_BUS_NAME_WATCHER_FLAGS_NONE</a></span><span class="symbol">,</span>
|
2262
|
+
<span class="normal"> on_name_appeared</span><span class="symbol">,</span>
|
2263
|
+
<span class="normal"> on_name_vanished</span><span class="symbol">,</span>
|
2264
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
2265
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2266
|
+
|
2267
|
+
<span class="normal"> loop </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-The-Main-Event-Loop.html#g-main-loop-new">g_main_loop_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
2268
|
+
<span class="normal"> </span><span class="function"><a href="../glib/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>
|
2269
|
+
|
2270
|
+
<span class="normal"> </span><span class="function"><a href="gio-Watching-Bus-Names.html#g-bus-unwatch-name">g_bus_unwatch_name</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">watcher_id</span><span class="symbol">);</span>
|
2271
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
2272
|
+
<span class="cbracket">}</span></pre></td>
|
2273
2273
|
</tr>
|
2274
2274
|
</tbody>
|
2275
2275
|
</table>
|
@@ -2620,340 +2620,340 @@ main (<span class="type">int</span> argc, <span class="type">char</span> *argv[]
|
|
2620
2620
|
332
|
2621
2621
|
333
|
2622
2622
|
334</pre></td>
|
2623
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include </span><span class="
|
2624
|
-
<span class="preproc">#include </span><span class="
|
2625
|
-
|
2626
|
-
<span class="comment"
|
2627
|
-
|
2628
|
-
<span class="comment"
|
2629
|
-
<span class="
|
2630
|
-
<span class="
|
2631
|
-
|
2632
|
-
<span class="
|
2633
|
-
{
|
2634
|
-
|
2635
|
-
}
|
2636
|
-
|
2637
|
-
<span class="
|
2638
|
-
{
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
}
|
2644
|
-
|
2645
|
-
<span class="
|
2646
|
-
{
|
2647
|
-
PROP_0
|
2648
|
-
PROP_COUNT
|
2649
|
-
PROP_NAME
|
2650
|
-
}
|
2651
|
-
|
2652
|
-
<span class="
|
2653
|
-
<span class="
|
2654
|
-
|
2655
|
-
<span class="
|
2656
|
-
my_object_finalize (
|
2657
|
-
{
|
2658
|
-
MyObject
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
}
|
2664
|
-
|
2665
|
-
<span class="
|
2666
|
-
my_object_init (MyObject
|
2667
|
-
{
|
2668
|
-
object
|
2669
|
-
object
|
2670
|
-
}
|
2671
|
-
|
2672
|
-
<span class="
|
2673
|
-
my_object_get_property (
|
2674
|
-
|
2675
|
-
|
2676
|
-
|
2677
|
-
{
|
2678
|
-
MyObject
|
2679
|
-
|
2680
|
-
|
2681
|
-
{
|
2682
|
-
|
2683
|
-
|
2684
|
-
|
2685
|
-
|
2686
|
-
|
2687
|
-
|
2688
|
-
|
2689
|
-
|
2690
|
-
|
2691
|
-
|
2692
|
-
}
|
2693
|
-
}
|
2694
|
-
|
2695
|
-
<span class="
|
2696
|
-
my_object_set_property (
|
2697
|
-
|
2698
|
-
|
2699
|
-
|
2700
|
-
{
|
2701
|
-
MyObject
|
2702
|
-
|
2703
|
-
|
2704
|
-
{
|
2705
|
-
|
2706
|
-
myobj
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
myobj
|
2712
|
-
|
2713
|
-
|
2714
|
-
|
2715
|
-
|
2716
|
-
}
|
2717
|
-
}
|
2718
|
-
|
2719
|
-
<span class="
|
2720
|
-
my_object_class_init (MyObjectClass
|
2721
|
-
{
|
2722
|
-
|
2723
|
-
|
2724
|
-
gobject_class
|
2725
|
-
gobject_class
|
2726
|
-
gobject_class
|
2727
|
-
|
2728
|
-
|
2729
|
-
PROP_COUNT
|
2730
|
-
|
2731
|
-
|
2732
|
-
|
2733
|
-
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
PROP_NAME
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
2741
|
-
|
2742
|
-
|
2743
|
-
}
|
2744
|
-
|
2745
|
-
<span class="comment"
|
2746
|
-
<span class="
|
2747
|
-
my_object_change_count (MyObject
|
2748
|
-
|
2749
|
-
{
|
2750
|
-
myobj
|
2751
|
-
|
2752
|
-
|
2753
|
-
}
|
2754
|
-
|
2755
|
-
<span class="comment"
|
2756
|
-
|
2757
|
-
<span class="
|
2758
|
-
|
2759
|
-
<span class="comment"
|
2760
|
-
<span class="
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2767
|
-
|
2768
|
-
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
<span class="
|
2773
|
-
handle_method_call (
|
2774
|
-
|
2775
|
-
|
2776
|
-
|
2777
|
-
|
2778
|
-
|
2779
|
-
|
2780
|
-
|
2781
|
-
{
|
2782
|
-
MyObject
|
2783
|
-
|
2784
|
-
|
2785
|
-
{
|
2786
|
-
|
2787
|
-
|
2788
|
-
|
2789
|
-
my_object_change_count (myobj
|
2790
|
-
|
2791
|
-
|
2792
|
-
}
|
2793
|
-
}
|
2794
|
-
|
2795
|
-
<span class="
|
2796
|
-
handle_get_property (
|
2797
|
-
|
2798
|
-
|
2799
|
-
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2803
|
-
{
|
2804
|
-
|
2805
|
-
MyObject
|
2806
|
-
|
2807
|
-
ret =
|
2808
|
-
|
2809
|
-
{
|
2810
|
-
ret =
|
2811
|
-
}
|
2812
|
-
|
2813
|
-
{
|
2814
|
-
ret =
|
2815
|
-
}
|
2816
|
-
|
2817
|
-
|
2818
|
-
}
|
2819
|
-
|
2820
|
-
<span class="
|
2821
|
-
handle_set_property (
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
{
|
2830
|
-
MyObject
|
2831
|
-
|
2832
|
-
|
2833
|
-
{
|
2834
|
-
|
2835
|
-
}
|
2836
|
-
|
2837
|
-
{
|
2838
|
-
|
2839
|
-
}
|
2840
|
-
|
2841
|
-
|
2842
|
-
}
|
2843
|
-
|
2844
|
-
|
2845
|
-
<span class="comment"
|
2846
|
-
<span class="
|
2847
|
-
{
|
2848
|
-
handle_method_call
|
2849
|
-
handle_get_property
|
2850
|
-
handle_set_property
|
2851
|
-
}
|
2852
|
-
|
2853
|
-
<span class="
|
2854
|
-
send_property_change (
|
2855
|
-
|
2856
|
-
|
2857
|
-
{
|
2858
|
-
|
2859
|
-
|
2860
|
-
MyObject
|
2861
|
-
|
2862
|
-
builder =
|
2863
|
-
invalidated_builder =
|
2864
|
-
|
2865
|
-
|
2866
|
-
|
2867
|
-
|
2868
|
-
|
2869
|
-
|
2870
|
-
|
2871
|
-
|
2872
|
-
|
2873
|
-
|
2874
|
-
|
2875
|
-
|
2876
|
-
|
2877
|
-
|
2878
|
-
|
2879
|
-
|
2880
|
-
|
2881
|
-
builder
|
2882
|
-
invalidated_builder)
|
2883
|
-
|
2884
|
-
}
|
2885
|
-
|
2886
|
-
<span class="
|
2887
|
-
on_bus_acquired (
|
2888
|
-
|
2889
|
-
|
2890
|
-
{
|
2891
|
-
MyObject
|
2892
|
-
|
2893
|
-
|
2894
|
-
|
2895
|
-
|
2896
|
-
registration_id =
|
2897
|
-
|
2898
|
-
introspection_data
|
2899
|
-
|
2900
|
-
myobj
|
2901
|
-
|
2902
|
-
|
2903
|
-
|
2904
|
-
}
|
2905
|
-
|
2906
|
-
<span class="
|
2907
|
-
on_name_acquired (
|
2908
|
-
|
2909
|
-
|
2910
|
-
{
|
2911
|
-
}
|
2912
|
-
|
2913
|
-
<span class="
|
2914
|
-
on_name_lost (
|
2915
|
-
|
2916
|
-
|
2917
|
-
{
|
2918
|
-
exit (
|
2919
|
-
}
|
2623
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gio/gio.h></span>
|
2624
|
+
<span class="preproc">#include</span><span class="normal"> </span><span class="string"><stdlib.h></span>
|
2625
|
+
|
2626
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
2627
|
+
|
2628
|
+
<span class="comment">/* The object we want to export */</span>
|
2629
|
+
<span class="keyword">typedef</span><span class="normal"> </span><span class="keyword">struct</span><span class="normal"> </span><span class="classname">_MyObjectClass</span><span class="normal"> MyObjectClass</span><span class="symbol">;</span>
|
2630
|
+
<span class="keyword">typedef</span><span class="normal"> </span><span class="keyword">struct</span><span class="normal"> </span><span class="classname">_MyObject</span><span class="normal"> MyObject</span><span class="symbol">;</span>
|
2631
|
+
|
2632
|
+
<span class="keyword">struct</span><span class="normal"> </span><span class="classname">_MyObjectClass</span>
|
2633
|
+
<span class="cbracket">{</span>
|
2634
|
+
<span class="normal"> </span><span class="usertype">GObjectClass</span><span class="normal"> parent_class</span><span class="symbol">;</span>
|
2635
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
2636
|
+
|
2637
|
+
<span class="keyword">struct</span><span class="normal"> </span><span class="classname">_MyObject</span>
|
2638
|
+
<span class="cbracket">{</span>
|
2639
|
+
<span class="normal"> </span><span class="usertype">GObject</span><span class="normal"> parent_instance</span><span class="symbol">;</span>
|
2640
|
+
|
2641
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> count</span><span class="symbol">;</span>
|
2642
|
+
<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>
|
2643
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
2644
|
+
|
2645
|
+
<span class="keyword">enum</span>
|
2646
|
+
<span class="cbracket">{</span>
|
2647
|
+
<span class="normal"> PROP_0</span><span class="symbol">,</span>
|
2648
|
+
<span class="normal"> PROP_COUNT</span><span class="symbol">,</span>
|
2649
|
+
<span class="normal"> PROP_NAME</span>
|
2650
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
2651
|
+
|
2652
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">GType</span><span class="normal"> </span><span class="function">my_object_get_type</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">);</span>
|
2653
|
+
<span class="function"><a href="../gobject/gobject-Type-Information.html#G-DEFINE-TYPE:CAPS">G_DEFINE_TYPE</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">MyObject</span><span class="symbol">,</span><span class="normal"> my_object</span><span class="symbol">,</span><span class="normal"> <a href="../gobject/gobject-Type-Information.html#G-TYPE-OBJECT:CAPS">G_TYPE_OBJECT</a></span><span class="symbol">);</span>
|
2654
|
+
|
2655
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2656
|
+
<span class="function">my_object_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>
|
2657
|
+
<span class="cbracket">{</span>
|
2658
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">MyObject</span><span class="symbol">*)</span><span class="normal">object</span><span class="symbol">;</span>
|
2659
|
+
|
2660
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">-></span><span class="normal">name</span><span class="symbol">);</span>
|
2661
|
+
|
2662
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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">my_object_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>
|
2663
|
+
<span class="cbracket">}</span>
|
2664
|
+
|
2665
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2666
|
+
<span class="function">my_object_init</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">object</span><span class="symbol">)</span>
|
2667
|
+
<span class="cbracket">{</span>
|
2668
|
+
<span class="normal"> object</span><span class="symbol">-></span><span class="normal">count </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
2669
|
+
<span class="normal"> object</span><span class="symbol">-></span><span class="normal">name </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
2670
|
+
<span class="cbracket">}</span>
|
2671
|
+
|
2672
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2673
|
+
<span class="function">my_object_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>
|
2674
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> prop_id</span><span class="symbol">,</span>
|
2675
|
+
<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>
|
2676
|
+
<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>
|
2677
|
+
<span class="cbracket">{</span>
|
2678
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">MyObject</span><span class="symbol">*)</span><span class="normal">object</span><span class="symbol">;</span>
|
2679
|
+
|
2680
|
+
<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>
|
2681
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2682
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_COUNT</span><span class="symbol">:</span>
|
2683
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#g-value-set-int">g_value_set_int</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">,</span><span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">count</span><span class="symbol">);</span>
|
2684
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
2685
|
+
|
2686
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_NAME</span><span class="symbol">:</span>
|
2687
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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"> myobj</span><span class="symbol">-></span><span class="normal">name</span><span class="symbol">);</span>
|
2688
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
2689
|
+
|
2690
|
+
<span class="label"> default:</span>
|
2691
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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>
|
2692
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2693
|
+
<span class="cbracket">}</span>
|
2694
|
+
|
2695
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2696
|
+
<span class="function">my_object_set_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>
|
2697
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> prop_id</span><span class="symbol">,</span>
|
2698
|
+
<span class="normal"> </span><span class="keyword">const</span><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>
|
2699
|
+
<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>
|
2700
|
+
<span class="cbracket">{</span>
|
2701
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">MyObject</span><span class="symbol">*)</span><span class="normal">object</span><span class="symbol">;</span>
|
2702
|
+
|
2703
|
+
<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>
|
2704
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2705
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_COUNT</span><span class="symbol">:</span>
|
2706
|
+
<span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">count </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#g-value-get-int">g_value_get_int</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
2707
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
2708
|
+
|
2709
|
+
<span class="normal"> </span><span class="keyword">case</span><span class="normal"> PROP_NAME</span><span class="symbol">:</span>
|
2710
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">-></span><span class="normal">name</span><span class="symbol">);</span>
|
2711
|
+
<span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">name </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#g-value-dup-string">g_value_dup_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
|
2712
|
+
<span class="normal"> </span><span class="keyword">break</span><span class="symbol">;</span>
|
2713
|
+
|
2714
|
+
<span class="label"> default:</span>
|
2715
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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>
|
2716
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2717
|
+
<span class="cbracket">}</span>
|
2718
|
+
|
2719
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2720
|
+
<span class="function">my_object_class_init</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">MyObjectClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">class</span><span class="symbol">)</span>
|
2721
|
+
<span class="cbracket">{</span>
|
2722
|
+
<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><span class="normal"> </span><span class="function"><a href="../gobject/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">class</span><span class="symbol">);</span>
|
2723
|
+
|
2724
|
+
<span class="normal"> gobject_class</span><span class="symbol">-></span><span class="normal">finalize </span><span class="symbol">=</span><span class="normal"> my_object_finalize</span><span class="symbol">;</span>
|
2725
|
+
<span class="normal"> gobject_class</span><span class="symbol">-></span><span class="normal">set_property </span><span class="symbol">=</span><span class="normal"> my_object_set_property</span><span class="symbol">;</span>
|
2726
|
+
<span class="normal"> gobject_class</span><span class="symbol">-></span><span class="normal">get_property </span><span class="symbol">=</span><span class="normal"> my_object_get_property</span><span class="symbol">;</span>
|
2727
|
+
|
2728
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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>
|
2729
|
+
<span class="normal"> PROP_COUNT</span><span class="symbol">,</span>
|
2730
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-int">g_param_spec_int</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"count"</span><span class="symbol">,</span>
|
2731
|
+
<span class="normal"> </span><span class="string">"Count"</span><span class="symbol">,</span>
|
2732
|
+
<span class="normal"> </span><span class="string">"Count"</span><span class="symbol">,</span>
|
2733
|
+
<span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">99999</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span>
|
2734
|
+
<span class="normal"> <a href="../gobject/gobject-GParamSpec.html#G-PARAM-READWRITE:CAPS">G_PARAM_READWRITE</a></span><span class="symbol">));</span>
|
2735
|
+
|
2736
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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>
|
2737
|
+
<span class="normal"> PROP_NAME</span><span class="symbol">,</span>
|
2738
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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">"name"</span><span class="symbol">,</span>
|
2739
|
+
<span class="normal"> </span><span class="string">"Name"</span><span class="symbol">,</span>
|
2740
|
+
<span class="normal"> </span><span class="string">"Name"</span><span class="symbol">,</span>
|
2741
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
2742
|
+
<span class="normal"> <a href="../gobject/gobject-GParamSpec.html#G-PARAM-READWRITE:CAPS">G_PARAM_READWRITE</a></span><span class="symbol">));</span>
|
2743
|
+
<span class="cbracket">}</span>
|
2744
|
+
|
2745
|
+
<span class="comment">/* A method that we want to export */</span>
|
2746
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2747
|
+
<span class="function">my_object_change_count</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj</span><span class="symbol">,</span>
|
2748
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> change</span><span class="symbol">)</span>
|
2749
|
+
<span class="cbracket">{</span>
|
2750
|
+
<span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">count </span><span class="symbol">=</span><span class="normal"> </span><span class="number">2</span><span class="normal"> </span><span class="symbol">*</span><span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">count </span><span class="symbol">+</span><span class="normal"> change</span><span class="symbol">;</span>
|
2751
|
+
|
2752
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/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="../gobject/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"count"</span><span class="symbol">);</span>
|
2753
|
+
<span class="cbracket">}</span>
|
2754
|
+
|
2755
|
+
<span class="comment">/* ---------------------------------------------------------------------------------------------------- */</span>
|
2756
|
+
|
2757
|
+
<span class="keyword">static</span><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><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
2758
|
+
|
2759
|
+
<span class="comment">/* Introspection data for the service we are exporting */</span>
|
2760
|
+
<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>
|
2761
|
+
<span class="normal"> </span><span class="string">"<node>"</span>
|
2762
|
+
<span class="normal"> </span><span class="string">" <interface name='org.myorg.MyObject'>"</span>
|
2763
|
+
<span class="normal"> </span><span class="string">" <method name='ChangeCount'>"</span>
|
2764
|
+
<span class="normal"> </span><span class="string">" <arg type='i' name='change' direction='in'/>"</span>
|
2765
|
+
<span class="normal"> </span><span class="string">" </method>"</span>
|
2766
|
+
<span class="normal"> </span><span class="string">" <property type='i' name='Count' access='read'/>"</span>
|
2767
|
+
<span class="normal"> </span><span class="string">" <property type='s' name='Name' access='readwrite'/>"</span>
|
2768
|
+
<span class="normal"> </span><span class="string">" </interface>"</span>
|
2769
|
+
<span class="normal"> </span><span class="string">"</node>"</span><span class="symbol">;</span>
|
2770
|
+
|
2771
|
+
|
2772
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2773
|
+
<span class="function">handle_method_call</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>
|
2774
|
+
<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</span><span class="symbol">,</span>
|
2775
|
+
<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">object_path</span><span class="symbol">,</span>
|
2776
|
+
<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">interface_name</span><span class="symbol">,</span>
|
2777
|
+
<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">method_name</span><span class="symbol">,</span>
|
2778
|
+
<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>
|
2779
|
+
<span class="normal"> </span><span class="usertype">GDBusMethodInvocation</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invocation</span><span class="symbol">,</span>
|
2780
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2781
|
+
<span class="cbracket">{</span>
|
2782
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> user_data</span><span class="symbol">;</span>
|
2783
|
+
|
2784
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">method_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"ChangeCount"</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>
|
2785
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2786
|
+
<span class="normal"> </span><span class="usertype">gint</span><span class="normal"> change</span><span class="symbol">;</span>
|
2787
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get">g_variant_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parameters</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"(i)"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">change</span><span class="symbol">);</span>
|
2788
|
+
|
2789
|
+
<span class="normal"> </span><span class="function">my_object_change_count</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">,</span><span class="normal"> change</span><span class="symbol">);</span>
|
2790
|
+
|
2791
|
+
<span class="normal"> </span><span class="function"><a href="GDBusMethodInvocation.html#g-dbus-method-invocation-return-value">g_dbus_method_invocation_return_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">invocation</span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2792
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2793
|
+
<span class="cbracket">}</span>
|
2794
|
+
|
2795
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-GVariant.html#GVariant">GVariant</a> </span><span class="symbol">*</span>
|
2796
|
+
<span class="function">handle_get_property</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>
|
2797
|
+
<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</span><span class="symbol">,</span>
|
2798
|
+
<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">object_path</span><span class="symbol">,</span>
|
2799
|
+
<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">interface_name</span><span class="symbol">,</span>
|
2800
|
+
<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">property_name</span><span class="symbol">,</span>
|
2801
|
+
<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>
|
2802
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2803
|
+
<span class="cbracket">{</span>
|
2804
|
+
<span class="normal"> </span><span class="usertype">GVariant</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">ret</span><span class="symbol">;</span>
|
2805
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> user_data</span><span class="symbol">;</span>
|
2806
|
+
|
2807
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
2808
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Count"</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>
|
2809
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2810
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-int32">g_variant_new_int32</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">-></span><span class="normal">count</span><span class="symbol">);</span>
|
2811
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2812
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Name"</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>
|
2813
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2814
|
+
<span class="normal"> ret </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">-></span><span class="normal">name </span><span class="symbol">?</span><span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">name </span><span class="symbol">:</span><span class="normal"> </span><span class="string">""</span><span class="symbol">);</span>
|
2815
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2816
|
+
|
2817
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> ret</span><span class="symbol">;</span>
|
2818
|
+
<span class="cbracket">}</span>
|
2819
|
+
|
2820
|
+
<span class="keyword">static</span><span class="normal"> <a href="../glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
2821
|
+
<span class="function">handle_set_property</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>
|
2822
|
+
<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</span><span class="symbol">,</span>
|
2823
|
+
<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">object_path</span><span class="symbol">,</span>
|
2824
|
+
<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">interface_name</span><span class="symbol">,</span>
|
2825
|
+
<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">property_name</span><span class="symbol">,</span>
|
2826
|
+
<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>
|
2827
|
+
<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>
|
2828
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2829
|
+
<span class="cbracket">{</span>
|
2830
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> user_data</span><span class="symbol">;</span>
|
2831
|
+
|
2832
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Count"</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>
|
2833
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2834
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-set">g_object_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"count"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-get-int32">g_variant_get_int32</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">),</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2835
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2836
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">property_name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Name"</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>
|
2837
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
2838
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-set">g_object_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"name"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/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="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">),</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2839
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
2840
|
+
|
2841
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
2842
|
+
<span class="cbracket">}</span>
|
2843
|
+
|
2844
|
+
|
2845
|
+
<span class="comment">/* for now */</span>
|
2846
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">GDBusInterfaceVTable</span><span class="normal"> interface_vtable </span><span class="symbol">=</span>
|
2847
|
+
<span class="cbracket">{</span>
|
2848
|
+
<span class="normal"> handle_method_call</span><span class="symbol">,</span>
|
2849
|
+
<span class="normal"> handle_get_property</span><span class="symbol">,</span>
|
2850
|
+
<span class="normal"> handle_set_property</span>
|
2851
|
+
<span class="cbracket">}</span><span class="symbol">;</span>
|
2852
|
+
|
2853
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2854
|
+
<span class="function">send_property_change</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">obj</span><span class="symbol">,</span>
|
2855
|
+
<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>
|
2856
|
+
<span class="normal"> </span><span class="usertype">GDBusConnection</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">connection</span><span class="symbol">)</span>
|
2857
|
+
<span class="cbracket">{</span>
|
2858
|
+
<span class="normal"> </span><span class="usertype">GVariantBuilder</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">builder</span><span class="symbol">;</span>
|
2859
|
+
<span class="normal"> </span><span class="usertype">GVariantBuilder</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">invalidated_builder</span><span class="symbol">;</span>
|
2860
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">MyObject </span><span class="symbol">*)</span><span class="normal">obj</span><span class="symbol">;</span>
|
2861
|
+
|
2862
|
+
<span class="normal"> builder </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-new">g_variant_builder_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-GVariantType.html#G-VARIANT-TYPE-ARRAY:CAPS">G_VARIANT_TYPE_ARRAY</a></span><span class="symbol">);</span>
|
2863
|
+
<span class="normal"> invalidated_builder </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-new">g_variant_builder_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-GVariantType.html#G-VARIANT-TYPE:CAPS">G_VARIANT_TYPE</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"as"</span><span class="symbol">));</span>
|
2864
|
+
|
2865
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pspec</span><span class="symbol">-></span><span class="normal">name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"count"</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>
|
2866
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-add">g_variant_builder_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">builder</span><span class="symbol">,</span>
|
2867
|
+
<span class="normal"> </span><span class="string">"{sv}"</span><span class="symbol">,</span>
|
2868
|
+
<span class="normal"> </span><span class="string">"Count"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-int32">g_variant_new_int32</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">-></span><span class="normal">count</span><span class="symbol">));</span>
|
2869
|
+
<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="../glib/glib-String-Utility-Functions.html#g-strcmp0">g_strcmp0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pspec</span><span class="symbol">-></span><span class="normal">name</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"name"</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>
|
2870
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-builder-add">g_variant_builder_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">builder</span><span class="symbol">,</span>
|
2871
|
+
<span class="normal"> </span><span class="string">"{sv}"</span><span class="symbol">,</span>
|
2872
|
+
<span class="normal"> </span><span class="string">"Name"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new-string">g_variant_new_string</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">-></span><span class="normal">name </span><span class="symbol">?</span><span class="normal"> myobj</span><span class="symbol">-></span><span class="normal">name </span><span class="symbol">:</span><span class="normal"> </span><span class="string">""</span><span class="symbol">));</span>
|
2873
|
+
|
2874
|
+
<span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-emit-signal">g_dbus_connection_emit_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
2875
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
2876
|
+
<span class="normal"> </span><span class="string">"/org/myorg/MyObject"</span><span class="symbol">,</span>
|
2877
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.DBus.Properties"</span><span class="symbol">,</span>
|
2878
|
+
<span class="normal"> </span><span class="string">"PropertiesChanged"</span><span class="symbol">,</span>
|
2879
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(sa{sv}as)"</span><span class="symbol">,</span>
|
2880
|
+
<span class="normal"> </span><span class="string">"org.myorg.MyObject"</span><span class="symbol">,</span>
|
2881
|
+
<span class="normal"> builder</span><span class="symbol">,</span>
|
2882
|
+
<span class="normal"> invalidated_builder</span><span class="symbol">),</span>
|
2883
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2884
|
+
<span class="cbracket">}</span>
|
2885
|
+
|
2886
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2887
|
+
<span class="function">on_bus_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>
|
2888
|
+
<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>
|
2889
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2890
|
+
<span class="cbracket">{</span>
|
2891
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj </span><span class="symbol">=</span><span class="normal"> user_data</span><span class="symbol">;</span>
|
2892
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> registration_id</span><span class="symbol">;</span>
|
2893
|
+
|
2894
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"notify"</span><span class="symbol">,</span>
|
2895
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">send_property_change</span><span class="symbol">),</span><span class="normal"> connection</span><span class="symbol">);</span>
|
2896
|
+
<span class="normal"> registration_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusConnection.html#g-dbus-connection-register-object">g_dbus_connection_register_object</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
2897
|
+
<span class="normal"> </span><span class="string">"/org/myorg/MyObject"</span><span class="symbol">,</span>
|
2898
|
+
<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>
|
2899
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">interface_vtable</span><span class="symbol">,</span>
|
2900
|
+
<span class="normal"> myobj</span><span class="symbol">,</span>
|
2901
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* user_data_free_func */</span>
|
2902
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span><span class="normal"> </span><span class="comment">/* GError** */</span>
|
2903
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">registration_id </span><span class="symbol">></span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
2904
|
+
<span class="cbracket">}</span>
|
2905
|
+
|
2906
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2907
|
+
<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>
|
2908
|
+
<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>
|
2909
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2910
|
+
<span class="cbracket">{</span>
|
2911
|
+
<span class="cbracket">}</span>
|
2912
|
+
|
2913
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
2914
|
+
<span class="function">on_name_lost</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>
|
2915
|
+
<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>
|
2916
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
2917
|
+
<span class="cbracket">{</span>
|
2918
|
+
<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>
|
2919
|
+
<span class="cbracket">}</span>
|
2920
2920
|
|
2921
2921
|
<span class="type">int</span>
|
2922
|
-
main (
|
2923
|
-
{
|
2924
|
-
|
2925
|
-
|
2926
|
-
MyObject
|
2922
|
+
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
2923
|
+
<span class="cbracket">{</span>
|
2924
|
+
<span class="normal"> </span><span class="usertype">guint</span><span class="normal"> owner_id</span><span class="symbol">;</span>
|
2925
|
+
<span class="normal"> </span><span class="usertype">GMainLoop</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">loop</span><span class="symbol">;</span>
|
2926
|
+
<span class="normal"> </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">myobj</span><span class="symbol">;</span>
|
2927
2927
|
|
2928
|
-
|
2928
|
+
<span class="normal"> </span><span class="comment">/* We are lazy here - we don't want to manually provide</span>
|
2929
2929
|
<span class="comment"> * the introspection data structures - so we just build</span>
|
2930
2930
|
<span class="comment"> * them from XML.</span>
|
2931
|
-
<span class="comment">
|
2932
|
-
introspection_data =
|
2933
|
-
|
2931
|
+
<span class="comment"> */</span>
|
2932
|
+
<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="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2933
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data </span><span class="symbol">!=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2934
2934
|
|
2935
|
-
myobj =
|
2935
|
+
<span class="normal"> myobj </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-new">g_object_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">my_object_get_type</span><span class="normal"> </span><span class="symbol">(),</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2936
2936
|
|
2937
|
-
owner_id =
|
2938
|
-
|
2939
|
-
|
2940
|
-
on_bus_acquired
|
2941
|
-
on_name_acquired
|
2942
|
-
on_name_lost
|
2943
|
-
myobj
|
2944
|
-
|
2937
|
+
<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-SESSION:CAPS">G_BUS_TYPE_SESSION</a></span><span class="symbol">,</span>
|
2938
|
+
<span class="normal"> </span><span class="string">"org.myorg.MyObject"</span><span class="symbol">,</span>
|
2939
|
+
<span class="normal"> <a href="gio-Owning-Bus-Names.html#G-BUS-NAME-OWNER-FLAGS-NONE:CAPS">G_BUS_NAME_OWNER_FLAGS_NONE</a></span><span class="symbol">,</span>
|
2940
|
+
<span class="normal"> on_bus_acquired</span><span class="symbol">,</span>
|
2941
|
+
<span class="normal"> on_name_acquired</span><span class="symbol">,</span>
|
2942
|
+
<span class="normal"> on_name_lost</span><span class="symbol">,</span>
|
2943
|
+
<span class="normal"> myobj</span><span class="symbol">,</span>
|
2944
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
2945
2945
|
|
2946
|
-
loop =
|
2947
|
-
|
2946
|
+
<span class="normal"> loop </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../glib/glib-The-Main-Event-Loop.html#g-main-loop-new">g_main_loop_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
2947
|
+
<span class="normal"> </span><span class="function"><a href="../glib/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>
|
2948
2948
|
|
2949
|
-
|
2949
|
+
<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>
|
2950
2950
|
|
2951
|
-
|
2951
|
+
<span class="normal"> </span><span class="function"><a href="gio-D-Bus-Introspection-Data.html#g-dbus-node-info-unref">g_dbus_node_info_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">introspection_data</span><span class="symbol">);</span>
|
2952
2952
|
|
2953
|
-
|
2953
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myobj</span><span class="symbol">);</span>
|
2954
2954
|
|
2955
|
-
|
2956
|
-
}</pre></td>
|
2955
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
2956
|
+
<span class="cbracket">}</span></pre></td>
|
2957
2957
|
</tr>
|
2958
2958
|
</tbody>
|
2959
2959
|
</table>
|
@@ -4246,20 +4246,20 @@ convenient 'inline' use of <a href="../glib/glib-GVariant.html#g-variant-new"><c
|
|
4246
4246
|
12
|
4247
4247
|
13
|
4248
4248
|
14</pre></td>
|
4249
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GDBusConnection.html#g-dbus-connection-call">g_dbus_connection_call</a></span> (connection
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4253
|
-
|
4254
|
-
|
4255
|
-
|
4256
|
-
|
4257
|
-
|
4258
|
-
|
4259
|
-
|
4260
|
-
|
4261
|
-
|
4262
|
-
|
4249
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GDBusConnection.html#g-dbus-connection-call">g_dbus_connection_call</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
4250
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.StringThings"</span><span class="symbol">,</span>
|
4251
|
+
<span class="normal"> </span><span class="string">"/org/freedesktop/StringThings"</span><span class="symbol">,</span>
|
4252
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.StringThings"</span><span class="symbol">,</span>
|
4253
|
+
<span class="normal"> </span><span class="string">"TwoStrings"</span><span class="symbol">,</span>
|
4254
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(ss)"</span><span class="symbol">,</span>
|
4255
|
+
<span class="normal"> </span><span class="string">"Thing One"</span><span class="symbol">,</span>
|
4256
|
+
<span class="normal"> </span><span class="string">"Thing Two"</span><span class="symbol">),</span>
|
4257
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
4258
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-CALL-FLAGS-NONE:CAPS">G_DBUS_CALL_FLAGS_NONE</a></span><span class="symbol">,</span>
|
4259
|
+
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span>
|
4260
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
4261
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a></span><span class="symbol">)</span><span class="normal"> two_strings_done</span><span class="symbol">,</span>
|
4262
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
4263
4263
|
</tr>
|
4264
4264
|
</tbody>
|
4265
4265
|
</table>
|
@@ -4437,19 +4437,19 @@ This allows convenient 'inline' use of <a href="../glib/glib-GVariant.html#g-var
|
|
4437
4437
|
11
|
4438
4438
|
12
|
4439
4439
|
13</pre></td>
|
4440
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GDBusConnection.html#g-dbus-connection-call-sync">g_dbus_connection_call_sync</a></span> (connection
|
4441
|
-
|
4442
|
-
|
4443
|
-
|
4444
|
-
|
4445
|
-
|
4446
|
-
|
4447
|
-
|
4448
|
-
|
4449
|
-
|
4450
|
-
|
4451
|
-
|
4452
|
-
|
4440
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GDBusConnection.html#g-dbus-connection-call-sync">g_dbus_connection_call_sync</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">connection</span><span class="symbol">,</span>
|
4441
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.StringThings"</span><span class="symbol">,</span>
|
4442
|
+
<span class="normal"> </span><span class="string">"/org/freedesktop/StringThings"</span><span class="symbol">,</span>
|
4443
|
+
<span class="normal"> </span><span class="string">"org.freedesktop.StringThings"</span><span class="symbol">,</span>
|
4444
|
+
<span class="normal"> </span><span class="string">"TwoStrings"</span><span class="symbol">,</span>
|
4445
|
+
<span class="normal"> </span><span class="function"><a href="../glib/glib-GVariant.html#g-variant-new">g_variant_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"(ss)"</span><span class="symbol">,</span>
|
4446
|
+
<span class="normal"> </span><span class="string">"Thing One"</span><span class="symbol">,</span>
|
4447
|
+
<span class="normal"> </span><span class="string">"Thing Two"</span><span class="symbol">),</span>
|
4448
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
4449
|
+
<span class="normal"> <a href="GDBusConnection.html#G-DBUS-CALL-FLAGS-NONE:CAPS">G_DBUS_CALL_FLAGS_NONE</a></span><span class="symbol">,</span>
|
4450
|
+
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span>
|
4451
|
+
<span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
4452
|
+
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span></pre></td>
|
4453
4453
|
</tr>
|
4454
4454
|
</tbody>
|
4455
4455
|
</table>
|
@@ -5405,15 +5405,15 @@ message can simply return the <em class="parameter"><code>message</code></em> ob
|
|
5405
5405
|
7
|
5406
5406
|
8
|
5407
5407
|
9</pre></td>
|
5408
|
-
<td class="listing_code"><pre class="programlisting"><span class="
|
5409
|
-
passive_filter (
|
5410
|
-
|
5411
|
-
|
5412
|
-
|
5413
|
-
{
|
5414
|
-
|
5415
|
-
|
5416
|
-
}</pre></td>
|
5408
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="GDBusMessage.html">GDBusMessage</a> </span><span class="symbol">*</span>
|
5409
|
+
<span class="function">passive_filter</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html">GDBusConnection</a> </span><span class="symbol">*</span><span class="normal">connection</span>
|
5410
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">message</span><span class="symbol">,</span>
|
5411
|
+
<span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> incoming</span><span class="symbol">,</span>
|
5412
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
5413
|
+
<span class="cbracket">{</span>
|
5414
|
+
<span class="normal"> </span><span class="comment">/* inspect @message */</span>
|
5415
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> message</span><span class="symbol">;</span>
|
5416
|
+
<span class="cbracket">}</span></pre></td>
|
5417
5417
|
</tr>
|
5418
5418
|
</tbody>
|
5419
5419
|
</table>
|
@@ -5439,19 +5439,19 @@ Filter functions that wants to drop a message can simply return <a href="../glib
|
|
5439
5439
|
11
|
5440
5440
|
12
|
5441
5441
|
13</pre></td>
|
5442
|
-
<td class="listing_code"><pre class="programlisting"><span class="
|
5443
|
-
drop_filter (
|
5444
|
-
|
5445
|
-
|
5446
|
-
|
5447
|
-
{
|
5448
|
-
|
5449
|
-
{
|
5450
|
-
|
5451
|
-
message =
|
5452
|
-
}
|
5453
|
-
|
5454
|
-
}</pre></td>
|
5442
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="GDBusMessage.html">GDBusMessage</a> </span><span class="symbol">*</span>
|
5443
|
+
<span class="function">drop_filter</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html">GDBusConnection</a> </span><span class="symbol">*</span><span class="normal">connection</span>
|
5444
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">message</span><span class="symbol">,</span>
|
5445
|
+
<span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> incoming</span><span class="symbol">,</span>
|
5446
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
5447
|
+
<span class="cbracket">{</span>
|
5448
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">should_drop_message</span><span class="symbol">)</span>
|
5449
|
+
<span class="normal"> </span><span class="cbracket">{</span>
|
5450
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message</span><span class="symbol">);</span>
|
5451
|
+
<span class="normal"> message </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
5452
|
+
<span class="normal"> </span><span class="cbracket">}</span>
|
5453
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> message</span><span class="symbol">;</span>
|
5454
|
+
<span class="cbracket">}</span></pre></td>
|
5455
5455
|
</tr>
|
5456
5456
|
</tbody>
|
5457
5457
|
</table>
|
@@ -5482,24 +5482,24 @@ Finally, a filter function may modify a message by copying it:
|
|
5482
5482
|
16
|
5483
5483
|
17
|
5484
5484
|
18</pre></td>
|
5485
|
-
<td class="listing_code"><pre class="programlisting"><span class="
|
5486
|
-
modifying_filter (
|
5487
|
-
|
5488
|
-
|
5489
|
-
|
5490
|
-
{
|
5491
|
-
|
5492
|
-
|
5493
|
-
|
5494
|
-
error =
|
5495
|
-
copy =
|
5496
|
-
|
5497
|
-
|
5498
|
-
|
5499
|
-
|
5500
|
-
|
5501
|
-
|
5502
|
-
}</pre></td>
|
5485
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="GDBusMessage.html">GDBusMessage</a> </span><span class="symbol">*</span>
|
5486
|
+
<span class="function">modifying_filter</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GDBusConnection.html">GDBusConnection</a> </span><span class="symbol">*</span><span class="normal">connection</span>
|
5487
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">message</span><span class="symbol">,</span>
|
5488
|
+
<span class="normal"> </span><span class="usertype">gboolean</span><span class="normal"> incoming</span><span class="symbol">,</span>
|
5489
|
+
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
|
5490
|
+
<span class="cbracket">{</span>
|
5491
|
+
<span class="normal"> </span><span class="usertype">GDBusMessage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">copy</span><span class="symbol">;</span>
|
5492
|
+
<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>
|
5493
|
+
|
5494
|
+
<span class="normal"> error </span><span class="symbol">=</span><span class="normal"> <a href="../glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
5495
|
+
<span class="normal"> copy </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GDBusMessage.html#g-dbus-message-copy">g_dbus_message_copy</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
5496
|
+
<span class="normal"> </span><span class="comment">/* handle @error being is set */</span>
|
5497
|
+
<span class="normal"> </span><span class="function"><a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">message</span><span class="symbol">);</span>
|
5498
|
+
|
5499
|
+
<span class="normal"> </span><span class="comment">/* modify @copy */</span>
|
5500
|
+
|
5501
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> copy</span><span class="symbol">;</span>
|
5502
|
+
<span class="cbracket">}</span></pre></td>
|
5503
5503
|
</tr>
|
5504
5504
|
</tbody>
|
5505
5505
|
</table>
|
@@ -6550,7 +6550,7 @@ remote peer closed its end of the connection.</td>
|
|
6550
6550
|
</div>
|
6551
6551
|
</div>
|
6552
6552
|
<div class="footnotes">
|
6553
|
-
<br><hr style="width:100; align:left;">
|
6553
|
+
<br><hr style="width:100; text-align:left;margin-left: 0">
|
6554
6554
|
<div id="ftn.id-1.4.16.7.8.4.2" class="footnote"><p><a href="#id-1.4.16.7.8.4.2" class="para"><sup class="para">[1] </sup></a>
|
6555
6555
|
This is so that <a class="link" href="GDBusConnection.html#g-bus-get" title="g_bus_get ()"><code class="function">g_bus_get()</code></a> and <a class="link" href="GDBusConnection.html#g-bus-get-sync" title="g_bus_get_sync ()"><code class="function">g_bus_get_sync()</code></a> can safely return the
|
6556
6556
|
same <a class="link" href="GDBusConnection.html" title="GDBusConnection"><span class="type">GDBusConnection</span></a> when called from any thread.
|